Db MCP Server

Multi-database MCP server - provides AI assistants with structured database access to MySQL, PostgreSQL, SQLite, and TimescaleDB

Local serverstdioGo

What is the Db MCP Server?

Multi-database MCP server - provides AI assistants with structured database access to MySQL, PostgreSQL, SQLite, and TimescaleDB

What the server does

The DB MCP Server provides a standardized way for AI models to interact with multiple databases simultaneously. Built on the FreePeak/cortex framework, it enables AI assistants to execute SQL queries, manage transactions, explore schemas, and analyze performance across different database systems through a unified interface.

  • Simultaneous Multi-Database Support — Connect to multiple MySQL, PostgreSQL, SQLite, and Oracle databases concurrently
  • Lazy Loading Mode — Defer connection establishment until first use - perfect for setups with 10+ databases (enable with --lazy-loading flag)
  • Database-Specific Tool Generation — Auto-creates specialized tools for each connected database
  • Clean Architecture — Modular design with clear separation of concerns
  • OpenAI Agents SDK Compatibility — Full compatibility for seamless AI assistant integration
  • Dynamic Database Tools — Execute queries, run statements, manage transactions, explore schemas, analyze performance

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.

Configuration

VariableDescriptionRequired
DB_CONFIGConfiguration value read at startup.Optional
CONFIG_PATHFilesystem location the server is allowed to use.Optional
DB_MCP_API_KEYCredential the server authenticates with.Yes
ORACLE_TEST_HOSTEndpoint or connection string the server talks to.Optional
TIMESCALEDB_TEST_HOSTEndpoint or connection string the server talks to.Optional
MYSQL_TEST_HOSTEndpoint or connection string the server talks to.Optional
POSTGRES_TEST_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • “Use Db to Logs.”

Frequently asked questions

Multi-database MCP server - provides AI assistants with structured database access to MySQL, PostgreSQL, SQLite, and TimescaleDB Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.