Provides tools for managing MariaDB clusters through the CCX platform, including cluster creation, database management, user administration, and backup/restore operations.
Provides tools for managing MySQL clusters through the CCX platform, enabling cluster scaling, database user administration, parameter group management, and performance monitoring.
Provides tools for managing PostgreSQL clusters through the CCX platform, including cluster creation, database and user management, firewall rule configuration, and point-in-time recovery.
Provides tools for managing Redis clusters through the CCX platform, allowing for cluster creation, node management, and performance statistics monitoring.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Severalnines CCX MCP ServerShow me the slowest queries on my database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@severalnines/ccx-mcp
MCP (Model Context Protocol) server for managing CCX database clusters through AI assistants like Claude Code, Claude Desktop, Cursor, and Windsurf.
Quick Start
Install from npm
Add this to your MCP client configuration:
{
"mcpServers": {
"ccx": {
"command": "npx",
"args": ["-y", "@severalnines/ccx-mcp"],
"env": {
"CCX_BASE_URL": "https://app.myccx.io",
"CCX_USERNAME": "your-email@example.com",
"CCX_PASSWORD": "your-password"
}
}
}
}Alternative: install as a project dependency
If npx causes issues (e.g. spawning errors or version caching problems), you can install the package as a dependency and reference it directly:
npm install @severalnines/ccx-mcpThen use this configuration:
{
"mcpServers": {
"ccx": {
"command": "node",
"args": ["node_modules/@severalnines/ccx-mcp/build/index.js"],
"env": {
"CCX_BASE_URL": "https://app.myccx.io",
"CCX_USERNAME": "your-email@example.com",
"CCX_PASSWORD": "your-password"
}
}
}
}Install from source
git clone https://github.com/severalnines/ccx-mcp.git
cd ccx-mcp
npm install
npm run buildThen point your MCP client to the built server (replace the path with where you cloned the repo):
{
"mcpServers": {
"ccx": {
"command": "node",
"args": ["/home/user/ccx-mcp/build/index.js"],
"env": {
"CCX_BASE_URL": "https://app.myccx.io",
"CCX_USERNAME": "your-email@example.com",
"CCX_PASSWORD": "your-password"
}
}
}
}Or use OAUTH2 credentials (create them under Accounts -> Security in the CCX UI):
"CCX_CLIENT_ID": "your-client-id",
"CCX_CLIENT_SECRET": "your-client-secret"Where to put the configuration
MCP Client | Config file |
Claude Code |
|
Claude Desktop |
|
Cursor |
|
Windsurf |
|
CCX_BASE_URL
This is the URL of your CCX deployment. If you're using the hosted CCX service, it's typically https://app.myccx.io. If you're running a self-hosted CCX instance, use its URL instead.
Using OAuth2 instead of password
Replace CCX_USERNAME and CCX_PASSWORD with CCX_CLIENT_ID and CCX_CLIENT_SECRET:
{
"mcpServers": {
"ccx": {
"command": "npx",
"args": ["-y", "@severalnines/ccx-mcp"],
"env": {
"CCX_BASE_URL": "https://app.myccx.io",
"CCX_CLIENT_ID": "your-client-id",
"CCX_CLIENT_SECRET": "your-client-secret"
}
}
}
}You can create OAuth2 credentials in the CCX UI under Account > Security.
Then ask your AI assistant things like:
"List my datastores"
"Create a PostgreSQL cluster on AWS in eu-west-1"
"Get the connection string for my production database"
"Add 10.0.0.0/24 as a trusted source on my cluster"
"Create a new database user called appuser"
"Scale my cluster to a medium instance"
"Show me the slowest queries on my database"
"List backups for my production cluster"
"What's the CPU usage on my database?"
"List the default parameters for PostgreSQL 16"
"Create a parameter group for MySQL 8.4 with max_connections set to 500"
Authentication
Password Auth
Set CCX_USERNAME and CCX_PASSWORD:
{
"env": {
"CCX_BASE_URL": "https://app.myccx.io",
"CCX_USERNAME": "your-email@example.com",
"CCX_PASSWORD": "your-password"
}
}OAuth2 (Client Credentials)
For programmatic or CI/CD use, set CCX_CLIENT_ID and CCX_CLIENT_SECRET instead:
{
"env": {
"CCX_BASE_URL": "https://app.myccx.io",
"CCX_CLIENT_ID": "your-client-id",
"CCX_CLIENT_SECRET": "your-client-secret"
}
}Available Tools
Datastore Management
Tool | Description |
| List all database clusters with status, vendor, and cloud provider |
| Get detailed cluster info including credentials and job progress |
| Create a new cluster (only vendor, cloud provider, and region required) |
| Delete a cluster (requires explicit confirmation) |
| Get cluster nodes with roles, status, and IP addresses |
| Connection strings in URI, CLI, JDBC, and env formats |
| Scale instance size (CPU/RAM) or expand storage volume |
| Add a new replica node to a cluster |
Cloud & Plans
Tool | Description |
| List available cloud providers and regions |
| List instance sizes, volume types, and sizes per cloud |
Database Management
Tool | Description |
| List databases on a datastore |
| Create a new database |
| Delete a database |
Database Users
Tool | Description |
| List database users with grants and auth plugins |
| Create a user with configurable privileges, host, and admin flag |
| Delete a database user |
Firewall / Trusted Sources
Tool | Description |
| List trusted source CIDRs and allowed ports |
| Allow a CIDR to connect to the database |
| Remove a trusted source CIDR |
Backups & Recovery
Tool | Description |
| List available backups with status, type, and timestamps |
| Restore from a backup with optional point-in-time recovery |
Parameter Groups
Tool | Description |
| List parameter groups with optional filtering by vendor, version, or name |
| Get a parameter group with its full list of parameters |
| Create a new parameter group with custom database configuration |
| Update parameters, optionally syncing changes to all associated datastores |
| Delete a parameter group (requires explicit confirmation) |
| Apply a parameter group to a datastore |
| Get default parameters for a vendor and version to see available options |
Monitoring & Performance
Tool | Description |
| Get slowest queries ranked by execution time |
| Get performance metrics (CPU, memory, disk, network, SQL, DB stats) |
Protection Mode
Destructive operations are blocked by default to prevent accidental data loss. The following tools are affected:
ccx_delete_datastore— deletes an entire database clusterccx_delete_db_user— deletes a database user accountccx_delete_database— deletes a databaseccx_delete_firewall_rule— removes a firewall access ruleccx_restore_backup— overwrites current data with a backupccx_delete_parameter_group— deletes a parameter groupccx_apply_parameter_group— applies configuration changes to a datastore
To allow destructive operations, set CCX_PROTECT=false in your MCP configuration and restart the server:
{
"env": {
"CCX_PROTECT": "false"
}
}Supported Databases
PostgreSQL
MySQL / Percona
MariaDB
Redis
Valkey
Microsoft SQL Server
Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Watch mode
npm run test:watchRequirements
Node.js 18+
A CCX account at ccx.severalnines.com
License
Apache-2.0
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.