Skip to content
Agents tracked: 502 Releases (7d): 762 Agent status: no reported issuesSince last limit reset: Claude 11d · Codex 9d For AI agents: Markdown Updated Nov 22, 2026

DBCode

by dbcodeio

your AI assistant queries your databases.

DatabasesOfficialLocal

GitHubWebsite

1. Made by

“"homepage": "https://dbcode.io/docs/ai/mcp",”

The server is published by DBCode itself from its own GitHub organization dbcodeio; the npm package @dbcode/mcp points its homepage at dbcode.io, and the registry name io.dbcode matches that domain.

github.com/dbcodeio/public/blob/5d537882350d65f790959875068eff7751a51fe8/mcp/package.json

Checked against its repository at one commit, on Nov 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What DBCode does

DBCode is a database tool that lives inside VS Code, Cursor and similar editors. This server lets your AI assistant use the database connections you saved in DBCode, so it can list them, read the tables and run queries for you. It works with more than 100 kinds of databases.

What people use it for

Ask questions about your data

Ask in chat, for example how many orders came in last month, and the assistant writes and runs the query on your saved connection.

Learn an unfamiliar database

Let the assistant find your connections, read every table and column, and explain how the main tables relate before it writes any query.

Copy real rows into a test database

Pull a slice of production data into your development database to test against real shapes. Only row counts go back to the assistant, not the rows.

Query MongoDB in its own language

On a MongoDB connection the assistant can send the same find or aggregate statements you would type yourself, or plain SQL.

An assistant inside a Dev Container

Turn on DBCode's local web server on your computer and point an assistant that runs in a Dev Container or on another machine at it, with sign-in kept on.

Check the data after a release Idea

After a change ships, ask the assistant to run a few read-only checks on a staging copy, such as counting rows with empty required fields.

DBCode popularity

367
GitHub stars, dbcodeio/public
118
downloads last week, @dbcode/mcp
0
public agent projects connect it
DBCode: downloads per weeknpm, @dbcode/mcp 118
DBCode: GitHub starsdbcodeio/public 367

Tools it gives your agent (8)

What it sends and its license

Sends

table and column names, and the rows of every query the assistant runs

To your AI client and the model provider it uses; each time the assistant calls a read or query tool. Opt out: use a read-only connection or AI data masking, or do not connect databases with private data.

Sends

nothing from dbcode-copy-data except row counts and a sample of error messages

To your AI client; when the assistant copies data between connections. Opt out: not needed; the copied rows stay between your databases.

The server is free for everyone, including companies. The small launcher package is MIT, but DBCode itself is closed software you may use and not copy, change or pass on.

In a paid app
Yes

DBCode and its MCP server are free for commercial use and teams of any size.

“Free for everyone, including commercial use and teams of any size” source

Pass on its files
No

The DBCode extension, where the tools run, may not be passed on without written consent; only the small launcher package is MIT.

“Licensee shall not distribute, sublicense, or transfer the Extension to third parties without prior written consent from Licensor.” source

client-work
Yes

The license covers personal or business use on unlimited devices.

“grants the user ("Licensee") a non-exclusive, non-transferable license to download, install, and use the DBCode Extension ("Extension") on unlimited devices for personal or business purposes.” source

Is it alive

Latest version

1.0.1 in the registry, updated Oct 3, 2026

Last release

@dbcode/mcp 1.0.1 on npm, published 2026-10-03; the DBCode docs page was updated Nov 9, 2026 (extension v1.39.1)

Alternatives

DBCode This page

367 starsLocal

DBHub

Pick it if you want a standalone open source database server with no editor extension

3,870 starsLocalin 23 projects

com-supabase-mcp

Pick it if your database is on Supabase and the agent should also manage the project

Local

All databases servers

Get started

Tell your AI assistant

“Add the DBCode MCP server (claude mcp add dbcode -- npx -y @dbcode/mcp), then list my DBCode connections, read the tables of my dev database and only run read queries unless I ask for a change.”

Connect it

claude mcp add dbcode -- npx -y @dbcode/mcp

In VS Code and Cursor DBCode registers its tools by itself, so no config is needed there. The package needs Node.js 22.14 or newer and DBCode installed in an editor.

Mistakes to avoid

Asking "show me all records created last month" with no schema step
First have the assistant read the tables and columns of the named database, then ask the question.

The assistant does not know your table names by itself and guesses.

Calling dbcode-copy-data into a table that does not exist yet
Create the destination table first with dbcode-execute-ddl, and alias source columns to the destination column names.

The copy needs an existing table and maps columns by name.

npx -y @dbcode/mcp on a machine without the DBCode extension or with Node older than 22.14
Install DBCode in a supported editor and Node.js 22.14+, then restart the agent.

The launcher only finds and starts the installed extension and checks the Node version.

Turning on the local web server with authorization None and external connections allowed
Keep OAuth on whenever allowExternalConnections is enabled for Dev Containers or other machines.

Without OAuth anyone on your network can run queries through it.

Looping copy calls over a huge table in one go
Split the source query into key ranges and call it repeatedly with duplicates=skip.

Each call copies at most 1,000,000 source rows; skip makes re-runs safe to resume.

Questions

Does it cost anything?

No. The server is free for everyone. Only extras such as a separate, narrower role for the assistant need the paid Pro plan.

Do I need to keep my editor open?

No. With no editor open, the server reads your saved DBCode connections directly; a few features, such as copying data, then need the editor.

Are my database passwords sent to the AI?

No. DBCode says it never sends credentials, passwords, connection strings or server addresses; table names and query results are sent when the assistant asks.

Can the assistant delete data?

It can if the connection's role allows it. The Production role asks first for deletes and blocks dropping tables; read-only mode allows only reads.

I use DBCode in two editors. Which connections does the assistant see?

The newest installed DBCode is used; add --app with the editor name, such as Cursor, to choose.