Database MCP Server

A single-binary MCP server for MySQL, MariaDB, PostgreSQL, and SQLite

Local serverstdioPython

What is the Database MCP Server?

A single-binary MCP server for MySQL, MariaDB, PostgreSQL, and SQLite

What you get

A single-binary MCP server for SQL databases. Connect your AI assistant to MySQL/MariaDB, PostgreSQL, or SQLite with zero runtime dependencies.

  • Multi-database — — MySQL/MariaDB, PostgreSQL, and SQLite from one binary
  • Single binary — — ~7 MB, no Python/Node/Docker needed
  • Multiple transports — — stdio (for Claude Desktop, Cursor) and HTTP (for remote/multi-client)
  • Two-layer config — — CLI flags > environment variables, with sensible defaults per backend

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
stdioRun in stdio mode
versionPrint version information and exit
listDatabasesLists accessible databases, paginated via cursor / nextCursor. See [Cursor Pagination](https://dbmcp.haymon.ai/docs/features#cursor-pagination) for iteration details. Not available for SQLite.
listTablesLists tables in a database, paginated via cursor / nextCursor. See [Cursor Pagination](https://dbmcp.haymon.ai/docs/features#cursor-pagination) for iteration details.
listViewsLists views in a database, paginated via cursor / nextCursor. Available on MySQL/MariaDB, PostgreSQL (public schema), and SQLite. Parameters: database (defaults to the active database; SQLite has no database parameter),
listTriggersLists user-defined triggers on tables, paginated via cursor / nextCursor. Internal constraint and foreign-key triggers are excluded. Available on MySQL/MariaDB, PostgreSQL (public schema), and SQLite. Parameters: databas
listFunctionsLists user-defined SQL functions, paginated via cursor / nextCursor. PostgreSQL excludes aggregates, window functions, and procedures; MySQL/MariaDB excludes loadable UDFs (mysql.func). Available on MySQL/MariaDB and Pos
listProceduresLists user-defined stored procedures, paginated via cursor / nextCursor. Available on MySQL/MariaDB and PostgreSQL (public schema, PostgreSQL 11+). Not available for SQLite. Parameters: database (defaults to the active d
listMaterializedViewsLists materialized views in the public schema, paginated via cursor / nextCursor. PostgreSQL only — not available for MySQL/MariaDB or SQLite. Parameters: database (defaults to the active database), cursor, search, detai
readQueryExecutes a read-only SQL query (SELECT, SHOW, DESCRIBE, USE, EXPLAIN). Always enforces SQL validation as defence-in-depth. Parameters: query, database, cursor. SELECT results paginate via cursor / nextCursor; SHOW, DESCR
writeQueryExecutes a write SQL query (INSERT, UPDATE, DELETE, CREATE, ALTER, DROP). Only available when read-only mode is disabled. Parameters: query, database.

Configuration

VariableDescriptionRequired
DB_BACKENDConfiguration value read at startup.Optional
DB_HOSTEndpoint or connection string the server talks to.Optional
DB_PORTConfiguration value read at startup.Optional
DB_USERConfiguration value read at startup.Optional
DB_PASSWORDConfiguration value read at startup.Optional
DB_NAMEConfiguration value read at startup.Optional
DB_SSL_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Database MCP to Subcommand.”
  • “Use Database MCP to stdio.”
  • “Use Database MCP to version.”

Frequently asked questions

A single-binary MCP server for MySQL, MariaDB, PostgreSQL, and SQLite Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.