Zep Cloud MCP 服务器搭建了 Claude Desktop 与 Zep Cloud API 之间的桥梁,实现了对 AI 助手记忆的有效管理。
git clone [your-repository-url]
cd mcp-server
python -m venv venv
source venv/bin/activate # 在 Windows 上使用 `venv\Scripts\activate`
pip install -r requirements.txt
.env.example 到 .env 并添加你的 API 密钥:cp .env.example .env
nano .env
更新以下内容:ZEPCLOUD_API_KEY=your_api_key_here
python core/zep_cloud_server.py
claude_desktop_config.json.example 到 claude_desktop_config.json:cp claude_desktop_config.json.example claude_desktop_config.json
{
"mcp_server_url": "http://localhost:5000",
"api_key": "your_api_key_here"
}
git clone [your-repository-url]
cd mcp-server
python -m venv venv
source venv/bin/activate # 在 Windows 上使用 `venv\Scripts\activate`
pip install -r requirements.txt
.env.example 到 .env 并添加你的 API 密钥:cp .env.example .env
nano .env
更新以下内容:ZEPCLOUD_API_KEY=your_api_key_here
python core/zep_cloud_server.py
create_user, get_user, update_user, delete_user, list_userscreate_collection, get_collection, update_collection, delete_collection, list_collectionsadd_memory, get_memory, list_memories, search_memories该仓库已组织如下目录:
core/:核心功能文件
zep_cloud_client.py:Zep Cloud API 的客户端实现zep_cloud_server.py:提供 Claude Desktop 工具的 MCP 服务器run_server.py:直接运行服务器的独立脚本scripts/:操作实用脚本
check_user_exists.py:检查 Zep Cloud 中是否存在用户create_specific_user.py:创建特定用户到 Zep Cloud 的脚本run_server.sh / run_server.bat:带有环境设置的运行服务器的 Shell 脚本tests/:按功能组织的测试脚本
test_specific_user.py:所有用户操作的全面测试test_zep_cloud_client.py:Zep Cloud 客户端单元测试test_comprehensive.py:所有功能的完整 API 测试config/:配置文件
.env.example:环境配置模板.env.new:更新后的环境配置claude_desktop_config.json.example:Claude Desktop 配置模板requirements.txt:包依赖项使用 FastMCP 方法实现更高效和可维护的服务器。
如果无法连接到 Zep Cloud API(由于身份验证问题、网络问题等),将切换到本地模式,仅支持部分功能。
.gitignore 文件配置为忽略 .env 文件。.env.example 作为模板,并使用实际 API 密钥创建自己的 .env 文件。claude_desktop_config.json 包含系统特定路径,不应提交到版本控制中。claude_desktop_config.json.example 作为参考来创建和更新配置文件。有关故障排除信息,请参阅 AUTHENTICATION_NOTE.md 文档,其中包含关于 API 连接性和身份验证问题的详细信息。