MCP Server

Free credit available Limited time

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.

$ npx @selfhost.dev/mcp-server

+$5.00 for the infrastructure your AI manages · no card needed

Works with
Claude
Cursor
Windsurf
VS Code
+ any MCP client
claude - selfhost workspace

What we believe

One server.
Your entire backend.

MCP, explained simply

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.

AI infrastructure management tools

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

AI Client Claude · Cursor · Windsurf
MCP protocol
SELFHOST.DEV MCP SERVER @selfhost.dev/mcp-server
list_instances restore_pitr
connection...
Your backend Databases · Projects
BYOC safe encrypted

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.

mcp · instances

$ 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.

mcp · agent

> 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.

mcp · instances

$ 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.

01

Runs locally on your machine

Service process stays in your terminal, not our cloud

02

No database connection

Manages infrastructure via API - never touches your data

03

Destructive ops require confirmation

delete, stop, reboot - Claude will always ask before acting

04

Credentials stored with chmod 600

~/.selfhost/credentials.json - owner-only access

Frequently asked questions

What is the Selfhost.dev MCP server?
The Selfhost.dev MCP server is an AI-powered toolkit with 189 tools across 31 modules that lets you manage databases and core Projects operations from Claude, Cursor or VS Code in natural language. For one-click templates, MCP currently supports 4 configurations: Supabase, n8n (SQLite), n8n (Postgres) and Twenty. The console catalog has 26 configurations across 23 apps.
How many MCP tools does Selfhost.dev provide?
189 tools across 31 modules. The database half covers instances, backups, PITR, database users, scaling, pooling (PgBouncer, ProxySQL and CHProxy), alerts, networking, engine config, credentials/BYOC and billing. The Projects half covers projects, GitHub deployments, project databases, services, domains, env vars, notifications and 4 one-click configurations: Supabase, n8n (SQLite), n8n (Postgres) and Twenty. Every tool is available on every account; Selfhost.dev is pay-as-you-go. See pricing.
Which AI tools work with the Selfhost.dev MCP server?
It works with Claude (Desktop and Code), Cursor, Windsurf, VS Code and any MCP-compatible client. Install with npx @selfhost.dev/mcp-server, authenticate via browser and all 189 tools become available in your AI editor immediately.
Can I manage databases and deployments from Claude?
Yes. Ask Claude to create a Postgres, MySQL, Redis or ClickHouse database, run backups (with restore to any second on PostgreSQL and MySQL) and tune settings and also to create a project, deploy a GitHub repo, add a domain or set environment variables, all in natural language. The MCP executes these through a controlled interface, with confirmation on destructive operations.
Can the MCP server manage ClickHouse clusters, not just single nodes?
Yes. create_instance provisions a replicated ClickHouse cluster with its Keeper quorum in one call, update_instance turns Multi-AZ on or off for an existing instance, upgrade_clickhouse_version steps the version up in place after a snapshot, enable_chproxy fronts it with HTTP query pooling on port 9090 and create_database_user issues scoped credentials. ClickHouse recovers from snapshots rather than transaction logs, so point-in-time recovery is the one capability it does not have.
How does the Selfhost.dev MCP server compare to others?
Most MCP servers focus on one slice (database queries or a single PaaS) with a handful of tools. Selfhost.dev provides 189 first-party tools spanning the full lifecycle of both managed databases and app deployments. For a worked example of how narrow most of them are, our breakdown of ClickHouse MCP and its 3-tool limit shows what a read-only server can and cannot do. See full comparisons.
Is the Selfhost.dev MCP server safe for production?
Yes. The MCP server runs locally on your machine and communicates with the Selfhost.dev API to manage infrastructure; it never connects to your databases directly. Destructive operations (delete, stop, reboot) require explicit confirmation and credentials are stored locally with chmod 600 owner-only permissions.
How do I install the Selfhost.dev MCP server?
Run npx @selfhost.dev/mcp-server, add it to your MCP config file, then run the server - it opens your browser for authentication. Once signed in, all 189 tools register automatically. The entire setup takes under 2 minutes. Available on npm at @selfhost.dev/mcp-server.
How much does the MCP server cost?
The MCP server is included with every Selfhost.dev account at no extra cost and all 189 tools are available to everyone. Selfhost.dev is pay-as-you-go: top up credits from $5 and pay only for the resources you run, with no tiers or subscriptions. See pricing.
Can I use the MCP server with BYOC?
Yes. The MCP tools work with both platform-managed and BYOC deployments. On BYOC, the server manages your databases running in your own AWS account through the Selfhost.dev API, so you get AI-native management while keeping full infrastructure ownership.
Which clouds does the MCP server manage?
Managed PostgreSQL, MySQL, Redis and ClickHouse run on AWS (with BYOC into your own account). Project servers run on Hetzner-backed compute for lower cost. The MCP server manages both from one place, so your AI agent provisions databases and deploys apps without you switching tools.

Try the Selfhost.dev
MCP Server today.

Available on every account
All 189 tools, pay-as-you-go