Memoire
Local semantic memory for coding agents, stored in SQLite with on-device embeddings
Memoire is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Linux, macOS
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add memoire-mcp -- uvx memoire-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"memoire-mcp": {
"command": "uvx",
"args": [
"memoire-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"memoire-mcp": {
"command": "uvx",
"args": [
"memoire-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"memoire-mcp": {
"command": "uvx",
"args": [
"memoire-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"memoire-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"memoire-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add memoire-mcp -- uvx memoire-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.memoire-mcp]
command = "uvx"
args = ["memoire-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"memoire-mcp": {
"command": "uvx",
"args": [
"memoire-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Or run: gemini mcp add -s user memoire-mcp uvx -- memoire-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "memoire-mcp": { "command": "uvx", "args": [ "memoire-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
MEMOIRE_DB_PATHAbsolute path of the SQLite memory database. If unset the server uses <workspace>/.memoire_path or <workspace>/memoire.db.FASTEMBED_CACHE_DIRDirectory for the embedding model (about 23 MB, downloaded on first use). Set one shared directory to avoid a download per working directory.MEMOIRE_TRIAL_CAPMaximum unverified (no-feedback) memories one recall returns. Non-negative integer; the engine default is 1.MEMOIRE_ENABLE_ADMIN_TOOLSSet to 1 to expose memoire_clear and memoire_import. Off by default; leave off unless you need them.
About Memoire
Memoire gives an AI coding assistant a memory that persists between sessions. Facts are saved to a local SQLite database and retrieved by meaning, using embeddings computed on your own machine, so nothing is sent to a hosted service.
It runs as an MCP stdio server that MCP-compatible clients such as Claude Code and Cursor can launch. The database location is configurable through an environment variable, and a shared cache directory keeps the embedding model from being downloaded again for every project. Recall results can be checked and ranked through feedback tools, and a trial cap controls how many unverified memories a single recall returns.
The server is aimed at developers who want an agent to remember project context without relying on a cloud account. Admin tools for clearing and bulk-importing memory are off by default and must be enabled explicitly.
What it does
- Local vector storage
- Memories are kept in a SQLite file on your machine with no hosted backend.
- On-device embeddings
- Semantic search uses a local embedding model that is downloaded once and cached.
- Feedback-based ranking
- Feedback tools let the agent or user mark recalled memories, affecting future results.
- Configurable recall limit
- A trial cap setting controls how many unverified memories one recall returns.
- Gated admin tools
- Clear and import operations stay disabled unless an environment flag turns them on.
Good for
- Keep project conventions and decisions available across coding sessions
- Let a coding agent recall earlier fixes for a recurring bug
- Share one memory database across clients on the same machine
- Store team-specific context without sending it to a third-party service
Pricing
Open source
Memoire FAQ
Does Memoire send my data to a server?
Memoire stores memories in a local SQLite database and computes embeddings locally, so it does not depend on a hosted service.
How is Memoire installed?
Nothing is published to PyPI yet, so it is installed from a source checkout into a virtualenv, and the MCP client is pointed at the memoire-mcp console script.
Does the first run need a download?
The embedding model, about 87 MiB, is downloaded on first use unless it is already cached, so the first tool call may be slow.
Can the agent delete all memories?
The clear and import tools are not exposed unless MEMOIRE_ENABLE_ADMIN_TOOLS is set to 1, and they are off by default.
Is Memoire free?
Yes. Memoire is open source, so you can use and self-host it for free.
How do I add Memoire to Claude Code?
Run this command in your terminal: claude mcp add memoire-mcp -- uvx memoire-mcp
What are the best alternatives to Memoire?
The closest alternatives to Memoire are memo, Memkeeper, AI Agent Memory, Mnemon MCP and Nan Forget.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.