Database MCP
Single-binary MCP server connecting AI assistants to MySQL, PostgreSQL, and SQLite.
Tested on Linux
Use it
Linux x86_64
download install script
curl -fsSL https://dbmcp.haymon.ai/install.sh -o /tmp/install.shinstall dbmcp binary via install.sh
bash /tmp/install.sh
Where the README and reality differ
- README: launch command `dbmcp`
What worked: must use subcommand `dbmcp stdio` with required --db-backend and --db-name args; bare `dbmcp` exits with usage
Check that it works
dbmcp --version 2>&1The output should contain “dbmcp 0.15.2”.
Add it to your agent
claude mcp add dbmcp -- dbmcp stdio --db-backend sqlite --db-name '<db-name>'JSON for Claude Desktop, Cursor and other clients
{
"mcpServers": {
"dbmcp": {
"command": "dbmcp",
"args": [
"stdio",
"--db-backend",
"sqlite",
"--db-name",
"<db-name>"
]
}
}
}Replace <db-name> with your own path.
Start the server for your MCP client with dbmcp stdio --db-backend sqlite --db-name <database file>.
What it does
- Connect an AI assistant to a SQL databaseTested
How to use it
- Add
dbmcp stdio --db-backend sqlite --db-name <database file>as a server in your MCP client. - Ask the assistant to run a query; it uses the readQuery tool.
- Add
- Explore database structure with MCP toolsTested
How to use it
- Start the server with
dbmcp stdio --db-backend sqlite --db-name <database file>. - Ask the assistant to list tables; it calls the listTables tool.
- Start the server with
- Hide personal data in query resultsTested
How to use it
- Start the server with
dbmcp stdio --db-backend sqlite --db-name <database file> --pii true. - Run queries through readQuery as usual.
- Start the server with
- Block writes with read-only modeNot tested
How far pickfit got
Linux x86_64
- Installs
- Connects
- 3 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
An MCP client called one of its tools
- Replayed from scratch
- Works offline
- Checked on 31 Oct 2026
- Version 0.15.2
An MCP client handshake over stdio listed 5 tools, and a call to listTables returned a result.