MCP Catalogs
Homeapisql-mcp screenshot

apisql-mcp

by apisql-dev·33·Score 44

MCP server providing unified access to multiple databases through SQL operations with dynamic switching capabilities.

databasedeveloper-toolsproductivity
7
Forks
1
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

apiSQL-MCP is a versatile MCP server that connects to various database systems including MySQL, PostgreSQL, SQL Server, Oracle, SQLite, StarRocks, DuckDB, and others compatible with JDBC. It offers dynamic data source switching without restarting the server, secure access through apiSQL gateway, and comprehensive SQL support including DDL and DML operations. The server supports multiple transport modes including STDIO and Streamable HTTP.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Cross-database querying and analysis across different database systems
you:Secure database access without exposing databases to the public internet
you:Dynamic SQL operations with real-time data source switching
you:How many databases can I connect with this MCP server?
you:Is it possible to switch databases without restarting the server?

When to choose this

When you need to work with multiple database types through AI assistants and want a unified interface without setting up separate MCP servers for each database.

When NOT to choose this

When you need direct database access without depending on the apiSQL platform or when working in an environment without internet connectivity to the apiSQL service.

Tools this server exposes

1 tool extracted from the README
  • execute_sql

    Execute SQL queries across multiple databases with dynamic data source switching

Comparable tools

sql-mcpdb-mcpdirect-db-shell-mcp

Installation

Installation

  1. Prerequisites: Node.js >= 18.0.0 and apiSQL account (register at [open.apisql.cn](https://open.apisql.cn))
  2. Install apiSQL gateway to connect your database
  3. Install the MCP server:
npm install -g apisql-mcp
# or run directly with
npx -y apisql-mcp
  1. Configure in Claude Desktop:
{
  "mcpServers": {
    "apisql-mcp": {
      "command": "npx",
      "args": ["-y", "apisql-mcp"],
      "env": {
        "APISQL_MCP_API_URL": "https://open.apisql.cn/api/mytest/$sudb",
        "APISQL_MCP_API_KEY": "Bearer sk-your-api-key",
        "APISQL_MCP_DS": "mysql"
      }
    }
  }
}

FAQ

How many databases can I connect with this MCP server?
You can connect to any number of databases supported by apiSQL platform, including MySQL, PostgreSQL, SQL Server, Oracle, SQLite, StarRocks, DuckDB, and others with JDBC compatibility.
Is it possible to switch databases without restarting the server?
Yes, the apiSQL-MCP server supports dynamic data source switching without requiring a restart. You can specify different data sources in your SQL queries.

Compare apisql-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.