Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Claude Db

MCP server by Avijit07x Verified · npm:claude-db

Claude Db gives Claude Code a memory of past decisions, dead ends and rules across chats, plus a map of your code. It stores data in your own SQLite, Postgres or MongoDB database. It is for developers who use Claude Code in git repositories.

  • Score 81
  • 237 stars
  • 740 a week
  • Apache-2.0
  • Updated

Install Claude Db

Built from the published package, never by AI.

claude mcp add claude-db -- npx -y claude-db

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Claude Db in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the claude-db block.

About

Claude Db is a free, open-source memory tool for Claude Code. It saves decisions, dead ends and rules when a chat ends, and the next chat starts with them. Each prompt gets the one or two earlier memories that match it. It also maps code, so questions about who defines, calls or imports a symbol are answered in one call. The README lists support for TypeScript, JavaScript, Python, Go, Rust, Java and Kotlin imports.

Capture and recall run as hooks, so there is nothing extra to run after install. Memory is stored in SQLite on your machine by default, or in Postgres or MongoDB to share across machines. The project states there is no cloud and no subscription. It is aimed at developers who use Claude Code in a git repository and want continuity between sessions.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Cross-chat memorySaves decisions, dead ends and rules when a chat ends and shows them to the next chat.
  • Per-prompt recallGives each prompt the one or two earlier memories that match it, or none if nothing fits.
  • Code mapAnswers who defines, calls or imports a symbol in one call instead of grep and file reads.
  • /catchupAnswers where you stopped when you come back to a project.
  • /handoffLeaves a short note for the next chat or a teammate.
  • /cdb-scanMaps an existing codebase into memory.
  • claude-db statusShows whether it is wired up and what it has recorded.
  • claude-db doctorChecks the setup and reports what is wrong.

What you need

  • Node.js 22.16 or newer
  • A git repository
  • Claude Code
  • Your own Claude login for the Haiku features
  • Postgres or MongoDB, optional, for sharing across machines

Try asking

  • Where did I stop in this project yesterday?
  • Why did we choose this database for the project?
  • Which files import the auth module?

Good to know

  • The distill and pick features call Claude Haiku through your own login. Each has an off switch.
  • Checks npm once a day for the latest version unless updates is set to off.
  • Sharing memory across machines requires Postgres or MongoDB instead of the default SQLite.
  • The README notes that plain grep sometimes performs better in its benchmarks.

Security check

B
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Claude Db

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

Claude Db: common questions

Where is my data stored?

Memory is stored in SQLite on your machine by default. You can choose Postgres or MongoDB to share it across machines, and the project says there is no cloud.

Does Claude Db store secrets?

The README says .env, secrets/, node_modules and .git/ are never stored. It also strips text inside <private> tags and redacts API keys and tokens before writing or sending.

Which databases does Claude Db support?

It supports SQLite by default, and Postgres or MongoDB as alternatives. You can switch with the claude-db use command.

How do I install Claude Db?

In Claude Code run claude mcp add claude-db -- npx -y claude-db. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Claude Db the official server?

Claude Db is published by npm:claude-db from its verified domain in the official MCP Registry.

Is Claude Db free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Claude Db safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.

What are alternatives to Claude Db?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does Claude Db work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Claude Db Install

Add to stack

Loading.