MCP ConfigsMay 12, 2026·2 min read

DuckDB Graph Memory MCP — File-Backed Memory DB

DuckDB Graph Memory MCP is a fork of the MCP memory server that stores the knowledge graph in a DuckDB file for SQL queries and scaling beyond JSON.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 8c5de361-7e55-5c19-95c3-3fe41bc5a2c4 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

DuckDB Graph Memory MCP is a fork of the MCP memory server that stores the knowledge graph in a DuckDB file for SQL queries and scaling beyond JSON.

  • Best for: agent builders who need a self-hosted memory graph that can grow beyond JSON and remain queryable
  • Works with: MCP clients (Claude Desktop), Node.js npx runner, a writable filesystem path for the DuckDB file
  • Setup time: 10-20 minutes

Practical Notes

  • Quant: memory is stored in a DuckDB file, so you can backup/rotate it like any other database artifact.
  • Quant: treat memory writes as an explicit policy—capture only verified facts to keep retrieval precision high.

Rollout pattern

  • Start with a dedicated memory file per project to avoid cross-project contamination.
  • Define a memory write policy: only write decisions, constraints, and stable preferences.
  • Schedule periodic cleanup or consolidation so the knowledge graph stays useful over time.

Watchouts

A local memory file can still leak secrets if your agent writes them. Treat the file as sensitive and keep it out of synced folders or shared drives.

FAQ

Q: Is this the official MCP memory server? A: It is a fork of the official knowledge graph memory server with DuckDB storage changes.

Q: Where is data stored? A: In a DuckDB database file at MEMORY_FILE_PATH.

Q: How do I keep it clean? A: Write only verified facts and run periodic consolidation/cleanup so retrieval stays high-signal.

🙏

Source & Thanks

Source: https://github.com/IzumiSy/mcp-duckdb-memory-server > License: MIT > GitHub stars: 55 · forks: 12

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets