Connect Claude or ChatGPT to X-Hub (MCP)
Ask AI
Ready taskDo it with me, step by step
Chat assistants
Open in ChatGPTNew tabOpen in ClaudeNew tabCoding agents
Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the webCopy
View as MarkdownPlain text for AI toolsSee the prompt
Read https://xproxy.io/document/xproxy-hub-ai-assistants.md, the XProxy guide "Connect Claude or ChatGPT to X-Hub (MCP)". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now). Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.
The app opens with the prompt filled in. Nothing runs until you press Enter.
Connect Claude, ChatGPT or another AI assistant to your X-Hub. It can then answer questions about your boxes and, with your approval, do what the box panel can do.
You need: an X-Hub with boxes, and an account in the AI app. X-Hub is an MCP server (Model Context Protocol), the standard way AI apps talk to tools.
How do I connect an app?
Step 1 of 4
In X-Hub, open AI Assistants under Integrations. The MCP endpoint box shows your address, for example https://hub.example.com/mcp. Click Copy.
How do I disconnect an app?
Open AI Assistants. Connected apps lists each app with its role, when it connected and when it was last used. Click Disconnect: the app loses access at once. Owners see everyone's apps. Disabling a user in X-Hub also ends their apps.
Can I use an API key instead?
Yes, for Cursor, VS Code, Codex, n8n, scripts and apps that cannot sign in. An owner opens AI Assistants (or Users & Access → API keys), gives the key a name, picks a role, and clicks Create key. The key starts with xph_ and is shown only once. The app sends it as Authorization: Bearer YOUR_KEY.
The page Set up your app fills in ready-made settings for Claude Code, Claude Desktop (JSON), Cursor, VS Code, Codex and a bridge for apps that only run local servers. Use one key per app or computer, so you can revoke one without touching the others.
What can the assistant use?
| Tool | What it does | Needs |
|---|---|---|
fleet_summary, list_servers, list_proxies, list_incidents, recent_events | Read the state of your boxes, modems, problems and events. | viewer |
server_operations, server_read | List what a server can do through its panel, and read settings, DNS, rotation, VPS forwarding and logs. Passwords come back hidden. | viewer |
acknowledge_incident | Mark a problem as handled. | operator |
rotate_ip, reboot_modem | Rotate or reboot after a preview and your OK. | operator |
server_call, approval_status | Act on one server. Everyday actions run after a preview. Risky changes (settings, updates, rebooting a box) need your passkey approval. | operator (owner for risky changes) |
Is it safe?
- You approve changes. Previews first, one-time confirmations, and passkey approval for risky changes.
- Read only by default. A viewer connection cannot change anything.
- Every action is recorded in the audit log with the app or key name and the word "MCP".
- It cannot reach your secrets. Passwords, tokens and keys are hidden before they leave the box.
- It cannot change your license or your X-Hub users, keys and Telegram settings. Those need you in the browser.
FAQ
Claude says it cannot connect
Claude and ChatGPT reach your X-Hub from the internet. X-Hub needs a public https address. X-Hub on your box is not reachable, so use Claude Code on your network, or move to a VPS. If you firewall X-Hub, allow Anthropic's addresses 160.79.104.0/21 and 153.61.208.0/20.
Do I have to sign in again?
Sign-in tokens last 1 hour and refresh by themselves for up to 30 days. After that, connect again.
Can the assistant change my box settings?
Yes, as an owner connection, through server_call, exactly what the box panel allows and refusing what your license does not include. Risky changes wait for your passkey. See Passkeys.
What next?
Lock down risky changes, and review who has access.

