网购周:新服务器使用优惠码 终身立减 25%。6 天 15 小时后结束查看套餐

Manage your agent box from Claude with MCP

Connect Claude (claude.ai, Claude Desktop or Claude Code) to your ServerPrism account and ask it to check your agent box, read its console, restart the agent, show its web addresses and tell you how long your balance lasts.

最后更新:2026年11月22日

The ServerPrism MCP server connects AI assistants to your account. It works for game servers and AI agent boxes alike: ask Claude whether your agent is running, what it printed last, to restart it, or how many days your balance has left, and it calls the right tools for you.

Connect Claude

The server URL is https://serverprism.com/api/mcp. You sign in to ServerPrism in the browser and approve; there is no token to copy. You need a ServerPrism account with a verified email address.

claude.ai or Claude Desktop

  1. Open Customize, then Connectors.
  2. Click Add, then Add custom connector.
  3. Name it ServerPrism and paste the server URL.
  4. Keep the suggested sign-in settings and click Add, then Connect.
  5. Sign in to ServerPrism and click Approve.

Claude Code

claude mcp add --transport http serverprism https://serverprism.com/api/mcp

Then start claude, type /mcp, pick serverprism and sign in. Add --scope user to the command to have it in every project.

Other assistants (ChatGPT, Cursor, VS Code, Gemini CLI) and scripts with an API token: see the MCP page for their steps.

What you can ask

  • "Is my agent box running? Run agent status and tell me what it says."
  • "Show me the last 50 lines of my agent box's console. Did OpenClaw start cleanly?"
  • "My Telegram bot stopped answering. Check the console, then restart the agent and check again."
  • "What are the web addresses of my agent box, and who can open each one?"
  • "How much AI agent balance do I have, what has each box cost this month, and how long will the balance last at this rate?"
  • "Make a backup of my agent box, wait until it is done, then restart it."

The tools for agent boxes

Tool What it does Scope
list_servers Your game servers and agent boxes. Boxes have "kind": "agent_box". servers:read
get_server One server. For a box it adds an agent_box block: size, template, web addresses (https://...deploymance.com with who can open each: login = Signed in, key = Anyone with the key, public = Everyone), the auto-restart state and this month's usage. servers:read
get_console_output The last lines of the console (1 to 100, 50 by default): what your agent printed, crashes, install output. servers:read
run_agent_command Runs one of agent status, agent start, agent stop, agent restart, template status, template info, template list or help in a running box and returns its output. servers:control
get_agent_balance Your AI agent balance per currency, what each box has cost this month, what your boxes cost per hour right now and how long the balance lasts at that rate. billing:read
send_power_signal Start, stop, restart or kill the box itself. servers:control
send_console_command Sends one line to the console. On a box, anything that is not one of the commands above runs as a shell command in your home folder; read what it printed with get_console_output. servers:control
list_backups / create_backup List backups, or make one of the home folder. servers:read / backups:create

The billing, invoice and support ticket tools work the same as for game servers.

run_agent_command and get_console_output need the box to be running. template info prints your agent's own sign-in details (for example the OpenClaw gateway token), so it lands in your chat with Claude: only ask for it when you need it.

Scopes and safety

An app you connect with OAuth gets every tool. For a script or a client without sign-in, create a token under Account, then API Credentials, and pick only the scopes it needs: servers:read alone lets an assistant look but not change anything. You can disconnect apps and delete tokens there at any time.

Every tool only reaches your own boxes and servers, with the same limits as the dashboard, and every action is logged. Assistants ask you before actions marked as changing something (stop, restart, commands), depending on your client's settings.

What MCP does not do

  • It does not create, resize or delete boxes, top up your balance, change API keys or share web addresses. Use the dashboard for those.
  • run_agent_command only runs the commands listed above. Shell commands sent with send_console_command run in the background, so long jobs keep going after the tool answers; check on them with get_console_output.
  • It can't see inside your agent's own chats or memory, only what the box prints to its console.

Related