Compartment
Compartment is an MCP server that adds database tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Durable agentic memory, encrypted at rest. It has 576 GitHub stars, is released under the Apache-2.0 license and runs locally with uvx compartment.
github.com/MaxFreedomPollard/Compartment (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Compartment
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"compartment": {
"command": "uvx",
"args": [
"compartment"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio compartment -- uvx compartmentCursor
{
"mcpServers": {
"compartment": {
"type": "stdio",
"command": "uvx",
"args": [
"compartment"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"compartment": {
"type": "stdio",
"command": "uvx",
"args": [
"compartment"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
About Compartment
Encrypted, fully offline memory for AI agents. One vault on your own computer, read and written by Claude Code, Claude Desktop, Hermes Agent, OpenClaw, Cursor, Codex and any other MCP client. No API key, no account, no network, no telemetry.
- ai-agents
- encryption
- mcp
- vector-database
- agent-memory
- claude
- local-first
- mcp-server
- model-context-protocol
- privacy
Similar MCP servers
More databases MCP servers
phpMyFAQ
thorsten/phpMyFAQ
phpMyFAQ - Open Source FAQ web application for PHP 8.4+ and MySQL, PostgreSQL and other databases.
Maintained · last commit Oct 25, 2026
DatabasesPHPMisakanet
Ikalus1988/MisakaNet
Failure-memory layer for coding agents: search evidence-rated failure lessons by error text.
Active · last commit Oct 26, 2026
DatabasesPythonMCP Redis
redis/mcp-redis
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently.
Active · last commit Oct 20, 2026
OfficialDatabasesPythonMCP Neo4j Cypher
neo4j-contrib/mcp-neo4j
A simple Neo4j MCP server that allows you to run Cypher queries against a Neo4j database.
Maintained · last commit Sep 9, 2026
OfficialDatabasesPythonNeon
neondatabase/mcp-server-neon
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Maintained · last commit Oct 21, 2026
OfficialDatabasesTypeScriptMCP SSH Manager
bvisible/mcp-ssh-manager
SSH server management for agents, with per-server read-only and allowlist security modes.
Active · last commit Oct 25, 2026
DatabasesJavaScript
How do I install the Compartment MCP server?
Add the command uvx compartment to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Compartment free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is Compartment actively maintained?
The most recent commit was on Oct 20, 2026. The latest release is v4.13.0, published Oct 20, 2026. appsgit only lists MCP servers with a commit in the last six months.