MCP Server

Free credit available Limited time

The Selfhost.dev MCP Server:

Your AI DevOps Engineer.

The Selfhost.dev MCP server gives Claude, Cursor, Devin Desktop and VS Code direct control of your backend: managed PostgreSQL, MySQL, Redis, ClickHouse, OpenSearch and Kafka on AWS, MongoDB in your projects, GitHub deploys and all 48 one-click configurations across 42 apps in the catalog. Provision, scale and back up, restore PostgreSQL to the second and MySQL to about the minute, then ship it all without leaving your editor. 239 production-ready tools across 37 modules.

And because every action draws on prepaid credits with no subscription, no agent can run up a surprise bill.

$ npx @selfhost.dev/mcp-server

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

Works with
Claude
Cursor
Devin Desktop
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 Projects through MCP: projects, GitHub deployments, project databases, domains, environment variables, SSH keys and billing. Its one-click deployment scope is the whole catalog, all 48 configurations. The deepest first-party infrastructure MCP server in the category - see how competitors compare.

How it connects

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

239 MCP tools, 37 modules

Everything your
infrastructure needs.

Create, scale, reboot and delete managed PostgreSQL, MySQL, Redis, ClickHouse, OpenSearch and Kafka instances on AWS. Fork the first five with their data; Owners and Admins can read the master credentials again. 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 26.8

  Keeper quorum embedded · provisioning

Engine support

What each database
can do from MCP.

What each managed database engine can do from the Selfhost.dev MCP server
Capability PostgreSQL MySQL Redis ClickHouse OpenSearch
Versions, default in bold 18, 17, 16 8.4, 8.0 7.2, 7.0 26.8 LTS 2.19 3.8 from the console
Default port 5432 3306 6379 8123 HTTP, 9000 native 9200 HTTPS
Minimum RAM per node 1 GB 1 GB 0.5 GB 4 GB 4 GB
High availability Up to 2 replicas automatic failover Up to 2 replicas automatic failover Up to 2 replicas automatic failover Up to 5 replicas on a Keeper quorum 3 managers plus data nodes chosen at create
Snapshots, fork, resize, metrics and alerts Yes Yes Yes Yes Yes
Data backups to S3 - - - Yes restored in place -
Point-in-time recovery Yes to the second Yes to about the minute - - -
Connection pooling PgBouncer port 6432 ProxySQL port 6033 - CHProxy port 9090 -
Parameter tuning Yes Yes - - -
Database users Yes Yes - Yes Yes as security roles
Extensions and plugins pgvector, TimescaleDB, PostGIS and 8 more - - - k-NN built in Dashboards on or off
Client TLS Require or relax Switch in the console - Switch in the console HTTPS always
Logs and query statistics Yes Yes - Yes Yes cluster snapshot

As of @selfhost.dev/mcp-server 0.12.0. Kafka, the sixth managed engine, is created from MCP too: one broker or three across availability zones, with TLS on by default and an optional Schema Registry.

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

✓ 239 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 239 tools across 37 modules that lets you manage databases and Projects from Claude, Cursor or VS Code in natural language. For one-click templates, MCP deploys every one of the console's 48 configurations across 42 apps, with each template's credential shape validated before the request.
How many MCP tools does Selfhost.dev provide?
239 tools across 37 modules. The database half covers instances, backups, PITR, database users, scaling, pooling (PgBouncer, ProxySQL and CHProxy), alerts, networking, engine config, the PostgreSQL extension catalog, read-only SQL, Index Advisor, credentials/BYOC and billing. The Projects half covers projects and their scale-ups, GitHub deployments, project databases, services and their upgrades, domains, env vars, SSH keys, notifications, restoring a project deleted when its credit ran out and all 48 one-click configurations. Support tickets work from your editor too. 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, Devin Desktop (formerly Windsurf), VS Code and any MCP-compatible client. Install with npx @selfhost.dev/mcp-server, authenticate via browser and all 239 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, ClickHouse or OpenSearch database or a Kafka cluster, run backups (with point-in-time restore 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, enable_chproxy fronts it with HTTP query pooling on port 9090 and create_database_user issues scoped credentials. ClickHouse recovers from disk snapshots and data backups to S3 rather than from transaction logs, so it has no point-in-time recovery.
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 239 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 239 tools register automatically. 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 239 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, ClickHouse, OpenSearch and Kafka 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 239 tools, pay-as-you-go