Basic information
About PolarDB-X MCP Server
PolarDB-X offers powerful database management for SQL queries, schema exploration, and admin tasks, ideal for enterprise MySQL users.
PolarDB-X is a MCP server in the Databases category listed in the AddMCP.net directory, published by aliyun. Supported transport: stdio. Runtime: JavaScript. License: Apache-2.0. The repository has 4 GitHub stars. Source code is hosted on github.com. Related topics: alibaba, aliyun, database, databases, mcp.
Setup
{
"mcpServers": {
"polardbx-mcp": {
"command": "npx",
"args": [
"polardbx-mcp"
],
"env": {
"POLARDB_X_HOST": "your_database_host",
"POLARDB_X_PORT": "your_database_port",
"POLARDB_X_USER": "your_database_user",
"POLARDB_X_PASSWORD": "your_database_password",
"POLARDB_X_DATABASE": "your_database_name"
}
}
}
}
{
"mcpServers": {
"polardbx-mcp": {
"command": "npx",
"args": [
"polardbx-mcp"
],
"env": {
"POLARDB_X_HOST": "your_database_host",
"POLARDB_X_PORT": "your_database_port",
"POLARDB_X_USER": "your_database_user",
"POLARDB_X_PASSWORD": "your_database_password",
"POLARDB_X_DATABASE": "your_database_name"
}
}
}
}
{
"servers": {
"polardbx-mcp": {
"command": "npx",
"args": [
"polardbx-mcp"
],
"env": {
"POLARDB_X_HOST": "your_database_host",
"POLARDB_X_PORT": "your_database_port",
"POLARDB_X_USER": "your_database_user",
"POLARDB_X_PASSWORD": "your_database_password",
"POLARDB_X_DATABASE": "your_database_name"
}
}
}
}
PolarDB-X MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"polardbx-mcp": {
"command": "npx",
"args": [
"polardbx-mcp"
],
"env": {
"POLARDB_X_HOST": "your_database_host",
"POLARDB_X_PORT": "your_database_port",
"POLARDB_X_USER": "your_database_user",
"POLARDB_X_PASSWORD": "your_database_password",
"POLARDB_X_DATABASE": "your_database_name"
}
}
}
}
PolarDB-X MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is PolarDB-X?
polardbx-mcp is a Model Context Protocol (MCP) server that provides tools and resources, allowing AI agents to interact with Alibaba Cloud PolarDB-X databases.
How to use PolarDB-X?
Install globally via npm (npm install -g polardbx-mcp) or build from source. Configure database connection using environment variables POLARDB_X_HOST, POLARDB_X_PORT, POLARDB_X_USER, POLARDB_X_PASSWORD, and POLARDB_X_DATABASE. Then start the server and configure your MCP client (e.g., Cline) to use the server with the same environment variables.
Key features of PolarDB-X
- Run SQL queries on PolarDB-X databases
- Inspect PolarDB-X database status
- List all available PolarDB-X SQL commands
- Access table schema information as resources
- Simple npm or source-based installation
Use cases of PolarDB-X
- Let an AI assistant execute and analyze SQL queries on a PolarDB-X database
- Allow an AI agent to inspect database health and status
- Enable AI tools to explore table schemas for data understanding
Frequently asked questions
1 What tools does polardbx-mcp provide?
It provides three tools: query to run SQL, inspect database status to check database state, and show all commands to list all PolarDB-X SQL commands.
2 What resources does polardbx-mcp expose?
It exposes table schemas as resources in the format polardbx://<database_name>/<table_name>, providing JSON schema information including column names and data types.
3 What are the runtime requirements?
polardbx-mcp requires Node.js and npm. For source builds, you also need to install dependencies (npm install) and build the project (npm run build).
4 How is the database connection configured?
Connection is configured via environment variables: POLARDB_X_HOST, POLARDB_X_PORT, POLARDB_X_USER, POLARDB_X_PASSWORD, and POLARDB_X_DATABASE. These can be set in a .env file or passed directly to the MCP client configuration.
5 Is authentication supported?
Yes, authentication is handled via the POLARDB_X_USER and POLARDB_X_PASSWORD environment variables. The server uses these credentials to connect to PolarDB-X. No other authentication methods (e.g., OAuth) are mentioned.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In