db-mcp-server

db-mcp-server

3.6

If you are the rightful owner of db-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.

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. The server supports simultaneous connections to multiple databases, including MySQL, PostgreSQL, and TimescaleDB, and automatically generates specialized tools for each database. It follows Clean Architecture principles, ensuring a modular design with clear separation of concerns. The server is compatible with OpenAI Agents SDK, allowing seamless integration with AI assistants. Deployment options include Docker, STDIO mode for IDE integration, and SSE mode for server-sent events, providing flexibility for different environments.

Features

  • Simultaneous Multi-Database Support: Connect to multiple MySQL and PostgreSQL databases concurrently
  • 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

Tools

  1. query_<dbid>

    Execute SQL query

  2. execute_<dbid>

    Execute data modification statement

  3. transaction_<dbid>

    Manage transactions

  4. schema_<dbid>

    Explore database schema

  5. performance_<dbid>

    Analyze query performance

  6. list_databases

    List all configured database connections