DBCode
MCP server by dbcodeio Verified · dbcode.io
DBCode is a database client for VS Code and its forks that gives the editor's AI agent full access to existing database connections through built-in MCP tools. It suits developers who want to query, explore and edit data across 100+ databases without leaving their editor.
Install DBCode
Built from the published package, never by AI.
claude mcp add dbcode -- npx -y @dbcode/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"dbcode": {
"args": [
"-y",
"@dbcode/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"dbcode": {
"args": [
"-y",
"@dbcode/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"dbcode": {
"args": [
"-y",
"@dbcode/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add dbcode -- npx -y @dbcode/mcp{
"mcpServers": {
"dbcode": {
"args": [
"-y",
"@dbcode/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add dbcode npx -y @dbcode/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 dbcode block.
About
DBCode is a database client for VS Code, Cursor, Windsurf, Antigravity, and Kiro that also serves as the database layer for AI agents. It lets users write SQL with IntelliSense, edit table data in place, view auto-generated ER diagrams, and manage more than 100 databases, warehouses, lakehouses, and file formats from the editor.
The built-in MCP tools give the editor's AI agent access to existing DBCode connections, with AI permissions set per connection. The tools register automatically in VS Code (Copilot) and Cursor, and external agents such as Claude Code can connect through the DBCode: Connect an AI Agent command. The client and MCP server are free for everyone, including commercial use. It suits developers and teams who work with databases inside their editor.
Written from the project's README and checked against it.
Tools it gives your assistant
Natural language queriesLets the agent query connected data using natural language requests.Schema questionsLets the agent answer questions about database schemas.Query generationLets the agent generate SQL queries for the connected database.Table creationLets the agent create tables in the connected database.Existing connectionsAgents use your existing DBCode connections, with AI permissions you control per connection.External agent accessExternal agents such as Claude Code can connect via DBCode: Connect an AI Agent.
What you need
- VS Code or a VS Code fork such as Cursor, Windsurf, Antigravity, or Kiro
- Database connections configured in DBCode
- Claude Code, if using an external agent
Try asking
- Show me the schema of my orders database
- Generate a query that lists customers with no orders in the last 30 days
- Create a table for storing invoice line items in my connected database
Good to know
- Tools register automatically in VS Code and Cursor, but need one click in Antigravity, Windsurf, and Kiro.
- Anonymous usage data is collected only when VS Code telemetry is enabled.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to DBCode
All alternatives →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.
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.
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.
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.
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.
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.
Compare with Supabase, ArcadeDB MCP Server or DBHub
DBCode: common questions
How does an AI agent use DBCode?
The built-in MCP tools give the editor's AI agent full database access through your existing DBCode connections. External agents like Claude Code can connect with the DBCode: Connect an AI Agent command.
Is the DBCode MCP server free?
The source says the MCP server for your AI agent is part of the free tier, which is free for everyone including commercial use. The Pro plan adds AI assistance and other tooling.
Which databases does DBCode support?
The source lists over 100 supported databases, warehouses, lakehouses, and file formats. Examples include PostgreSQL, MySQL, SQL Server, Snowflake, BigQuery, MongoDB, and Neo4j.
How do I install DBCode?
In Claude Code run claude mcp add dbcode -- npx -y @dbcode/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is DBCode the official server?
DBCode is published by dbcode.io from its verified domain in the official MCP Registry.
Is DBCode free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is DBCode safe to use?
It scores 83 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to DBCode?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does DBCode 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.
