The PrivateByte MCP server lets an AI agent manage your account. Add https://mcp.privatebyte.com to Claude, Cursor or any client that speaks the Model Context Protocol, and send an API key as a bearer token. The agent gets 44 tools: list and restart servers, take snapshots and backups, read invoices, open tickets, place orders. The key's permissions decide what the agent can do. Tools that destroy data are marked so your client asks you first, and tools that spend money take a ceiling.
One config block. A URL and an API key. Nothing to install or host.
The key is the limit. A read-only key gives a read-only agent. A missing permission is refused with FORBIDDEN_SCOPE.
Risky tools ask first. Anything that erases or overwrites data is marked destructive and needs the id repeated.
Spending has a ceiling. Order tools take the most you agree to pay.
The rest of the API is reachable. Two extra tools search and run any of the 134 API operations.
There is a command line too. npm install -g privatebyte gives you pb for the same account.
What an MCP server is
The Model Context Protocol is a standard way for an AI client to call outside tools. A server publishes a list of tools, each with a name, a description and the inputs it takes. The client shows that list to the model, and the model calls a tool when your request needs one.
Ours is a remote server. It runs on our side at https://mcp.privatebyte.com, so there is nothing to install. Every tool is a call to the PrivateByte API made with your key.
Set it up
First create a key in the client area under Account, API keys. Pick only the permissions the agent needs. The key is shown once.
Then add the server to your client. Most clients read a JSON block like this one, with your key in place of YOUR_API_KEY:
{
"mcpServers": {
"privatebyte": {
"type": "http",
"url": "https://mcp.privatebyte.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
In Claude Code, one command does the same. Put the key in an environment variable first:
export PB_API_KEY="your key"
claude mcp add --transport http privatebyte https://mcp.privatebyte.com \
--header "Authorization: Bearer $PB_API_KEY"
Restart the client and ask it what PrivateByte tools it has. You should see 44.
What you can ask for
Plain requests work. The agent picks the tools.
- "Which of my servers are running, and what is each one using?"
- "Take a snapshot of server 4821, then restart it."
- "Show my unpaid invoices and my wallet balance."
- "Rename server 4821 to
api-eu-1." - "Open a ticket asking for reverse DNS on my mail server."
- "What plans are in stock in the UK?"
The tools fall into four groups:
| Group | Tools |
|---|---|
| Servers | list_servers, get_server, server_power, server_usage, rename_server, reinstall_server, open_console and more |
| Backups | create_snapshot, list_snapshots, restore_snapshot, create_backup, list_backups, restore_backup, schedules |
| Billing and orders | list_products, create_server, order_product, get_balance, list_invoices, pay_invoice, top_up |
| Support and the rest | open_ticket, tickets, proxy_status, find_operation, call_operation |
The last two matter. The API has 134 operations, and 44 hand-picked tools cannot cover them all. find_operation searches the whole API by words such as "firewall rule" or "proxy whitelist". call_operation runs what it finds. So the agent can reach everything without carrying 134 tool descriptions in every conversation.
The key decides what the agent can do
An agent is only as safe as the key you give it. Each key carries permissions, and each tool needs specific ones.
We tested this with a key that could read and rename servers but could not open a console. The rename went through. The console request came back as:
FORBIDDEN_SCOPE: This key does not have the scope for this operation.
A server id that does not exist, or belongs to another account, returns the same answer either way:
NOT_FOUND: Not found.
Start with a read-only key. Add a permission when you find the agent needs it. Keys that can delete data, open a console or spend money can only be created with a two-factor code.
Risky tools ask first
Some tools cannot be undone: reinstall_server erases the disk, restore_backup overwrites it, delete_snapshot removes a snapshot for good. These are marked as destructive in the tool list. MCP clients read that mark and ask you before running the tool.
There is a second check on our side. A destructive call must repeat the id of its target in a confirm field. If the two ids differ, the call is refused. This catches the agent that mixes up two servers halfway through a long task.
Spending has a ceiling
create_server and order_product pay from your account wallet. Both take a ceiling: the most you agree to pay. If the real price is higher, the order is refused and nothing is charged.
The agent cannot move money in from outside. top_up creates an unpaid invoice and returns a link, and a person pays it in the client area. So the most an agent can ever spend is the wallet balance, and the most one call can spend is the ceiling.
The command line
If you would rather type than chat, the same API has a command line:
npm install -g privatebyte
pb login
pb servers
pb restart 4821
Output is JSON, so it pipes into jq and scripts. Commands that spend take --max. Commands that destroy data ask you to type the id.
FAQ
Which AI clients work?
Any client that supports remote MCP servers over HTTP with a bearer token. We tested with Claude Code. Cursor and other clients use the same JSON block.
Does it cost anything?
No. The MCP server and the API are included with every account.
Can the agent delete my server by mistake?
Only if the key allows it, your client approves the call and the call repeats the right id. Leave destructive permissions off the key and it cannot.
What if the wallet cannot cover an order?
Nothing is charged. The order is held unpaid for 15 minutes and the reply says how much is missing.
Do I need the API to use this?
No. You only need a key. The MCP server makes the API calls for you.
