
apisql-mcp
by apisql-dev·★ 33·Score 44
MCP server providing unified access to multiple databases through SQL operations with dynamic switching capabilities.
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:
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 READMEexecute_sqlExecute SQL queries across multiple databases with dynamic data source switching
Comparable tools
Installation
Installation
- Prerequisites: Node.js >= 18.0.0 and apiSQL account (register at [open.apisql.cn](https://open.apisql.cn))
- Install apiSQL gateway to connect your database
- Install the MCP server:
npm install -g apisql-mcp
# or run directly with
npx -y apisql-mcp- 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
Last updated · Auto-generated from public README + GitHub signals.