Corememory Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Corememory Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A local, MCP-compliant, long-term memory service for AI agents.
[Read this in Chinese (中文文档)](README_zh.md)
CoreMemory-MCP is a background service that provides a simple and persistent long-term memory for any AI agent that supports the Model Context Protocol (MCP). It allows tools like Cursor, Gemini-CLI, and Claude Code-Cli to retain and recall information across sessions.
It runs as a standalone server on your local machine, acting as a language-agnostic, pluggable brain for your favorite AI tools.
The architecture is a standard client-server model based on the MCP standard:
[Your Agent / IDE] <--> [MCP (JSON-RPC over HTTP)] <--> [Core Memory Service]
memory.add, memory.search, etc.) provided by the service.⚠️ Note: The package is not yet published to PyPI. The following are the planned installation methods.
It is recommended to install the package via pip once it is published:
pip install core-memory-mcpAlternatively, for development, you can clone the repository and install it in editable mode:
git clone https://github.com/michaelfeng/CoreMemory-MCP.git
cd CoreMemory-MCP
pip install -e .If you installed the package via pip, you can start the service by running the following command in your terminal:
core-memory-serverIf you are running from the source code, you can also run the script directly:
python memory_service.pyYou will see output indicating the service is running and ready to accept connections:
--- Starting Core Memory MCP Service ---
Compatible with the Model Context Protocol.
Listening on http://127.0.0.1:5001
Access the API at the /mcp endpoint.
Use Ctrl+C to stop.⚠️ Important: Keep this terminal window open. The service needs to be running in the background for your clients to connect to it.
Here are specific instructions for popular tools that support MCP.
The Google Gemini CLI can be configured to automatically start and use MCP servers. After installing this package, you can configure Gemini-CLI to use it.
~/.gemini/settings.json.mcp_servers list that points to the core-memory-server command.Example `settings.json`:
{
"mcp_servers": [
{
"name": "CoreMemory",
"command": [
"core-memory-server"
]
}
]
}(This assumes that the `core-memory-server` command is available in your system's PATH, which is standard after a `pip install`.)
gemini, it will automatically start the memory service and have access to the memory.* tools.Cursor uses MCP for its deep AI integrations. To connect CoreMemory-MCP, you can configure it as a tool source.
Cmd/Ctrl + ,).http://127.0.0.1:5001/mcp.memory.* tools.(Note: Cursor's UI for this may evolve. Please refer to their official documentation for the most up-to-date instructions on adding external MCP tool providers.)
Claude Code-Cli also supports MCP for external tooling. The configuration process is expected to be similar to Gemini-CLI, likely involving a central configuration file where you can declare MCP servers.
~/.claude/config.json).Hypothetical `config.json` for Claude Code-Cli:
{
"mcp_servers": [
{
"name": "CoreMemory",
"address": "http://127.0.0.1:5001/mcp"
}
]
}(Note: This is a hypothetical example. Please consult the specific documentation for Claude Code-Cli on how to register an already running MCP server.)
FastMCP is another framework that is compatible with the Model Context Protocol (MCP). Because CoreMemory-MCP also follows the MCP standard, they are compatible and can work together.
Here's what you need to know as a user:
fastmcp-based client to connect to your local CoreMemory-MCP service. The integration is seamless because both tools "speak" the same protocol.CoreMemory-MCP with clients like Cursor or Gemini-CLI, this integration does not change anything for you. Your existing setup will continue to work as before.fastmcp client to this service, you will need to provide the client with the address of your local CoreMemory-MCP server, which is typically http://127.0.0.1:5001/mcp.CoreMemory-MCP is designed to be a local-first memory service, meaning your data stays on your machine. While fastmcp offers a cloud service, please be aware that if you use it, your data might be sent to their servers. You have the choice to keep your memory local by running CoreMemory-MCP.For more precise control, you can use slash commands directly in your chat with the agent. This is the recommended way to interact with the memory service as it avoids ambiguity.
Examples:
> /cortex add "The project deadline is next Friday"> /cortex search "deadline"> /cortex list(Note: This functionality depends on the agent's implementation to parse these commands and call the corresponding `memory.` tools. This feature is planned for clients like Gemini-CLI.)*
You can also interact with the memory service through natural language. The agent will do its best to understand your intent and call the appropriate tool.
> remember that the project deadline is next Friday> what did I say about the project deadline?Your agent, now aware of the memory.add and memory.search tools, will call your local Core Memory service to fulfill these requests.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.