{
 "schema_version": 1,
 "generated": "2026-10-30",
 "id": "mempalace-mempalace--run-mempalace-as-a-docker-mcp-server",
 "repo": "MemPalace/mempalace",
 "repo_url": "https://github.com/MemPalace/mempalace",
 "repo_slug": "mempalace-mempalace",
 "title": "Run a Docker MCP server for Claude Code memory",
 "page_title": "How to run a Docker MCP server for Claude Code memory with MemPalace",
 "summary": "Pull the multi-arch MemPalace image and wire it into an MCP client as a stdio server, with the palace persisted in a Docker volume.",
 "who": "A developer who wants agent memory over MCP without installing a local Python toolchain.",
 "problem": "Installing chromadb, numpy and grpcio into a global Python can conflict with other tools, and some Pythons block it with PEP 668 errors.",
 "outcome": "An MCP server your agent can call for palace reads and writes, with the palace, config and embedding model kept under /data in a named volume.",
 "steps": [
  "Run `docker pull ghcr.io/mempalace/mempalace:latest` (multi-arch, runs natively on Apple Silicon)",
  "Start the MCP server over stdio with `docker run -i --rm -v mempalace-data:/data ghcr.io/mempalace/mempalace` (keep the -i flag, JSON-RPC needs stdin)",
  "Add a MemPalace entry under mcpServers in your MCP client config with command docker and the same run arguments, mounting your .claude/projects folder read-only at /transcripts",
  "Use a real absolute path for the transcripts mount, because ~ and $HOME are not expanded by every MCP client",
  "Test retrieval from the CLI with `docker run --rm -v mempalace-data:/data ghcr.io/mempalace/mempalace search \"why GraphQL\"`"
 ],
 "agent_prompt": "Set up MemPalace/mempalace as a stdio MCP server for Claude Code using the Docker image: run `docker pull ghcr.io/mempalace/mempalace:latest`, then add a mempalace entry to my MCP config that runs the image with -i, the mempalace-data volume on /data and my Claude Code projects folder mounted read-only at /transcripts, using an absolute path. Show me the config before saving it.",
 "agents": [
  "claude-code",
  "cursor",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "25 minutes",
 "basis": "readme",
 "caveat": "The first command that needs embeddings downloads the model into /data (about 80 MB for minilm, about 300 MB for embeddinggemma), so the first call is slow and needs network. On Linux the image runs as uid 1000, so a 0700 mounted folder fails with a PermissionError.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or newer",
  "uv or pipx recommended for the CLI (plain pip only inside a virtualenv)",
  "A vector-store backend (ChromaDB by default, no configuration)",
  "About 300 MB of disk for the embedding model",
  "Docker only if you use the container image"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "This pulls and runs a container image from ghcr.io; the README warns about impostor sites, so pull only the official ghcr.io/mempalace image."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mempalace-mempalace/run-mempalace-as-a-docker-mcp-server/",
 "md": "https://dedupedai.com/use-cases/mempalace-mempalace/run-mempalace-as-a-docker-mcp-server/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mempalace-mempalace--run-mempalace-as-a-docker-mcp-server.json",
 "api_version": "v1"
}
