Skip to content

FreePeak/db-mcp-server

MCP Data & Storage

A multi-database server that implements the Model Context Protocol (MCP) to give AI assistants unified, structured access to MySQL, PostgreSQL, SQLite, Oracle and TimescaleDB databases.

Go Latest v1.9.0 · 1mo ago Security brief →

Features

  • Simultaneous support for multiple database types (MySQL, PostgreSQL, SQLite, Oracle, TimescaleDB)
  • Lazy‑loading mode to defer connections until first use
  • Automatic generation of database‑specific tools (queries, transactions, schema exploration, performance analysis)
  • Clean‑architecture modular design with OpenAI Agents SDK compatibility

Recent releases

View all 1 releases →
v1.9.0 New feature
Notable features
  • --unified-tools flag for consolidated tool registration
  • Shared tools with database parameter
Full changelog

New Features

  • Add --unified-tools flag for consolidated MCP tool registration (#55)

How it works

When connecting many databases (e.g. 30+), the server previously registered 5 tools per database — resulting in 150+ tools. With --unified-tools, only 6 shared tools are registered (query, execute, transaction, performance, schema, list_databases) that accept a database parameter.

Usage

# Default mode — per-database tools (no changes)
./db-mcp-server -c config.json

# Unified mode — shared tools with database parameter
./db-mcp-server -c config.json --unified-tools

Tool call in unified mode:

{
  "tool": "query",
  "parameters": {
    "database": "dev_accounting",
    "query": "SELECT * FROM users LIMIT 10"
  }
}

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
383
Forks
65
Languages
Go Shell Makefile

Install & Platforms

Install via
docker binary

Beta — feedback welcome: [email protected]