Skip to main content Switch to mobile version Pre-release This release is a pre-release and may not be stable for production use.
MCP server for Memory v2: local-first long-term memory for AI agents
pip install memory-v2-mcp Copy PIP instructions
mcp-name: io.github.DonParalon85/memory-v2
Memory v2 exposes its API to any MCP-speaking agent through a small stdio server. Works with Claude Desktop, Claude Code, Cursor and other MCP clients.
The project targets MCP SDK v2 (MCPServer, formerly FastMCP). The requirement is mcp>=2,<3; server.py keeps a v1 fallback for older environments.
python3 -m venv .venv-mcp . .venv-mcp/bin/activate pip install -r mcp/requirements.txt Windows PowerShell:
python -m venv .venv-mcp .venv-mcp\Scripts\Activate.ps1 pip install -r mcp\requirements.txt Environment:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{ "mcpServers": { "memory-v2": { "command": "C:\\path\\to\\memory_v2.0\\.venv-mcp\\Scripts\\python.exe", "args": ["C:\\path\\to\\memory_v2.0\\mcp\\server.py"], "env": { "MEMORY_API": "http://127.0.0.1:8002" } } } } Restart Claude Desktop after editing the file. A memory-v2 tool group should appear.
claude mcp add memory-v2 -- python /path/to/memory_v2.0/mcp/server.py Cursor
Put this in ~/.cursor/mcp.json (or .cursor/mcp.json inside a project):
{ "mcpServers": { "memory-v2": { "command": "python", "args": ["/path/to/memory_v2.0/mcp/server.py"], "env": { "MEMORY_API": "http://127.0.0.1:8002" } } } } Docker-only option (no local Python)
If the Memory stack is running under Docker, the same image can host the MCP server:
docker run -i --rm --network memory-v2_default \ -e MEMORY_API=http://memory:8002 \ memory-v2:latest python /app/mcp/server.py On Linux, --network host with MEMORY_API=http://127.0.0.1:8002 also works. On Docker Desktop for Windows, host networking differs; running the MCP server natively in a Python venv is usually simpler.
Run the stdio smoke test against a dev/test Memory API:
MEMORY_API=http://127.0.0.1:8103 python mcp/test_server.py Or inside the Docker image (no local Python):
docker run --rm --network host \ -e MEMORY_API=http://127.0.0.1:8103 \ -v "$PWD/mcp:/app/mcp:ro" \ --entrypoint python memory-v2:latest /app/mcp/test_server.py The test refuses to run against a non-loopback API, so a dev run cannot touch a shared database. It checks initialize, tools/list, every tool, archive idempotency, and error responses, then removes the test conversation and test memory it created.
Point it at any project you don't mind writing to:
MEMORY_API=http://127.0.0.1:8002 MEMORY_PROJECT_ID=2 python mcp/test_server.py MEMORY_PROJECT_ID defaults to 1. The server itself has no model or client dependency: any MCP-capable app works. See docs/integrations.md for Claude Desktop, Cursor, Cline, Continue, Windsurf, Zed and plain REST/OpenAI/Anthropic tool schemas.
Run the server as a script (python mcp/server.py), not as python -m mcp.server from the repository root: the project's mcp/ directory can otherwise shadow the installed SDK.
“Search my Memory for AsyncSession and show the source branch.”
“Restore project 1 and summarize its open decisions.”
“Archive this dialog as a branch in project 1 with external id demo:fastapi:async-session:003.”
“Save a decision: schema changes go through Alembic.”
The MCP server only talks to the Memory API; it does not open the database.
Point MEMORY_API at a dev/test instance while developing. Never point the MCP server at a shared or production address by accident.
Keep the API bound to 127.0.0.1 for local use.
If you expose the API to a LAN, set MEMORY_API_TOKEN and pass it to the MCP server through the environment.
Tool results may contain conversation text. Do not paste secrets into prompts.
Released: Nov 28, 2026
Author: DonParalon85
mcp model-context-protocol memory ai-agents local-first sqlite
Development Status 3 - Alpha
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Software Development :: Libraries
Release files for memory-v2-mcp 2.1.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 33.0 kB
Release files / memory_v2_mcp-2.1.0a3.tar.gz
Release files / memory_v2_mcp-2.1.0a3-py3-none-any.whl
Security for memory-v2-mcp 2.1.0a3
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
2.1.0a3 This release
Nov 28, 2026 2 release files No provenance
Nov 27, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











