MCP Server
The Selfhost.dev MCP Server:
Your AI DevOps Engineer.The Selfhost.dev MCP server gives Claude, Cursor, Windsurf, and VS Code direct access to everything your product needs: managed PostgreSQL, MySQL, Redis, and ClickHouse on AWS, plus MongoDB in your projects, app and API deployments from GitHub, and Supabase templates. Provision, scale, monitor, back up, restore to any second, deploy, and manage domains, all without leaving your editor. 150+ production-ready tools across 23 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.
What we believe
The Selfhost.dev
MCP Server.
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 your whole platform through MCP: databases, projects, deployments, domains, and billing, so AI can provision, scale, monitor, and manage all of it. The deepest first-party infrastructure MCP server in the category - see how competitors compare.
How it connects
150+ MCP tools, 23 modules
Everything your
infrastructure needs.
Create, scale, reboot, and delete managed PostgreSQL, MySQL, Redis, and ClickHouse instances on AWS, with forking on every engine. Platform-managed or BYOC.
$ Create a Postgres 18 in us-east-1 with 4GB RAM
⚡ calling create_instance ...
✓ Instance created: prod-pg-18
us-east-1 · t4g.medium · 4 GB · PostgreSQL 18
Status: launching
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.
⚡ instances.create
✓ prod-db ready · us-east-1 · t4g.small · PostgreSQL 18
⚡ env.set DATABASE_URL → acme-web
✓ wired · encrypted at rest
⚡ github.deploy acme/web @ main
✓ build passed (nixpacks) · 38s
⚡ domains.attach 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
✓ 150+ tools registered. Ready.
Security
Your data stays
where you put it.
The MCP server database management 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