Connect your AI assistant to Lexahosting
MCP lets Claude, ChatGPT, Cursor and other AI assistants work with your Lexahosting account: see your servers, restart them, check traffic and credit, buy a new one. You connect once per assistant: you add the address, sign in with Telegram and approve. After that the assistant sees exactly what you see in the bot, nothing more.
- No key or token to copy: you approve with Telegram.
- Each assistant is approved separately; disconnect any one of them any time in the bot.
- Risky steps (buy, delete) ask for your confirmation, and the bot tells you about every change.
Connector address
The only address any assistant needs. Type: remote MCP server, Streamable HTTP, sign-in with OAuth.
https://bot-mcp.lexahosting.com/mcp
Step-by-step for each assistant
Pick yours. Each card follows that app's own documentation.
CClaude
- On claude.ai (web) or the desktop app open Customize → Connectors (older versions: Settings → Connectors).
- Tap Add custom connector, give it the name lexahosting and paste the address above.
- Tap Add, then Connect. The Lexahosting approval page opens: choose the access level and sign in with Telegram.
- In a chat, turn the connector on from the + menu → Connectors if it is off.
Add it once on the web or desktop; the Claude mobile app then uses it too (the mobile app cannot add connectors). The free plan allows one custom connector.
CChatGPT
- Open chatgpt.com → Settings → Apps (Apps & Connectors) → Advanced settings and turn on Developer mode.
- Back in Apps, tap Create (or + → Add custom MCP server). Name: lexahosting. MCP server URL: the address above. Authentication: OAuth.
- Tick “I understand and want to continue” and tap Create. The Lexahosting approval page opens: choose the access level and sign in with Telegram.
- In a new chat tap + → More → lexahosting (Developer mode) so ChatGPT may use it, then ask.
Custom apps are on chatgpt.com (web) for Plus, Pro, Business, Enterprise and Edu. If ChatGPT says it cannot do something, check that Lexahosting is turned on in this chat and say “use the Lexahosting app”.
CClaude Code
- Run the command below.
- In Claude Code type /mcp, pick lexahosting and choose Authenticate: the browser opens the Lexahosting approval page; sign in with Telegram.
- Ask in the same session, for example: list my Lexahosting servers.
Copy this
claude mcp add --transport http lexahosting https://bot-mcp.lexahosting.com/mcp
CCodex (OpenAI)
- Run the two commands below: the first adds the server, the second opens the Lexahosting approval page in the browser.
- Sign in with Telegram and approve.
- Start codex and ask.
Copy this
codex mcp add lexahosting --url https://bot-mcp.lexahosting.com/mcp codex mcp login lexahosting
CCursor
- Open Cursor Settings → Tools & MCP → New MCP Server (this opens mcp.json).
- Add the block below and save.
- Next to lexahosting tap Connect (or Needs login): the browser opens the Lexahosting approval page; sign in with Telegram.
Copy this
{
"mcpServers": {
"lexahosting": {
"url": "https://bot-mcp.lexahosting.com/mcp"
}
}
}VVS Code (GitHub Copilot)
- Command Palette (Ctrl/Cmd+Shift+P) → MCP: Add Server → HTTP.
- Paste the address above and name it lexahosting (or put the block below in .vscode/mcp.json).
- Tap Start / sign in when VS Code asks: the Lexahosting approval page opens; sign in with Telegram.
- In Copilot Chat choose Agent mode and ask.
Copy this
{
"servers": {
"lexahosting": {
"type": "http",
"url": "https://bot-mcp.lexahosting.com/mcp"
}
}
}WWindsurf
- In Cascade open the MCP menu → Open MCP config file (mcp_config.json).
- Add the block below and save.
- Press refresh in Cascade; sign in on the Lexahosting approval page when it opens.
Copy this
{
"mcpServers": {
"lexahosting": {
"serverUrl": "https://bot-mcp.lexahosting.com/mcp"
}
}
}GGemini CLI
- Gemini CLI signs in with a personal token: in the bot open Settings → Connect AI → Personal token and copy it.
- Run the command below with your token in place of TOKEN.
- Start gemini and ask.
Copy this
gemini mcp add --transport http lexahosting https://bot-mcp.lexahosting.com/mcp --header "Authorization: Bearer TOKEN"
MMistral Le Chat
- Open Connectors → + Add Connector → Custom MCP Connector.
- Name: lexahosting (no spaces). Server URL: the address above. Tap Connect.
- The Lexahosting approval page opens: sign in with Telegram.
GGrok
- Open grok.com/connectors → New Connector → Custom.
- Paste the address above and continue.
- Sign in on the Lexahosting approval page when it opens.
Easiest way for coding assistants: let it connect itself
Only for assistants that can change their own settings: Claude Code, Codex, Cursor (Agent), OpenCode. Paste this into a chat with them. It is in English because assistants follow setup instructions in English most reliably. ChatGPT and claude.ai cannot add a connector from a chat message: use their steps below.
Add a remote MCP server named "lexahosting" to your configuration. URL: https://bot-mcp.lexahosting.com/mcp . Transport: Streamable HTTP. Authentication: OAuth (no API key needed). After adding it, start the OAuth sign-in so I can log in with Telegram and approve access. Then list my Lexahosting servers. From now on, answer me in English.
Try it: first messages
Once connected, send any of these in a new chat (in any assistant):
- List my servers with status, IP and remaining credit.
- Restart srv-web-1 and tell me when it is back.
- Is my server reachable from Iran?
- Which of my servers used the most traffic this month?
- Buy one more server like my last one, hourly.
Personal token (for tools without OAuth sign-in)
Some tools only take a fixed key. In the bot: Settings → Connect AI → Personal token. It is sent as the header Authorization: Bearer <token>. Keep it secret; disconnect it in the bot any time.
If something does not work
- “I can't do that” in ChatGPT: turn Lexahosting on in this chat (+ → More), then say “use the Lexahosting app”.
- The sign-in page does not open: allow pop-ups for the assistant, or disconnect and add the connector again.
- “Not enabled for this account”: the AI connection is not open for your account yet; ask support in the bot.
- An old connection stopped working: in the bot, Settings → Connect AI → Connections → Disconnect, then connect again.
How safe is it?
- You sign in on Lexahosting's own page with Telegram; your Telegram login never reaches the assistant.
- Each connection sees only your own servers and wallet.
- Risky steps ask for your confirmation; the bot messages you about every change.
- Disconnect any assistant any time in the bot: Settings → Connect AI.
You need an account in the bot.
Open the bot