DBCode MCP

An MCP server and the dbcode-cli skill: an agent runs SQL through connections already saved in the DBCode editor extension.

  • 363 ★ on the repository
  • Last commit
MCP serverOfficial

Broad access

Why this level

  • The agent gets access to real databases: queries, data edits and table creation are possible unless the connection is marked read-only.
All reasons and checks

dbcodeio/public

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/dbcode

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • The agent gets access to real databases: queries, data edits and table creation are possible unless the connection is marked read-only.

This is third-party code. Review the repository files before installing.

What it does

DBCode is an extension for VS Code, Cursor, Windsurf, Antigravity and Kiro: a client for more than 100 databases. The `@dbcode/mcp` package connects an agent to it, so the agent sees the schema and queries data through your saved connections without separate access setup. The `dbcode-cli` skill teaches the agent the `dbcode` command: find a connection (`dbcode connections`), run a query or a `.sql` file and get JSON or CSV output. AI permissions are set per connection.

Who it is for. Developers and analysts who already manage databases in DBCode and want Claude Code or Codex to read data from there without a second set of passwords.

Good fit when

  • The agent checks a table schema and writes a query against real columns.
  • A report needs a CSV export: `dbcode query` reads a `.sql` file and writes the result to a stream.
  • The project repository has a data-check script that the agent runs against a saved connection.
  • The database is read-only and the agent needs safe selects without copying rows by hand.

Not a fit when

  • The DBCode extension is not installed: the package only connects to it and creates no connections of its own.
  • Direct database access without an editor is needed: the server works through saved DBCode connections.
  • The database must not be opened to an agent for either reading or writing.

Example request

Through DBCode, list the connections, pick the test database and count orders per day for the last week, read-only.

MCP

Transport
stdio
Authentication
not required

Limitations

Using it requires the DBCode extension in one of the editors and Node.js 22.14 or newer. The `dbcode-cli` skill needs the CLI installed separately (the `DBCode: Install CLI` command in the palette), and some connection types are not yet available from the CLI. The license is proprietary: viewing and editing data, notebooks, schema diagrams and the MCP server are free, including for commercial teams, while the AI assistant belongs to a paid plan. The repository holds the product's public materials rather than the extension source.

How to disable. Remove the `dbcode` entry from the MCP client configuration or use the client's removal command, for Claude Code `claude mcp remove dbcode`. Delete the `dbcode-cli` skill folder from the agent's skills directory.

FAQ

How do I connect the server to Codex?

Run `codex mcp add dbcode -- npx -y @dbcode/mcp`. For Cursor, Windsurf and Claude Desktop add the same `npx -y @dbcode/mcp` to the client's MCP configuration.

Which editor is used?

The `--app` flag chooses it: `Code`, `Cursor`, `Windsurf`, `Antigravity` and others. Without the flag the package takes the newest installed DBCode.

Can the agent be limited to reads?

Yes. AI permissions are set per connection, and a database can be connected read-only. Start with that.

What does the dbcode-cli skill do?

It documents the `dbcode` command: `dbcode connections` lists connections and `dbcode query -c "My Postgres" "select now()"` runs a query. Outside a terminal the output is JSON.

Must an editor window be open?

No. When no editor is running, the server reads the saved DBCode connections directly.

Discussion

No questions or reviews yet.

vi-sql is a terminal SQL client with a built-in MCP server: the agent sees the schema and drafts queries straight in your editor

MCP serverExtended access210Repository stars
Official

MCP server and Claude Code plugin for SQL: validation, formatting, linting and injection scanning across eight dialects.

MCP serverExtended access124Repository stars
Official

A lightweight database workspace with an MCP server: the agent reads the schema, runs queries and explores data in PostgreSQL, MySQL and more

MCP serverBroad access5.1KRepository stars

One MCP server for SQLite, SQL Server, PostgreSQL and MySQL: read and change data, edit schemas and export to CSV and JSON

MCP serverBroad access390Repository stars

MCP server and CLI to drive real Microsoft Excel: Power Query, DAX, VBA, PivotTables and charts

MCP serverBroad access849Repository stars
Official

A desktop SQL workspace with a built-in MCP server: the agent reads the schema and runs queries in the same client you already use

MCP serverBroad access5.4KRepository stars

README in short

The extension keeps database work inside the editor: data viewing and editing, SQL notebooks, ER diagrams and built-in MCP tools. The separate `@dbcode/mcp` package exposes them to external agents.

README badge

Report a problem

Foxx AIDBCode
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.