dbmcp

dbmcp is an MCP server for Claude Code from haymon-ai/dbmcp. Its token cost is not measured, scanned A, original, MIT.

A local MCP server that lets an AI assistant work with SQL databases using configured connection details. MCP is a standard way for an AI tool to call external services.

In plain words
What is it for?
It is for connecting an AI assistant to MySQL, MariaDB, PostgreSQL, or SQLite databases through configuration and environment variables.
Why use it?
It keeps database access in a local server and avoids requiring the assistant to handle database operations directly.

MCP server for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: listed in a Claude config.

Part of the dbmcp plugin — 2 skills, 1 MCP server shipped together

Good fit It is for connecting an AI assistant to MySQL, MariaDB, PostgreSQL, or SQLite databases through configuration and environment variables.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/haymon-ai/dbmcp/dbmcp-dbmcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/haymon-ai/dbmcp

Made for: Claude Code.

Or install dbmcp, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dbmcp

README.md
[![agentmods](https://agentmods.dev/badge/mcp/haymon-ai/dbmcp/dbmcp-dbmcp/github.svg)](https://agentmods.dev/mcp/haymon-ai/dbmcp/dbmcp-dbmcp)
Your own site
<a href="https://agentmods.dev/mcp/haymon-ai/dbmcp/dbmcp-dbmcp"><img src="https://agentmods.dev/badge/mcp/haymon-ai/dbmcp/dbmcp-dbmcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dbmcp

Your own site · 80×15
<a href="https://agentmods.dev/mcp/haymon-ai/dbmcp/dbmcp-dbmcp"><img src="https://agentmods.dev/badge/mcp/haymon-ai/dbmcp/dbmcp-dbmcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

dbmcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dbmcp/.mcp.json · 21 lines

What it actually says

{
  "dbmcp": {
    "command": "npx",
    "args": [
      "-y",
      "@haymon-ai/[email protected]"
    ],
    "env": {
      "DBMCP_CONFIG_FILE": "${user_config.config_file}",
      "DBMCP_ENV_FILE": "${user_config.env_file}",
      "DBMCP_DB_BACKEND": "${user_config.backend}",
      "DBMCP_DB_HOST": "${user_config.host}",
      "DBMCP_DB_PORT": "${user_config.port}",
      "DBMCP_DB_USER": "${user_config.user}",
      "DBMCP_DB_PASSWORD": "${user_config.password}",
      "DBMCP_DB_NAME": "${user_config.database}",
      "DBMCP_TELEMETRY_MODE": "${user_config.telemetry}",
      "DBMCP_INSTALL_CHANNEL": "plugin"
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines 5446c00dc2b4
  2. 5d ago First seen · 19 lines scan A fb42de027139

Subscribe to this mod's changes

dbmcp is an MCP server published in the GitHub repository haymon-ai/dbmcp (33 stars, last pushed today), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-25.

Related

dbmcp compared with mcp servers from other repositories

dbmcp next to 6 mcp servers from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dbmcphaymon-ai/dbmcpMCP server33todayMITA—Claude Code
database-mcp-postgresarifulislamat/database-mcpMCP server58d agoMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
database-mcp-libsqlarifulislamat/database-mcpMCP server58d agoMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
database-mcp-mariadbarifulislamat/database-mcpMCP server58d agoMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
database-mcp-mysqlarifulislamat/database-mcpMCP server58d agoMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
database-mcp-sqlitearifulislamat/database-mcpMCP server58d agoMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
mcp-mysql-clientgistrec/mcp-mysql-clientMCP server0yesterdayMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode