Skip to content
Skillpedia
βœ“ Official Β· DBCode● Free and open sourceπŸ’» LocalπŸ”“ No API keyData and databases

DBCode

Lets your AI agent query and explore your databases through the connections you already set up in DBCode.

363 stars on GitHubby DBCodeLicense NOASSERTIONUpdated 21 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

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

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Show me the tables in my Postgres database and how they connect.
Write a query that counts orders per customer for last month and run it.

What it is

DBCode is a database client for VS Code, Cursor, Windsurf and similar editors, and it includes built-in MCP tools. These give your AI agent access to your existing database connections, with permissions you set for each connection. It supports 100+ databases, from Postgres and MySQL to MongoDB and Snowflake.

What it can do

  • Ask schema questions and get answers from your live database
  • Generate and run SQL queries from plain language
  • Create tables from a request
  • Use your saved connections, with AI permissions set per connection
  • Work with schema context for tables, views and procedures

When to use

  • β€ΊWhen you want your AI agent to answer questions about your data without copying credentials into a chat.
  • β€ΊWhen you need the agent to write SQL that matches your real schema.
  • β€ΊWhen you want to limit what an AI agent can do on each database connection.

What you need

The DBCode extension installed in VS Code, Cursor, Windsurf, Antigravity or Kiro, and at least one database connection set up in it.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is DBCode free?

The readme says it is free for everyone, including commercial use, and that this covers the MCP server for your AI agent. Pro and Team plans add more features.

How many databases does it support?

It lists 100+ databases, warehouses and file formats, including PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Snowflake and BigQuery.

Which editors does it work in?

VS Code, Cursor, Windsurf, Antigravity and Kiro. It is on the VS Code Marketplace and on OpenVSX for forks.

How does an external agent like Claude Code connect?

Use the DBCode command named Connect an AI Agent. In VS Code and Cursor the MCP tools are registered automatically.

Can I limit what the AI does?

Yes. You set AI permissions per connection, and the readme also mentions read-only connections and missing-WHERE detection.

Does it collect data?

The readme says anonymous usage data is collected when VS Code telemetry is enabled, and nothing is collected if you turn it off.

If it does not work

  • β€ΊRestart your editor after installing the extension so the MCP tools register.
  • β€ΊIf an external agent cannot see your databases, run the DBCode command Connect an AI Agent again.
  • β€ΊCheck that the connection works inside DBCode itself before asking the agent to use it.

5 new skills a week. 1 minute to read.