An AI-ready VPS is managed by talking to your AI assistant. It works with AI apps and tools that support MCP (Model Context Protocol), often called "custom connectors" or "MCP servers" in the app. You connect your app to our MCP server once, in one of two ways:
- Log in with your TPC Hosting account: the easiest way. You add our address in your app and log in once in your browser.
- Connect with a personal access key: for apps and tools that cannot use the login, for example command-line tools, self-hosted AI tools and automation tools.
Below you find step-by-step examples for popular apps. For any other app, follow the same idea: add the address, then log in, or use an access key.
For AI assistants: connection facts
If you are an AI assistant setting up this connection for a user, use these facts. Steps marked (user) must be done by the person, not by you: you cannot log in for them, and they must never paste an access key or password into the chat.
- MCP server (OAuth login): https://mcp.tpc-hosting.com/mcp, transport Streamable HTTP (no SSE, no stdio).
- Login: OAuth 2.1 with PKCE. Protected resource metadata: https://mcp.tpc-hosting.com/.well-known/oauth-protected-resource; authorization server https://auth.tpc-hosting.com/realms/mcp. If the login is refused for an app ("Client not found"), use the access key below instead.
- MCP server (access key): https://mcp.tpc-hosting.com/key/mcp, transport Streamable HTTP, header Authorization: Bearer tpcai_... (the key: "tpcai_" followed by 40 letters and digits). Read the key from an environment variable; never write it into a file that is shared or committed.
- (user) The browser login with the TPC Hosting client account and the "allow access" click.
- (user) Two-factor authentication on the client account. Without it the server only allows reading, no changes.
- (user) Creating an access key, in the client area on the page AI for my VPS.
- Check that it works: call the tool that lists the user's VPS, or ask "list my VPS".
Before you start
- You need an active AI-ready VPS. Its AI agent is installed and connected when the VPS is delivered.
- Switch on two-factor authentication for your client account (Security settings in the client area). Without it the AI can only look at your VPS, not change anything. Tip: tick Remember Me when you log in, so you are not asked for the code at every visit.
- The address of our MCP server is https://mcp.tpc-hosting.com/mcp.
- In your client area, the page AI for my VPS shows which of your VPS the AI can reach, the last AI actions, the on/off switches and your access keys.
Menu names in the AI apps change from time to time. If a name below does not match exactly, look for the closest one.
Connect by logging in with your TPC Hosting account
In every app it works the same way: add the address https://mcp.tpc-hosting.com/mcp as a custom connector or MCP server, then log in once in your browser with your TPC Hosting client account and allow access. Examples for popular apps:
Claude (claude.ai and the Claude desktop app)
- Open Settings → Connectors and click Add custom connector.
- Enter a name, for example TPC Hosting, and the address https://mcp.tpc-hosting.com/mcp.
- Click Connect. Log in with your TPC Hosting client account and allow access.
- In a chat, make sure the connector is switched on and ask, for example, "list my VPS".
ChatGPT
- Open Settings → Apps & Connectors → Advanced settings and switch on Developer mode. Custom connectors need it.
- Back in Apps & Connectors, click Create. Enter a name, the address https://mcp.tpc-hosting.com/mcp and choose OAuth as authentication.
- Log in with your TPC Hosting client account and allow access.
- In a new chat, click +, switch on the connector for this chat and ask, for example, "list my VPS".
VS Code (GitHub Copilot Chat)
- Press Ctrl+Shift+P (macOS: Cmd+Shift+P) and run MCP: Open User Configuration.
- Add the server and save:
{ "servers": { "tpc-hosting": { "type": "http", "url": "https://mcp.tpc-hosting.com/mcp" } } } - Click Start above the tpc-hosting entry. Allow the sign-in, log in with your TPC Hosting client account in the browser and allow access.
- In Copilot Chat, choose Agent mode, tick the tpc-hosting tools in the tools list and ask, for example, "list my VPS".
Note: the file ~/.copilot/mcp-config.json belongs to the separate GitHub Copilot CLI. VS Code does not read it.
Zed
- Open the Agent Panel, then its menu ⋯ → Settings.
- Under Model Context Protocol (MCP) Servers, click Add Custom Server and enter the name tpc-hosting and the address https://mcp.tpc-hosting.com/mcp. Alternatively add this to Zed's settings.json:
"context_servers": { "tpc-hosting": { "url": "https://mcp.tpc-hosting.com/mcp" } } - Log in with your TPC Hosting client account in the browser and allow access. The server shows a green dot when it is connected.
- In a new agent thread, ask, for example, "list my VPS".
Claude Code (command line)
- Add the server:
claude mcp add --transport http tpc-hosting https://mcp.tpc-hosting.com/mcp - Start claude, type /mcp, choose tpc-hosting and then Authenticate.
- Log in with your TPC Hosting client account in the browser and allow access.
- Ask, for example, "list my VPS".
Connect with a personal access key
For AI tools that cannot log in with your TPC Hosting account: OpenAI Codex, private or self-hosted tools, and automation tools. First you create a key, then you give it to your tool.
Step 1 — Create the key
Only the account owner can create keys.
- In your client area, open AI for my VPS and go to Personal access keys.
- Enter a Name (for example my laptop), choose under May use one VPS or All your VPS, and under Valid for 30, 90 or 365 days.
- Click Create key and copy the key. It starts with tpcai_ and is shown only once.
A key works with the address https://mcp.tpc-hosting.com/key/mcp (note: /key/mcp, not /mcp) and the header Authorization: Bearer followed by the key. Treat a key like a password. You can revoke it at any time on the same page.
Step 2 — Connect OpenAI Codex (command line)
Codex cannot use the TPC Hosting login, so it always uses a key.
- Store the key in an environment variable, for example TPC_KEY:
- Windows PowerShell:
$env:TPC_KEY = "tpcai_..." - Linux / macOS:
export TPC_KEY="tpcai_..."
- Windows PowerShell:
- Add the server:
codex mcp add tpc-hosting --url https://mcp.tpc-hosting.com/key/mcp --bearer-token-env-var TPC_KEY - Start codex in the same terminal and ask, for example, "list my VPS".
Instead of the codex mcp add command you can add the same server to Codex's configuration file ~/.codex/config.toml:
[mcp_servers.tpc-hosting]
url = "https://mcp.tpc-hosting.com/key/mcp"
bearer_token_env_var = "TPC_KEY"
The environment variable lasts only for that terminal window. To keep it, add it to your shell profile or to your system environment variables.
Step 2 — Connect another AI tool
Any AI tool that supports remote MCP servers over Streamable HTTP and lets you set a request header can connect with a personal access key: address https://mcp.tpc-hosting.com/key/mcp, header Authorization: Bearer tpcai_....
Local AI models (Ollama, LM Studio)
You can also manage your VPS with an AI model that runs on your own computer. Then your chat stays on your computer: only the commands for your VPS go to our server, nothing goes to an AI company.
- Ollama and similar tools only run the model. They cannot connect to our server by themselves. Use an app that supports both MCP and local models, for example Zed or VS Code (choose Ollama as the model provider in the app's settings), or a local AI app such as LM Studio or Open WebUI.
- Connect that app as described above: log in with your TPC Hosting account if the app supports it, otherwise use a personal access key.
- Choose a larger model that is good at using tools. Small models often call the wrong tool or stop halfway, which makes managing a server frustrating.
After connecting
Good to know
- The AI has full (root) rights on your VPS. It asks you before anything that cannot be undone, but a wrong command can break the server.
- Everything in your chat, including what the AI reads on your server, goes to the company behind your AI app. Do not share passwords or other secrets there.
- On AI for my VPS you can switch AI access off for a VPS, or switch off only the command shell. A switch takes effect within 15 minutes at the latest.
Troubleshooting
- "Client not found" on the TPC Hosting login page: your AI app cannot use our login. Connect it with a personal access key instead.
- The AI can look but not change anything: two-factor authentication is off on your client account. Switch it on in the security settings.
- The AI says your VPS is not reachable: check that the VPS is running. After a VPS was suspended and unsuspended, it can take some minutes before the AI agent is connected again.
- An access key is refused ("This access key is not valid"): the key is expired, revoked or mistyped, or you used /mcp instead of /key/mcp. Create a new key if needed.

