This release is a pre-release and may not be stable for production use.
mcp-name: io.github.DonParalon85/memory-v2
MCP server
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.
Tools
| Tool | Purpose |
|---|---|
memory_health |
Check API availability |
memory_list_projects |
List projects |
memory_project_context |
Restore a project and its branches |
memory_search |
Search memories and messages |
memory_archive_conversation |
Archive a branch idempotently |
memory_upsert |
Store a fact, decision, constraint or preference |
memory_deprecate |
Retire an old memory, optionally with a replacement |
Install
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:
| Variable | Default |
|---|---|
MEMORY_API |
http://127.0.0.1:8002 |
MEMORY_API_TOKEN |
empty (local-only) |
Claude Desktop
Config file:
- 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 Code
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.
Testing
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.
Example prompts
- “Search my Memory for
AsyncSessionand 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.”
Security
- The MCP server only talks to the Memory API; it does not open the database.
- Point
MEMORY_APIat 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.1for local use. - If you expose the API to a LAN, set
MEMORY_API_TOKENand pass it to the MCP server through the environment. - Tool results may contain conversation text. Do not paste secrets into prompts.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memory_v2_mcp-2.1.0a3.tar.gz | 18.3 kB | Without provenance | Details for memory_v2_mcp-2.1.0a3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memory_v2_mcp-2.1.0a3-py3-none-any.whl | Python 3 | none | any | Details for memory_v2_mcp-2.1.0a3-py3-none-any.whl |
Total release size: 33.0 kB
Release files / memory_v2_mcp-2.1.0a3.tar.gz
| Download URL | memory_v2_mcp-2.1.0a3.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6183b1c7b8e87501cc7edd7148d326c1e736d6f3c197ff6ae0f8dcc6d392a156
|
|
BLAKE2b-256 checksum How to use checksums |
fa46d60cf27ab9a9cc2c04cf20ded835276d4240a4c59296d248fa1a84756ac9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / memory_v2_mcp-2.1.0a3-py3-none-any.whl
| Download URL | memory_v2_mcp-2.1.0a3-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34ff7c3e71aff8108c6b373c7bcef516e34cfec6438408976d1b75ca554d2c72
|
|
BLAKE2b-256 checksum How to use checksums |
201bfcadbfe36380c72bc40238a0ef875874bb85d899f0eaaf4d8ef6d0248929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for memory-v2-mcp 2.1.0a3
Provenance
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.
No provenance found
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.