MCP server — connect an AI assistant
Connect Claude Code, Cursor, VS Code or Claude Desktop to Servor over the Model Context Protocol. Reads answer directly; every action waits for a person to approve it and is signed in their browser.
Servor speaks the Model Context Protocol, so an AI assistant can read your fleet and propose anything you would do in the dashboard: run a command, edit or copy a file, restart a service, add a server, create a monitor. Nothing touches a server until a person approves it in Servor — and it is that person's browser that signs and runs the action, with their vault.
Overview and live demo: servor.app/mcp.
A token can ask. Only a person can act.
The MCP server never executes on a token's authority. Action tools file a request; it appears in Settings → Approvals and as a push notification, showing the server, its IP, the exact command or diff, a risk computed by Servor and the assistant's stated reason. Approve it, and your browser carries it out exactly like a click in the dashboard.
Connect a client
The simplest way: sign in with Servor (OAuth)
Add https://api.servor.app/mcp as a connector in your assistant. It opens a
Servor page asking you to allow it; you pick the team and click Allow
(a second-factor check may be asked). That is all — no token to create or copy.
| Client | Where |
|---|---|
| claude.ai, Claude Desktop, Claude mobile | Settings → Connectors → Add custom connector, paste the URL, then Connect |
| ChatGPT | Add a custom connector (developer mode) with the URL and OAuth authentication |
| Claude Code | claude mcp add --transport http servor https://api.servor.app/mcp, then /mcp → Authenticate |
| Cursor, VS Code | Add to Cursor / Add to VS Code in Settings → MCP |
Check where the answer goes
The consent page shows the application's name — which the application chose itself — and, above all, the address the answer is sent to. If you do not recognise that address, deny. Only a team owner or admin can allow an assistant.
The assistant gets an access token valid one hour, renewed automatically with a refresh token that rotates on each use (a reused one revokes the access). It shows up in Settings → MCP → Connected assistants, where you can revoke it in one click; its pending requests are cancelled with it.
With an API token
For clients that do not handle OAuth.
Pick your assistant in Settings → MCP
In Settings → MCP, click your
assistant. Servor creates a token dedicated to it (every read scope,
incidents:write and actions:request), then opens Cursor or VS Code on
their install prompt, or copies the configuration for Claude Code,
Claude Desktop and Windsurf. The page then waits for the assistant's first
call and tells you when it is connected.
Only an admin can create a token; a member picks the assistant and pastes a token an admin gave them. The token stays on that page — the browser never stores it. Every connected assistant is listed there with its last call, and can be revoked in one click.
Or set it up by hand
The endpoint is https://api.servor.app/mcp, authenticated with your token as
a Bearer header. For Claude Code:
claude mcp add --transport http servor https://api.servor.app/mcp \
--header "Authorization: Bearer sv_live_…"For Cursor (.cursor/mcp.json) or VS Code (.vscode/mcp.json), add an HTTP
server with the same URL and header. Claude Desktop connects through
npx -y mcp-remote https://api.servor.app/mcp --header "Authorization:Bearer sv_live_…".
Approve from Servor
Ask the assistant something. Reads come back immediately; actions show up as cards in Servor. Approve or reject them from the dashboard or your phone.
What the assistant can do
Read — answered directly
whoami, list_servers, get_server (inventory, ports, facts, security audit),
get_metrics, get_security_history, list_server_groups, list_commands,
get_command (output, secrets redacted), list_scheduled_commands,
list_monitors, get_monitor_checks, list_incidents, get_incident,
list_status_pages, list_recipes, get_recipe, get_audit_log. Each needs the
matching *:read scope.
create_incident and post_incident_update are direct too, with
incidents:write — the one write a token already had.
Act — after a person approves
| Area | Tools |
|---|---|
| Commands | run_command, run_on_servers (up to 50 servers, one result each) |
| Files | list_directory, read_file, write_file, edit_file, upload_file, transfer_file, make_directory, move_path, delete_path, change_mode |
| System | manage_service, manage_container, read_logs, apply_updates, local_http_request, power_server |
| Recipes | run_recipe |
| Servor | add_server, update_server, remove_server, create_server_group, create_monitor, update_monitor, mute_monitor, unmute_monitor, delete_monitor, create_status_page, update_status_page, add_status_page_component, create_scheduled_command, update_scheduled_command, delete_scheduled_command, run_scheduled_command_now |
All of them need actions:request. Then wait_for_request, get_request,
list_requests and cancel_request follow up on what was filed.
How a request works
- The assistant calls an action tool with a short
reason. - Servor refuses blocklisted commands outright, then files the request for 15 minutes and notifies the person who owns the token.
- The tool call waits up to 50 seconds. If someone decides in that time, the
assistant gets the result directly; otherwise it gets a
requestIdand callswait_for_request. - The approver sees the card and clicks Approve and run. Their browser signs the action with their vault and runs it; the result — exit code, output with secrets redacted, a SHA-256 for a transfer — goes back to the assistant.
Approving needs the same role as doing it in the dashboard: a member for commands and files, an admin for power actions and for adding or removing a server. A member restricted to some servers cannot approve on others. Two people cannot both run the same request: the first to approve takes it.
Transferring files between servers
transfer_file copies up to 512 MiB from one server to another (or to another
path on the same one). The file is read and written in signed 4 MiB slices,
passes through Servor and the approver's browser — never through the assistant —
and its size is checked on arrival. Files over 8 MiB need agent 1.2.16 or newer
on the source server.
Adding a server
add_server registers the server in agent mode and, once approved, returns the
one-line agent install command for the user to run on the machine. It never asks
for passwords or SSH keys: anything typed to an assistant leaves through its
provider.
Trusted session
In Settings → Approvals, a trusted session approves risk-free reads on its
own for 15 minutes — listing a directory, reading a file, reading logs — for
requests filed by your own tokens, while that tab stays open and your vault is
unlocked. It never approves a command (a harmless-looking first word proves
nothing), never reads keys, .env files or credentials, and never approves a
write.
Security model
What the assistant reads goes to its provider
File contents, logs and command output the assistant reads are sent to the AI provider behind your client. Servor redacts the secrets it recognises (keys, tokens, passwords in common formats), not everything. Point the assistant at what it needs.
- The MCP server holds no signing key. A compromised Servor cannot execute anything on your servers.
- The command on the card is the command that runs, byte for byte: it is the exact string your vault signs.
- Logs and files can contain text written to steer an AI. Treat the assistant's reason as a claim — the card labels it "unverified" — and read the command.
- Every request, approval, rejection and result is recorded in the audit log.
Limits
- 20 MCP requests per second and 10,000 per hour per token.
- A request expires after 15 minutes without a decision.
run_on_serverstakes at most 50 servers;read_filereturns up to 8 MiB.- MCP uses API tokens, available from the AI plan.