A Model Context Protocol server for storing and retrieving memories
Project description
Memory MCP
A Model Context Protocol server for storing and retrieving memories using low-level Server implementation and SQLite storage.
Installation
This project uses uv for dependency management instead of pip. uv is a fast, reliable Python package installer and resolver.
Install using uv:
uv pip install memory-mcp
Or install directly from source:
uv pip install .
For development:
uv pip install -e ".[dev]"
If you don't have uv installed, you can install it following the official instructions.
Usage
Running the server
memory-mcp
This will start the MCP server that allows you to store and retrieve memories.
Available Tools
The Memory MCP provides the following tools:
remember: Store a new memory with a title and contentget_memory: Retrieve a specific memory by ID or titlelist_memories: List all stored memoriesupdate_memory: Update an existing memorydelete_memory: Delete a memory
Debugging with MCP Inspect
MCP provides a handy command-line tool called mcp inspect that allows you to debug and interact with your MCP server directly.
Setup
- First, make sure the MCP CLI tools are installed:
uv pip install mcp[cli]
- Start the Memory MCP server in one terminal:
memory-mcp
- In another terminal, connect to the running server using
mcp inspect:
mcp inspect
Using MCP Inspect
Once connected, you can:
List available tools
> tools
This will display all the tools provided by the Memory MCP server.
Call a tool
To call a tool, use the call command followed by the tool name and any required arguments:
> call remember title="Meeting Notes" content="Discussed project timeline and milestones."
> call list_memories
> call get_memory memory_id=1
> call update_memory memory_id=1 title="Updated Title" content="Updated content."
> call delete_memory memory_id=1
Debug Mode
You can enable debug mode to see detailed request and response information:
> debug on
This helps you understand exactly what data is being sent to and received from the server.
Exploring Tool Schemas
To view the schema for a specific tool:
> tool remember
This shows the input schema, required parameters, and description for the tool.
Troubleshooting
If you encounter issues:
- Check the server logs in the terminal where your server is running for any error messages.
- In the MCP inspect terminal, enable debug mode with
debug onto see raw requests and responses. - Ensure the tool parameters match the expected schema (check with the
toolcommand). - If the server crashes, check for any uncaught exceptions in the server terminal.
Development
To contribute to the project, install the development dependencies:
uv pip install -e ".[dev]"
Managing Dependencies
This project uses uv.lock file to lock dependencies. To update dependencies:
uv pip compile pyproject.toml -o uv.lock
Running tests
python -m pytest
Code formatting
black memory_mcp tests
Linting
ruff check memory_mcp tests
Type checking
mypy memory_mcp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_drdee_memory_mcp-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_drdee_memory_mcp-0.1.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9deec566b37152b82c5fa7950ce0a1c1c3fe1194ab17a5617463188d9e9c3f
|
|
| MD5 |
48e80c7b6c381c0af94a6d64c8d03b14
|
|
| BLAKE2b-256 |
1ea8237f50d0c32d15a82735605f36a44238150761a63f7596a039bc17bba9b1
|
File details
Details for the file iflow_mcp_drdee_memory_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_drdee_memory_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6067184be3acf60bf99fb2b9350aa4515a879c8a652973aa85b5707255c8749
|
|
| MD5 |
7d361eeb614d1cef9588c880af6dcc40
|
|
| BLAKE2b-256 |
190630da4c8a05bec9f0f0e8c5bd870df4381481c5595af4ac9fd78f4da91dd8
|