Cover image
evangstav_python-memory-mcp-server
Public

evangstav_python-memory-mcp-server

Try Now
2024-12-14

镜像://github.com/evangstav/python-memory-mcp-server

3 years

Works with Finder

0

Github Watches

1

Github Forks

1

Github Stars

Memory MCP Server

An implementation of the Model Context Protocol (MCP) server for managing Claude's memory and knowledge graph.

Installation

You can install the package using uv:

uvx memory-mcp-server

Or install it from the repository:

uv pip install git+https://github.com/estav/python-memory-mcp-server.git

Usage

Once installed, you can run the server using:

uvx memory-mcp-server

Configuration

The server expects certain environment variables to be set:

  • DATABASE_URL: SQLite database URL for storing the knowledge graph
  • Add any other configuration variables here...

Integration with Claude Desktop

To use this MCP server with Claude Desktop, add the following to your claude_desktop_config.json:

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

Development

  1. Clone the repository:
git clone https://github.com/estav/python-memory-mcp-server.git
cd python-memory-mcp-server
  1. Create a virtual environment and install dependencies:
uv venv
source .venv/bin/activate
uv pip install -e ".[test]"  # Include test dependencies
  1. Run tests:
pytest                    # Run all tests
pytest -v                # Run with verbose output
pytest -v --cov         # Run with coverage report
  1. Run the server locally:
python -m memory_mcp_server

Testing

The project uses pytest for testing. The test suite includes:

Unit Tests

  • test_knowledge_graph_manager.py: Tests for basic knowledge graph operations
  • test_optimized_knowledge_graph_manager.py: Tests for optimized/batch operations
  • test_server.py: Tests for MCP server implementation

Running Tests

# Run all tests
pytest

# Run with coverage report
pytest --cov=memory_mcp_server

# Run specific test file
pytest tests/test_server.py

# Run tests with verbose output
pytest -v

Test Fixtures

The conftest.py file provides common test fixtures:

  • temp_db_path: Creates a temporary SQLite database
  • knowledge_graph_manager: Provides a KnowledgeGraphManager instance
  • optimized_knowledge_graph_manager: Provides an OptimizedKnowledgeGraphManager instance

License

This project is licensed under the MIT License - see the LICENSE file for details.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Andris Teikmanis
  • Latvian GPT assistant for developing GPT applications

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Navid RezaeiSarchoghaei
  • Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://cantaspinar.com
  • Summarizes videos and answers related questions.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Jan Meindl
  • Builds new GPTs

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    1 (1)
    Avatar
    user_bDbxnemn
    2025-04-15

    The Sentry MCP Server by inceptionJh is a game-changer for managing server environments. The user-friendly interface and robust performance make it an essential tool for anyone in need of reliable server management. Definitely worth checking out for seamless operations! Highly recommend visiting https://mcp.so/server/sentry-mcp-server/inceptionJh for more details.