Docs apolopanel.com ↗ Start trial ↗
Documentation Integrate

AI assistants (MCP)

Claude (on claude.ai and in the Claude apps), ChatGPT, Claude Code, Cursor, VS Code and other AI assistants that speak the Model Context Protocol (MCP) can work with the hosting through the panel: read websites, files and logs, add DNS records or mailboxes, fix a cron job. Each assistant gets only the rights you give it, when it signs in to the panel (ChatGPT and Claude) or with a token you make, dangerous changes can wait for your confirmation, and every call is in a log.

How it works

An assistant connects to the panel's MCP address with an MCP token and asks for the list of tools. ChatGPT, Claude and other apps that sign in get their token from the panel: the app opens the panel's page, and you sign in there and choose what it may do (Apps that sign in). Other apps take a token you make on the AI assistants page. A tool is one action of the panel, such as listing the websites, reading a file or adding a DNS record. The panel runs each call as the token's account, through the same code as the browser, so the account's ownership, package features and limits apply exactly as they do in the panel.

Three things decide what a token may do:

  • The server's switch: AI assistants are off on a new server, and every MCP token is refused until an administrator turns them on (below).
  • The account's package: the highest level its tokens may have, from Off to Full access (Packages). Administrators' tokens have no package.
  • The token: its level, its tools, the addresses it works from and when it expires (Tokens).

A token works at the lower of its own level and its package's level, checked again at every call: lowering an account's level lowers its tokens at once.

Some things an assistant can never do, at any level: sign in, change how anyone signs in to the panel (panel passwords, two-factor, passkeys, SSH keys), make or revoke API or MCP tokens, confirm its own calls, change the licence, the administration's addresses, the ports or the panel's general settings, or open sign-in links (Log in as user, phpMyAdmin, WP Admin, webmail) and downloads. An instruction hidden in an e-mail or a file can't lock you out or give an assistant lasting access.

Turn it on (administrators)

Under Settings → AI assistants:

The AI assistants (MCP) section of Settings
The server's switch, apps that sign in, the calls a minute and how long a new token may last.
AI assistants on this server off by default
On: tokens work at the level their account's package allows. Off: every MCP token is refused, the administrators' too; the tokens stay and work again when it is on.
Apps sign in to connect on
On: ChatGPT, Claude and other apps that connect over OAuth send you to the panel to sign in and choose what the app may do (Apps that sign in). Off: apps connect only with a token made on the AI assistants page, and apps that signed in stop working until it is on again. It changes only while AI assistants are on.
Calls a minute per token 60
From 10 to 600. Over it, the assistant gets an error with a Retry-After header and tries again later.
A new token lasts at most a year
30 days, 90 days or a year. A token with full access lasts at most 90 days anyway.
Address on port 443
When the server has a host name with a certificate, Nginx passes only /mcp of the host name, and the addresses where apps sign in (/oauth/ and /.well-known/oauth-…), to the panel: https://<host name>/mcp. Assistants that can only reach port 443 work too. When it can't (no host name yet, no certificate yet, the host name is also a website's name, or Nginx doesn't serve it yet), the section says why and assistants use the panel's own port (Connecting).

The link at the bottom shows how many MCP tokens the server has and opens them.

Packages

Hosting accounts get AI assistants from their package: Limits → Packages, the package's AI assistants (MCP) row. The same row is in an account's own features. Packages made before this version have it off. As with the other features, an account takes the level when it is created on the package or moved to it: after you change a package, choose it again for its accounts under Move to package (marked Reset), or set the row in an account's own features.

Off default
AI assistants aren't in the account's menu, and its tokens are refused.
Read only
Tokens up to level 1.
Read and manage
Tokens up to level 2.
Full access
Tokens up to level 3, and commands in the terminal when the package has the terminal.

Levels

LevelWhat the assistant may doPasswords, keys and tokens in answers
1, Read onlySees websites, files, databases, mail, DNS, statistics and the rest, and changes nothing.Hidden
2, Read and manageAlso makes changes. A dangerous one (deleting, restoring, setting a password) waits up to 15 minutes until a person confirms it (Pending).Hidden
3, Full accessDoes everything at once, without asking, and for an account whose package has the terminal runs commands as the account (terminal_exec: in its home, at most 120 seconds, the last 64 KB of output). Needs your password and lasts at most 90 days.Shown

Below level 3, the answers show [hidden from AI assistants] in place of passwords, keys and tokens; files with keys or passwords (such as .pem, id_rsa, .htpasswd, .my.cnf) come without their content, and .env and wp-config.php without the values of their secrets. Password hashes, two-factor secrets, recovery codes and private keys are hidden at every level.

What others wrote (files, logs, mail in the queue, visitors' addresses and browsers) reaches the assistant marked as data, not as instructions. Three tools are in every token's list: whoami (the account, the token's level and categories), jobs_status (background work, such as an installation) and mcp_pending_status (whether a waiting call was confirmed).

Tokens

Open AI assistants in the menu and choose New token. Tokens are made only in the browser, never by an assistant or the API; an app that signs in gets its own when you allow it on the panel's page (below).

The AI assistants page with the MCP address and the tokens
A hosting account's AI assistants page: how to connect Claude, and ChatGPT among the tokens as a connected app.
Name
Shown in the log and the audit log, for example Claude or Laptop. Each name once per account.
What the assistant may do
The level (Levels), up to what the package allows.
Tools all tools
Or only some categories, such as Websites, Files, DNS or Email.
Where it works from
Any address: for Claude Code and apps on your own computer. Only Claude's servers: for Claude on claude.ai and the Claude API, which connect from Anthropic's addresses (160.79.104.0/21 and 153.61.208.0/20). Only these addresses: your office or home address, or ranges like 203.0.113.0/24. An administrator's token at level 2 or 3 can't use any address.
Expires
In 30 days, 90 days or a year, up to what the server allows (above); full access at most 90 days.
Your panel password
Only for full access.
Code from your authenticator app
When the account has two-factor sign-in.

The token (starting with apolo_mcp_) is shown once: the panel keeps only a hash of it. Give it only to the assistant that should use it. An account has at most 20 MCP tokens, apps that signed in included. A new token at level 2 or 3 sends the account a notice in the bell and an e-mail, so a token you didn't make doesn't go unnoticed.

The list shows each token's level, tools, addresses, when it expires and when and from where it was last used. An app that signed in is marked Connected app, with the address it goes back to (such as chatgpt.com) in place of the token's beginning. Revoke ends a token at once; calls that wait for a confirmation then don't run, and a revoked app has to be connected again. Administrators see every account's tokens with Whose tokens: Every account.

Tokens can't be made, and calls can't be confirmed, while an administrator is logged in as the user: the account's owner does that.

Apps that sign in (OAuth)

ChatGPT, Claude and other apps that connect to MCP servers over OAuth don't need a token. You give the app the panel's MCP address, the app opens the panel's page in the browser, and you sign in there and choose what it may do. The app never sees your password: it gets a token of its own, which you see and revoke like any other. Apps sign in to connect has to be on (Turn it on).

The panel's page where an app signs in
Claude asks for access: what it may do, which tools, from where and for how long.
  1. The page shows which app asks, where it goes back to (a website such as chatgpt.com, an app on this computer or an app on this device) and the panel. Sign in only if you are connecting the app yourself right now.
  2. Sign in with the panel's user name and password, and the code from your authenticator app when the account has two-factor sign-in. When the server requires two-factor authentication (Requiring two-factor), an account without it sets it up in the panel first. On the administration's address only administrators sign in, on the address for hosting accounts only accounts; at https://<host name>/mcp both.
  3. Choose as for a token: the name, what the app may do (up to the package's level), the tools, where it works from (Only Claude's servers is chosen for Claude) and how long it lasts. Full access asks for no second password here: you have just signed in.
  4. Allow takes you back to the app, which is then connected. Deny, or Cancel before you sign in, takes you back and tells the app you refused.
  • The app is then among the account's tokens as a Connected app, and the connection is in the activity log; an app at level 2 or 3 sends the same notice and e-mail as a new token. Connecting the same app again replaces its earlier access.
  • An administrator's app at level 2 or 3 can't work from any address: Claude works from Claude's servers, and ChatGPT gets Read only from any address unless you list the addresses it connects from.
  • The app renews its access by itself every hour until the end you chose; then you connect it again. Revoking it, a lower package level or AI assistants turned off apply at once, as for any token.
  • The page works only over HTTPS and never inside another site's frame. A sign-in left open expires after 20 minutes. Wrong passwords and codes on the page count toward the panel's sign-in limits, and BEDEM sees them as wrong sign-ins to the panel. When the app's code, or an access it has already renewed, is used again, the panel ends that connection and writes it in the activity log.
  • When something in the app's request is wrong, the page says so and doesn't send the browser back to the app: connect it again from the app.

Connecting an assistant

The How to connect card on the AI assistants page shows the address and ready commands for your server. The address is:

  • https://<host name>/mcp on port 443, when the server has it (above), for administrators and hosting accounts alike;
  • otherwise the panel's own port: https://<server>:8443/mcp for administrators' tokens and https://<server>:2083/mcp for hosting accounts' tokens. A token is refused on the other port.

Claude on claude.ai and in the Claude apps

Claude adds APOLO as a custom connector. The connector runs on Anthropic's servers, not on your computer, so the panel must be reachable from the internet at https://<host name>/mcp on port 443 (Turn it on): Claude doesn't accept an address with a port such as :2083 or :8443.

How to connect on the AI assistants page opens on Claude (claude.ai) when the server has this address, with the steps below and the address to copy. Without it, that part says so: an administrator gives the server a host name with a certificate under Settings → Server, a hosting account asks the administrator.

  1. In Claude, open Customize → Connectors, choose Add and then Add custom connector. On a Team or Enterprise plan an owner adds it, under Organization settings → Connectors.
  2. Give it a name, such as APOLO, and the address: https://server1.example.com/mcp. Add no token and no header: Claude signs in on the panel's page.
  3. Choose Connect. Claude opens the panel's page: sign in, choose what Claude may do and allow it (Apps that sign in).
  4. In a chat, turn the connector on under + → Connectors.

Claude is then among the account's tokens, where you can revoke it. The connector works in Claude on the web, in the desktop app and in the mobile apps of the same Claude account. Claude connects from Anthropic's addresses (160.79.104.0/21 and 153.61.208.0/20); a firewall in front of the server has to let them reach port 443.

With a token instead. When Apps sign in to connect is off, Claude takes a token. Make one with Where it works from: Only Claude's servers (Tokens) and add the connector as above. For the sign-in, choose API key and send it as Authorization: Bearer, with the token as the key. When the dialog doesn't offer that, choose No sign-in and add the request header authorization with the value Bearer apolo_mcp_…: Claude sends the value exactly as typed, so it needs the word Bearer and a space before the token. A connector's sign-in can't be changed after it is added: for a new token, remove the connector and add it again.

Apps built on the Claude API connect the same way: the MCP server's url is the address on port 443 and its authorization_token is the MCP token.

ChatGPT

ChatGPT connects only by signing in, so Apps sign in to connect has to be on (Turn it on). Like Claude, it connects from its own servers on the internet: give it https://<host name>/mcp on port 443, and let ChatGPT's servers through a firewall in front of the server.

  1. In ChatGPT, add a custom MCP server (a connector) with the address https://server1.example.com/mcp and OAuth as its authentication. Where depends on ChatGPT's plan and version: look in its settings under Apps or Plugins, where Developer mode may have to be turned on first. On a business plan, the workspace's administrator may have to allow it.
  2. ChatGPT opens the panel's page: sign in, choose what ChatGPT may do and allow it (Apps that sign in).

ChatGPT is then among the account's tokens, where you can revoke it. For an administrator, ChatGPT gets Read only from any address; to let it change things, list the addresses it connects from (the call log shows the address of every call).

Claude Code

claude mcp add --transport http apolo https://server1.example.com/mcp --header "Authorization: Bearer <token>"

Or without a token: add it without the header, then type /mcp in Claude Code, choose apolo and sign in on the page that opens in the browser (Apps that sign in).

claude mcp add --transport http apolo https://server1.example.com/mcp

Other apps (JSON)

For apps that read an MCP configuration file and connect over HTTP with a header (Cursor, VS Code and others):

{
  "mcpServers": {
    "apolo": {
      "type": "http",
      "url": "https://server1.example.com/mcp",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}

VS Code reads the same entry under servers instead of mcpServers, in .vscode/mcp.json. An app that can't set Authorization can send the token in an X-Api-Key header instead.

An app that connects to MCP servers only by signing in (OAuth) is given just the address and signs in on the panel's page, like ChatGPT (Apps that sign in). An app that connects only without any sign-in can't use the panel.

Over SSH

An assistant on your computer can start apolo mcp on the server over SSH, so the panel's port doesn't have to be reachable. Save the token on the server in ~/.apolo-mcp-token (readable only by you), sign in over SSH with a key, and add it to Claude Code:

# on the server, as the account
printf '%s\n' 'apolo_mcp_…' > ~/.apolo-mcp-token
chmod 600 ~/.apolo-mcp-token
# on your computer
claude mcp add apolo -- ssh ana@server1.example.com apolo mcp

Claude Desktop and other apps that start a local MCP server run the same command from their configuration file. In Claude Desktop, Settings → Developer → Edit Config opens claude_desktop_config.json; add the server and restart the app:

{
  "mcpServers": {
    "apolo": {
      "command": "ssh",
      "args": ["ana@server1.example.com", "apolo", "mcp"]
    }
  }
}

The SSH sign-in must work without a question, because the app can't type an answer: a key without a passphrase or one loaded in the SSH agent, and the server's host key already known (sign in once in a terminal first). The token can also come from APOLO_MCP_TOKEN or apolo mcp --token-file FILE; a file other users can read is refused. The panel checks that the token belongs to the user running the command: an account's token works only for that account's SSH user, an administrator's token only for root. Hosting accounts need SSH access.

What to ask

Ask in your own words: the assistant picks the tools, and each call it makes is in the call log. For example, with an administrator's token:

  • Which accounts use the most disk space, and what takes it?
  • Is any service down? Restart it if it is.
  • Which certificates expire in the next two weeks?
  • Did last night's backup work for every account?
  • Why is the server's load high right now?

With a hosting account's token:

  • Why does example.com show an error page? Look at its error log.
  • Add an SPF record to example.com that also allows our newsletter service.
  • Create info@example.com with 2 GB and an automatic reply until Monday.
  • Which WordPress plugins need an update?
  • Run the cron job that sends the invoices now.

With Read and manage, a dangerous step of such a request (restarting a service, running a cron job, deleting) waits until you confirm it (below).

Confirming calls

When a level 2 token asks for a dangerous change, the call doesn't run: it waits up to 15 minutes on the Pending tab of the AI assistants page, with a notice in the bell and an e-mail (at most one e-mail every 5 minutes). The assistant gets an id and checks the outcome with mcp_pending_status.

A call that waits for a confirmation
A call that waits: the tool, what it was called with, the token and the address.
  • Confirm shows what will run and asks for the code from your authenticator app when the account has two-factor sign-in; Confirm and run runs it at once.
  • Refuse ends it. A call nobody decides expires after 15 minutes and never runs.
  • A confirmed call runs with the token as it is then: when the token was revoked or has expired, its level was lowered or AI assistants were turned off, it doesn't run.
  • At most 20 calls of an account wait at the same time; decided calls stay on the tab for 24 hours.

Confirm only what you expected the assistant to do.

The call log

The Call log tab shows every call of the last 30 days: the time, the token, the tool, what it was called with, how it ended (Done, Failed, Not allowed, Waits for confirmation, Confirmed, Refused) and how long it took. Passwords and keys are never written to it. Administrators see their own calls or every account's (Whose calls).

The audit log gets what the calls change, as done by mcp:<token> (<account>) with the address, the calls that waited and how a person decided, the commands an assistant ran, and the calls a token wasn't allowed to make (one entry per token and tool every 10 minutes): something an assistant read may have asked it for more than it should.

Limits

  • Apps that sign in register themselves when they first connect. The server keeps up to 200 and forgets an app that has no token left: after a day when it never connected, otherwise 90 days after its last use. When the list is full, an app that never connected gives its place after an hour.
  • Up to 10 sign-ins of apps can be open at the same time from one address.
  • Requests over HTTPS only, up to 1 MB. A tool's answer is at most 256 KB; a longer list or text is cut, with a note telling the assistant to ask for less.
  • The calls a minute per token are set in Settings. Failed attempts with a wrong token are limited per address.
  • Administrators' tokens and apps also obey Administration access; at https://<host name>/mcp even a program on the server itself does, so on the server use the administration's port or apolo mcp.
  • The panel speaks the MCP protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26, over plain HTTP POST requests with JSON answers (no streams).

When it doesn't work

The assistant saysWhat to do
Claude can't connect to the connectorClaude needs https://<host name>/mcp on port 443 (Claude): Settings → AI assistants shows whether the server has it. To sign in, Apps sign in to connect has to be on. With a token, check that the header is authorization with Bearer and a space before the token, and that the token's Where it works from lets Claude's servers in.
ChatGPT can't connectChatGPT needs Apps sign in to connect on and an address it reaches from the internet with a valid certificate, best https://<host name>/mcp on port 443 (ChatGPT), with no firewall in its way.
Apps can't sign in for AI assistants on this serverAn administrator turns on Apps sign in to connect in Settings → AI assistants.
This is the administration's address (or the panel's address for accounts)The app signs in where it connects: connect it with the other address, or with https://<host name>/mcp, where both sign in.
This sign-in has expired or was already usedStart again in the app: the page lasts 20 minutes and works once.
The app's sign-in request isn't validThe app asked in a way the panel doesn't accept, for example without PKCE. Connect it again from the app; an app made for MCP servers asks correctly.
Too many sign-ins at the same timeSign-ins left open on the panel's page wait 20 minutes: try again in a few minutes.
Set up two-factor authentication firstThe server requires two-factor authentication: set it up in the panel (Two-factor authentication), then connect the app again.
AI assistants (MCP) are turned off on this serverAn administrator turns them on in Settings → AI assistants.
AI assistants (MCP) are not included in this account's planThe administrator sets AI assistants (MCP) in the account's package.
The MCP token is missing or not validCheck the header: Authorization: Bearer apolo_mcp_…. A revoked token is not valid.
This MCP token has expiredMake a new one on the AI assistants page.
This MCP token can't be used from <address>The token works only from Claude's servers or the addresses you listed; make a token for this address.
This MCP token belongs to an account (or an administrator)Use the other port, or https://<host name>/mcp.
This MCP token belongs to another account of this serverOver SSH, sign in as the token's account (root for an administrator's token).
Too many calls with this MCP tokenWait a moment, or raise Calls a minute per token.
This tool isn't available with this tokenThe token's level or tools don't include it; the message says which.

Something missing or unclear? Ask support or report a bug.