PocketCon 2027 is Sat Feb 6: a free, online PocketBase conference. Speak or register →

Docs

AI Agents (MCP)

PocketHost has an MCP server, so AI assistants and agents that speak MCP can manage your instances for you. Ask “which of my instances are off?” or “make a copy of my blog instance on the latest PocketBase” and the agent does it with your account.

The address is:

https://mcp.pockethost.io/mcp

Connect

  1. Add the address to your MCP client as a remote MCP server (some clients call it a custom connector). It uses the Streamable HTTP transport.
  2. Your client opens a PocketHost sign-in page. Sign in with your PocketHost account.
  3. Choose what the agent may do, then approve.
AccessWhat the agent can do
Full accessEverything below
instancesSee and change your instances
instances:readSee your instances only
accountSee your account, remove SSH keys and API tokens, change your trusted IPs

The agent only sees the tools its access allows.

What it can do

The agent never sees your secrets’ values, only their names. Deleting an instance needs the instance’s subdomain as confirmation, so the agent has to name the instance it means. Always check before you let it delete anything: a deleted instance’s data is gone.

Deploying code and reading logs stay in the PocketHost CLI. An agent that can run commands on your computer can use pockethost deploy and pockethost logs in your app’s folder.

Disconnect

Each connected agent shows up under Account → API Tokens. Revoke it there and it loses access right away.