@severalnines/ccx-admin-mcp
OfficialThis server is an MCP bridge to the CCX admin API, letting an AI assistant inspect and (optionally) manage the entire CCX platform: datastores, users, nodes, jobs, audit logs, billing, and VPCs.
Platform checks: verify connectivity/credentials (
ccx_admin_check), get cmon version, count datastores/users, list VPCs in an AWS region.Datastore operations: list all datastores with filters (status, cloud, type, owner, name, job status), fetch full details of one datastore, list its nodes, and query its audit log with time/type filters.
Destructive datastore action: force-delete any datastore (unprotected mode only, requires
confirm: true).User management: list all users with filters (login, name, suspended, deleted), suspend a user with a reason, unsuspend a user, and delete a user (unprotected mode only, requires
confirm: true).Billing: pull per-datastore usage for a date range (instance hours, volume GiB-hours, IOPS, egress, backups) with totals and filters by datastore, customer, reference, or vendor.
Protection mode: destructive tools are unregistered by default; enabling
CCX_PROTECT=falsemakes them available but still requires explicit confirmation.
Click on "Deploy 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-admin-mcp Show me all datastores with their status"
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-admin-mcp
MCP (Model Context Protocol) server for the CCX admin API — the SRE / operations side of CCX. It lets an AI assistant (Claude Code, Claude Desktop, Cursor, ...) list every datastore and user across the platform, inspect nodes, jobs and audit logs, pull billing usage, and (when explicitly unlocked) suspend users or force-delete datastores.
For the end-user API (your own datastores, backups, firewall rules, ...) use
@severalnines/ccx-mcp instead.
Credentials
The admin REST server accepts two kinds of credentials. They come from two Kubernetes secrets in the CCX namespace:
Secret | Keys | Env vars | Covers |
|
|
| datastores, nodes, audit, users, billing, cmon version |
|
|
| health check, datastore/user counters, VPC listing |
The admin user login is the one you want. Basic auth is optional: the counter tools fall back to counting the full lists when it is missing, and only the VPC listing has no fallback.
Pulling them out of a cluster:
kubectl get secret admin-users -o jsonpath='{.data.ADMIN_USERS}' | base64 -d
kubectl get secret admin-basic-auth -o jsonpath='{.data.ADMIN_AUTH_USERNAME}' | base64 -d
kubectl get secret admin-basic-auth -o jsonpath='{.data.ADMIN_AUTH_PASSWORD}' | base64 -dRelated MCP server: IT Onboarding Automator MCP Server
Installation
The server is published on npm as
@severalnines/ccx-admin-mcp.
Node.js 18 or newer is required. Pick one of:
Method | Command | When |
|
| Default; the MCP client fetches the latest release on start |
Global install |
| Pinned version on an operator machine |
Project dependency |
| When |
From source | see below | Development, or to keep credentials in a |
Pin @latest in npx invocations as shown; without it npx may serve a
stale cached build.
Claude Code
claude mcp add ccx-admin \
-e CCX_BASE_URL=https://ccx.example.com \
-e CCX_ADMIN_USERNAME=admin@example.com \
-e CCX_ADMIN_PASSWORD='...' \
-- npx -y @severalnines/ccx-admin-mcp@latestThe -e flags become environment variables of the registered server, so the
password is not on the server's command line each time it starts. It is still
visible in this one claude mcp add invocation and in your shell history; on
a shared machine prefer the JSON configuration or a .env file. Restart
Claude Code (or run /mcp and reconnect) afterwards.
Any MCP client (JSON config)
{
"mcpServers": {
"ccx-admin": {
"command": "npx",
"args": ["-y", "@severalnines/ccx-admin-mcp@latest"],
"env": {
"CCX_BASE_URL": "https://ccx.example.com",
"CCX_ADMIN_USERNAME": "admin@example.com",
"CCX_ADMIN_PASSWORD": "..."
}
}
}
}With a global install use "command": "ccx-admin-mcp" and no args. Keep
the file private: it holds the credentials in clear text.
From source, with a .env file
git clone https://github.com/severalnines/ccx-admin-mcp.git
cd ccx-admin-mcp
npm install # also builds (prepare script)
cp .env.example .env # fill in CCX_BASE_URL and the credentials
claude mcp add ccx-admin -- node "$PWD/build/index.js"Prefer the .env file (or the client's env block) over --password flags:
command-line arguments are visible to every process on the machine via ps.
.env is git-ignored and only CCX_* keys are read from it. The server looks
for it at --dotenv / CCX_ENV_FILE if given, otherwise at .env next to
package.json. The working directory is deliberately not searched: MCP clients
start servers inside arbitrary projects, and a .env there could switch
protection off or redirect the credentials. Variables already set in the
environment (or given as flags) always win over the file.
CCX_BASE_URL must be https:// (plain http:// is only accepted for
localhost), and the server never follows redirects, so the admin password and
session cookie cannot be replayed to another host.
Flags override both the environment and the file, e.g. --protect false to
unlock destructive tools for one registration.
All flags
Flag | Env var | Purpose |
|
| Base URL of the CCX deployment |
|
| Admin user login |
|
| Admin user password |
|
| HTTP basic auth user (optional) |
|
| HTTP basic auth password |
|
| Block destructive tools (default |
|
| Explicit |
| Usage |
At startup the server validates the configuration and probes the admin login
once. A rejected password or an invalid CCX_BASE_URL is fatal; a network
failure is only logged, since tools log in lazily and retry. Reads that get a
401 are retried once with a fresh session; a mutation is never sent twice.
Protection mode
Protection mode is on by default. While it is on, the destructive tools are not registered at all: they do not appear in the tool list, so an AI assistant cannot attempt them. The affected tools are:
ccx_admin_delete_datastoreccx_admin_delete_userccx_admin_suspend_user
To make them available, set CCX_PROTECT=false (or --protect false) and
restart the server. Every one of them then still requires confirm: true in
the call; without it the tool refuses and makes no request. The setting is
read once at startup and never changes while the server runs.
Tools
Platform
Tool | Auth | Description |
| either | Verify connectivity and both credential sets; shows who you are logged in as |
| session | Version of the ClusterControl controller (cmon) |
| basic, falls back to session | Total datastores |
| basic and/or session | Customer count from the counter endpoint (excludes Severalnines logins in production, includes deleted) plus a list-derived breakdown when a session exists |
| basic | VPC ids known to CCX per AWS region (backend currently returns sparse data) |
Datastores
Tool | Auth | Description |
| session | All datastores across all users, with owner, status and latest job. Client-side filters: |
| session | One datastore with the full latest job and its DB nodes |
| session | DB and load-balancer nodes: hostname, IP, role, cmon host status, instance id/type, AZ |
| session | Audit log lines (jobs, resource changes, info) with |
| session | Force-delete any datastore. Unprotected only + |
Users
Tool | Auth | Description |
| session | All users; filters |
| session | Suspend with a reason. Unprotected only + |
| session | Lift a suspension |
| session | Delete a user. Unprotected only + |
Billing
Tool | Auth | Description |
| either | Per-datastore usage for a date range (instance hours, volume GiB-hours, IOPS, egress, backups) with totals; filters |
Example prompts:
"Which datastores are DEGRADED or have a failed last job?"
"Show the nodes and the audit log of datastore 936a84de-… for the last 24 hours"
"Who owns the datastore called fancy-breeze?"
"How many users do we have, and which are suspended?"
"Total instance hours per customer for September"
Development
npm run build # tsc -> build/
npm run typecheck
npm test # vitest, API mocked with mswTests drive the real MCP server over an in-memory transport, so every tool is exercised end to end (argument validation, auth selection, response shaping). The API mocks return the field names observed on a live CCX deployment.
API coverage
Everything under /api/admin in the CCX OpenAPI spec is covered except the
CSV variants (/admin/datastores/csv, /admin/users/csv, billing csv),
which return the same data as the JSON endpoints. /admin/v2/auth/* is in the
spec but not mounted by the server; login goes through /api/auth/admin-login.
Available Tools
15 toolsccx_admin_billing_usageBilling usage reportARead-onlyIdempotent
Per-datastore resource usage for a date range across all customers: instance hours by instance type, volume GiB-hours and IOPS, network egress and backup counts/sizes. Dates are YYYY-MM-DD and inclusive; 'to' defaults to today. Includes datastores deleted during the period.
Inputs: from (required), to, limit, offset, +4 more.
ccx_admin_checkCheck admin API accessARead-onlyIdempotent
Verify connectivity and credentials against the CCX admin API. Reports the admin REST health check (basic auth) and the admin session identity (admin user login), whichever credentials are configured.
Inputs: no named parameters.
ccx_admin_cmon_versionGet cmon versionARead-onlyIdempotent
Get the version of the ClusterControl controller (cmon) backing this CCX deployment.
Inputs: no named parameters.
ccx_admin_count_datastoresCount datastoresARead-onlyIdempotent
Total number of datastores (database clusters) across all CCX users. Uses the basic-auth counter endpoint when basic credentials are configured, otherwise counts the full datastore list via the admin session.
Inputs: no named parameters.
ccx_admin_count_usersCount usersARead-onlyIdempotent
Count CCX users. The basic-auth counter endpoint (/admin/users/count) counts customer accounts: it excludes @severalnines.com / @s9s.io logins in production and still includes deleted users. When an admin session is configured the full user list is also counted client-side, broken down by internal/external, suspended and deleted, so the two numbers can be reconciled.
Inputs: no named parameters.
ccx_admin_delete_datastoreForce-delete datastoreADestructive
FORCE-DELETE any user's datastore as admin. This destroys the cluster and its data and cannot be undone. Requires confirm=true and is blocked while protection mode (CCX_PROTECT) is on.
Inputs: confirm (required), datastore_id (required).
ccx_admin_delete_userDelete userADestructive
Delete a CCX user account. This cannot be undone. Requires confirm=true and is blocked while protection mode (CCX_PROTECT) is on. Consider ccx_admin_suspend_user instead.
Inputs: confirm (required), user_id (required).
ccx_admin_get_datastoreGet datastoreARead-onlyIdempotent
Get one datastore by UUID regardless of owner: status, owner login, cmon internal cluster id, the latest job (including its raw data) and the database nodes.
Inputs: datastore_id (required).
ccx_admin_get_datastore_auditGet datastore audit logARead-onlyIdempotent
Query the audit log of a datastore (jobs, resource create/delete, info lines), newest first. Time bounds are RFC3339 timestamps, e.g. 2026-09-01T00:00:00Z.
Inputs: datastore_id (required), to, from, type, +1 more.
ccx_admin_list_datastoresList all datastoresARead-onlyIdempotent
List datastores (database clusters) across ALL CCX users, with owner, status and the latest job. The API returns everything in one call; filters are applied client-side. Status values include STARTED, DEGRADED, FAILURE, STOPPED, UNKNOWN, and CCX lifecycle states such as creating_cluster, deploy_failed, deleting, unreachable.
Inputs: name, type, limit, offset, +4 more.
ccx_admin_list_nodesList datastore nodesARead-onlyIdempotent
List the database and load-balancer nodes of a datastore: hostname, IP, role, cmon host status (e.g. CmonHostOnline), DB version, cloud instance id/type and availability zone.
Inputs: datastore_id (required).
ccx_admin_list_usersList usersARead-onlyIdempotent
List all CCX users with id, login, name, creation time and suspended/deleted flags. The API returns everything; filters are applied client-side.
Inputs: name, limit, login, offset, +2 more.
ccx_admin_list_vpcsList VPCs in a regionARead-onlyIdempotent
List VPC ids known to CCX for an AWS region, with dangling-VPC detection fields. Requires basic auth credentials. NOTE: the backend currently only fills ccx_num_vpcs/ccx_vpc_ids and may return zero even when VPCs exist; treat an empty result as 'unknown', not 'none'.
Inputs: region (required).
ccx_admin_suspend_userSuspend userADestructiveIdempotent
Suspend a CCX user so they can no longer log in or use their datastores. Reversible with ccx_admin_unsuspend_user. Blocked while protection mode (CCX_PROTECT) is on.
Inputs: reason (required), user_id (required).
ccx_admin_unsuspend_userUnsuspend userAIdempotent
Lift a suspension so the CCX user can log in and use their datastores again.
Inputs: user_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource and action: health check, VPC listing, datastore listing/retrieval/deletion/audit, node listing, user management, and billing. Even the similar count/list pairs are clearly separated by endpoint semantics and client-side reconciliation.
All tools share the ccx_admin_ prefix and use snake_case, with most following a clear verb_noun pattern like list_datastores, get_datastore, and suspend_user. A few names like cmon_version and billing_usage omit an explicit verb, but they are still predictable and consistent in style.
Fifteen tools is at the upper edge of the ideal range, but every tool covers a distinct admin operation with no apparent redundancy. The scope is broad—VPCs, datastores, users, billing, health—so each tool earns its place.
The surface provides solid lifecycle coverage for the admin domain: health, listing, inspection, deletion, audit, user suspension, and billing. Minor gaps exist, such as no admin user creation or datastore modification, but these are not core admin destructive/read-only operations and can be worked around.
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Admin for your app from your AI agent: users, stats, segments, feature flags and email.
Manage ConfigDirector feature flags, remote configs, and targeting rules from AI assistants.
Manage API keys, identities, permissions, rate-limit overrides and verification analytics.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with Databricks workspaces programmatically, providing comprehensive tools for cluster management, notebook operations, job orchestration, Unity Catalog data governance, user management, permissions control, and FinOps cost analytics.66MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to inspect employee access, list failed onboarding events, and retry provisioning operations.3-
- AlicenseCqualityCmaintenanceEnables AI clients to drive the full Remnawave panel API, exposing one tool per method+path operation (users, nodes, hosts, subscriptions, inbound, bulk actions) plus search, describe, status, audit and metrics helpers. Read-only/read-write gating, deny rules, confirm-preview and dry-run, response secret redaction and an audit journal keep mutations controlled.222MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query, count, and run Elasticsearch searches over security events across an MSP's customers' Microsoft 365, Google Workspace, Salesforce, and Dropbox tenants, and to list customers, users, devices, billing periods, and scheduled reports, with explicit write operations for managing customers, whitelists, reports, and branding.Apache 2.0