Memory MCP Server

Memory MCP Server

site icon
2025.02.17 1
Python记忆管理知识图谱其它
Memory MCP Server 是一个基于 Model Context Protocol (MCP) 的服务,主要用于管理 Claude 的记忆和知识图谱。它通过 SQLite 数据库存储知识图谱,并提供了与 Claude Desktop 的集成能力。
View on GitHub

Overview

基本能力

产品定位

Memory MCP Server 是一个用于管理 Claude 记忆和知识图谱的服务,基于 Model Context Protocol (MCP) 实现。

核心功能

  1. 管理 Claude 的记忆和知识图谱
  2. 提供与 Claude Desktop 的集成能力
  3. 支持 SQLite 数据库存储知识图谱

适用场景

  1. 需要管理 Claude 记忆和知识图谱的场景
  2. 与 Claude Desktop 集成的场景

工具列表

  1. memory-mcp-server: 主服务工具,用于启动 MCP 服务器
  2. pytest: 测试工具,用于运行单元测试和覆盖率测试

常见问题解答

  1. 如何配置数据库?
  2. 通过设置 DATABASE_URL 环境变量来配置 SQLite 数据库
  3. 如何与 Claude Desktop 集成?
  4. claude_desktop_config.json 中添加 MCP 服务器配置

使用教程

使用依赖

  1. 需要安装 Python 环境
  2. 需要安装 uv 工具

安装教程

  1. 使用 uv 安装: bash uvx memory-mcp-server
  2. 从仓库安装: bash uv pip install git+https://github.com/estav/python-memory-mcp-server.git

调试方式

  1. 运行服务器: bash uvx memory-mcp-server
  2. 运行本地开发服务器: bash python -m memory_mcp_server
  3. 运行测试: bash pytest pytest --cov=memory_mcp_server

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。