Memory MCP Server

Memory MCP Server

镜像的

这是一个为 Claude 提供记忆和知识图谱管理的 Model Context Protocol (MCP) 服务器实现。

安装

# 使用 uv 安装
uvx memory-mcp-server

# 或从 GitHub 安装
uv pip install git+https://github.com/estav/python-memory-mcp-server.git

基本使用

# 启动服务器
uvx memory-mcp-server

配置

设置必要的环境变量:

  • DATABASE_URL: SQLite 数据库的 URL 路径

与 Claude 桌面版集成

claude_desktop_config.json 文件中添加:

{
  "mcpServers": {
    "memory": {
      "command": "uvx",
      "args": ["memory-mcp-server"]
    }
  }
}

开发设置

# 克隆仓库
git clone https://github.com/estav/python-memory-mcp-server.git
cd python-memory-mcp-server

# 设置开发环境
uv venv
source .venv/bin/activate
uv pip install -e ".[test]"

# 运行测试
pytest
pytest -v --cov

# 本地启动服务器
python -m memory_mcp_server

许可证

MIT 许可证