MCP Server
The Selfhost.dev MCP Server:
Your AI DevOps Engineer.The Selfhost.dev MCP server gives Claude, Cursor, Windsurf and VS Code direct control of your backend: managed PostgreSQL, MySQL, Redis and ClickHouse on AWS, MongoDB in your projects, GitHub deploys and 4 one-click configurations: Supabase, n8n (SQLite), n8n (Postgres) and Twenty. The console catalog is broader, with 26 configurations across 23 apps. Provision, scale, back up, restore PostgreSQL and MySQL to any second and ship, all without leaving your editor. 189 production-ready tools across 31 modules.
And because every action runs against prepaid credits that pause at a $0 balance, no agent can run up a surprise bill. No charge in hindsight, no ghost compute.
+$5.00 for the infrastructure your AI manages · no card needed
What we believe
One server.
Your entire backend.
One protocol. Total control.
MCP is the standard that lets your AI tools work with the system through a controlled interface, enabling actions, not direct access.
Operate through AI
Selfhost.dev exposes managed databases and core Projects operations through MCP: projects, GitHub deployments, project databases, domains, environment variables and billing. Its one-click deployment scope is the 4 configurations named above. The deepest first-party infrastructure MCP server in the category - see how competitors compare.
How it connects
189 MCP tools, 31 modules
Everything your
infrastructure needs.
Create, scale, reboot and delete managed PostgreSQL, MySQL, Redis and ClickHouse instances on AWS, with forking on every engine and in-place version upgrades on ClickHouse. Platform-managed or BYOC.
$ Spin up a ClickHouse cluster for analytics with 2 replicas
⚡ calling create_instance ...
✓ Instance created: analytics-ch
ap-south-1 · 3 data nodes · ClickHouse 24.8
Keeper quorum embedded · provisioning
Engine support
What each database
can do from MCP.
| Capability | PostgreSQL | MySQL | Redis | ClickHouse |
|---|---|---|---|---|
| Versions, default in bold | 18, 17, 16 | 8.4, 8.0 | 7.2, 7.0 | 26.5, 25.1, 24.8, 24.3 |
| Default port | 5432 | 3306 | 6379 | 8123 HTTP / 9000 native |
| Backups, snapshots, replicas, metrics, resize, fork | Yes | Yes | Yes | Yes |
| Connection pooling | PgBouncer (6432) | ProxySQL (6033) | - | CHProxy (9090) |
| Parameter tuning | Yes | Yes | - | - |
| Point-in-time recovery | Yes | Yes | - | - |
| Database users | Yes | Yes | - | Yes |
| Extensions | TimescaleDB, pgvector | - | - | - |
| In-place version upgrade | - | - | - | Yes |
| Minimum RAM | - | - | - | 4 GB per node |
ClickHouse is the one engine whose topology changes the bill. Replication runs on a Keeper/Raft quorum rather than streaming replication, so at exactly one replica the platform adds a third keeper-only node to hold the quorum and that node is billed. At two or more replicas the quorum runs embedded on the data nodes and the extra line item disappears. Pass the engine to estimate_instance_cost and it prices and itemizes the difference before anything is provisioned.
One prompt, end to end
One prompt.
The whole deploy.
Ask once. Your agent provisions the database, wires the connection string, deploys from GitHub and brings the domain live, calling the right tools in order and confirming each step.
> Spin up a Postgres DB for acme/web, wire it into the app and ship it to production.
⚡ create_instance
✓ prod-db ready · us-east-1 · t4g.small · PostgreSQL 18
⚡ merge_env_vars DATABASE_URL → acme-web
✓ wired · encrypted at rest
⚡ trigger_deploy acme/web @ main
✓ build passed (nixpacks) · 38s
⚡ add_deployment_domain app.acme.com
✓ DNS verified · SSL issued
✓ Live at https://app.acme.com (42s)
One prompt. Database provisioned, config wired, app deployed, domain live. Destructive steps still ask first and every action bills against prepaid credits, so nothing runs up a surprise.
Quickstart
Three steps,
that's it.
$ npm install -g @selfhost.dev/mcp-server
✓ Installed @selfhost.dev/mcp-server
# Add to your MCP config:
# "selfhost": { "command": "npx", "args": ["@selfhost.dev/mcp-server"] }
$ npx @selfhost.dev/mcp-server
Opening browser for authentication...
✓ Signed in as you@acme.com
✓ Organization: Acme Inc
✓ 189 tools registered. Ready.
Security
Your data stays
where you put it.
The MCP server runs on your machine. It talks to the Selfhost.dev API to manage infrastructure - it never connects to your databases directly. Credentials are stored locally with owner-only permissions.
Runs locally on your machine
Service process stays in your terminal, not our cloud
No database connection
Manages infrastructure via API - never touches your data
Destructive ops require confirmation
delete, stop, reboot - Claude will always ask before acting
Credentials stored with chmod 600
~/.selfhost/credentials.json - owner-only access