How to connect Claude to a server
Claude talks to a server through MCP. You can run your own MCP server on a VPS and add it to Claude as a custom connector, or connect a service whose MCP server already exists. Here is what each way takes.
Try it on your own project
Choose AI Claude CodeCodexGoogle AntigravityCursorVS CodeAnother AI
Claude Code can add BitHut by itself. Paste this into it:
Add the BitHut MCP server for me: run “claude mcp add --transport http bithut https://api.bithut.app/mcp”.
Then restart Claude Code, type /mcp, pick bithut and sign in: sign in to BitHut in your browser and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the command yourself
Run this command in a terminal.
claude mcp add --transport http bithut https://api.bithut.app/mcp
Start Claude Code, type /mcp, pick bithut and sign in. Sign in to BitHut in your browser and press Allow.
Already added BitHut in Claude, and you sign in to Claude Code with the same Claude account? Then BitHut is already in Claude Code.
Codex can connect BitHut by itself. Paste this into it:
Connect the BitHut MCP server for me: run “codex mcp add bithut --url https://api.bithut.app/mcp”, then “codex mcp login bithut”. The address must be exactly https://api.bithut.app/mcp: if a backslash got into it when pasting, remove it before adding.
A page opens in your browser: sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the commands yourself
Run these two commands.
codex mcp add bithut --url https://api.bithut.app/mcp codex mcp login bithut
The second one opens a page in your browser. Sign in to BitHut and press Allow.
Antigravity can add BitHut by itself. Paste this into its agent:
Add the BitHut MCP server for me: in ~/.gemini/config/mcp_config.json, under “mcpServers”, add "bithut": {"serverUrl": "https://api.bithut.app/mcp"}.
When Antigravity asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In the Antigravity editor, click … at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.
Under “mcpServers”, add this line and save the file.
"bithut": {"serverUrl": "https://api.bithut.app/mcp"}
When Antigravity asks, sign in to BitHut and press Allow.
Cursor can add BitHut by itself. Paste this into its chat:
Add the BitHut MCP server to Cursor for me: in ~/.cursor/mcp.json, under “mcpServers”, add "bithut": {"url": "https://api.bithut.app/mcp"}.
Then open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In ~/.cursor/mcp.json, under “mcpServers”, add this line and save the file.
"bithut": {"url": "https://api.bithut.app/mcp"}
Open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run “MCP: Add Server”.
Choose HTTP, paste this address and name the server bithut.
https://api.bithut.app/mcp
When VS Code asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.
Add a remote (HTTP) server with this address.
https://api.bithut.app/mcp
If it asks how to sign in, choose OAuth. Sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Can’t find the setting? Ask your AI: “How do I add a remote MCP server here?”
Copy the prompt into it: Show my BitHut projects
The short answer
Claude doesn’t log in to a server the way a person does. It uses MCP (Model Context Protocol), an open standard: a program called an MCP server offers Claude a set of tools, such as “list files” or “restart the app”, and Claude calls them during a chat.
So “connecting Claude to a server” means one of two things:
- Your own MCP server on your VPS. You install it, give it a public HTTPS address, protect it with a sign-in and add that address to Claude.
- A service that already runs an MCP server. You add its address to Claude and sign in. BitHut works this way: there is nothing to install, and Claude puts your projects online through it.
Everything below about Claude’s menus, plans and commands comes from Anthropic’s own documentation, checked 23 November 2026.
Remote or local: which one you need
MCP has two standard ways to connect (MCP specification):
| Local (stdio) | Remote (Streamable HTTP) | |
|---|---|---|
| Where the server runs | on your computer; the Claude app starts it | on a server, at an HTTPS address |
| Works in | Claude Desktop and Claude Code only | claude.ai, the desktop and mobile apps, Claude Code |
| How you add it | an extension in the desktop app, or claude mcp add |
Customize → Connectors, or claude mcp add --transport http |
Anthropic puts it plainly: remote connectors “work across all Claude surfaces”, while desktop ones are not available on web or mobile (Claude Help Center). If you want Claude in the browser or on your phone to reach a server, you need a remote MCP server.
One more detail matters for a VPS. Claude connects to a remote server from Anthropic’s cloud, not from your computer. The server must be reachable over the public internet and answer on the standard HTTPS port 443: Claude can’t connect to a URL with another port, and a server behind a VPN or a private network won’t connect (Claude Help Center).
Your own MCP server on a VPS
What you need
- An MCP server program. Either one a service publishes, or one you (or your AI) write for your own tasks.
- A public HTTPS address on port 443, for example
https://mcp.example.com/mcp. That means a domain, a certificate and a web server or proxy in front of the program. - A sign-in. In Claude you choose between OAuth (“Sign in now” or “Sign in when needed”) and “No sign-in” (Claude docs). With no sign-in, anyone who learns the address can use your tools. The MCP specification says servers should authenticate every connection (MCP specification). OAuth is the safe choice, and it is also the part that takes the most work to build.
- Upkeep. The program has to run day and night, restart after a crash or a reboot, and get updates. If the VPS is down, Claude simply loses the tools.
- A firewall that leaves port 443 open for Claude and closes everything you don’t need.
Add it to Claude on the web and in the apps
On Free, Pro, Max and Ultra plans you add it yourself (Claude docs):
- Open Customize → Connectors.
- Click + Add, then Add custom connector.
- Enter a name and the server’s address, click Continue.
- Keep the sign-in settings Claude marks Detected, unless your server’s documentation says otherwise. Click Add.
- If the connector shows Connect, click it and sign in.
A remote connector you add this way also works in Claude Desktop and in the mobile apps.
Plan limits (Claude Help Center):
- On the Free plan you can add one custom connector.
- On Team and Enterprise, an Owner adds the connector under Organization settings → Connectors. On Enterprise, a member whose custom role includes managing the organization’s libraries can add it too. Everyone else then finds it in their list and clicks Connect.
You can’t change the sign-in settings of a connector you’ve added. To change them, remove it and add it again (Claude docs).
Add it to Claude Code
In the terminal, one command adds a remote server (Claude Code docs):
claude mcp add --transport http my-server https://mcp.example.com/mcp
Then run /mcp inside Claude Code and sign in in the browser if the server uses OAuth. claude mcp list shows what is connected. The older SSE transport is deprecated; use HTTP where the server offers it.
If you log in to Claude Code with your claude.ai account, the connectors you added on claude.ai show up in Claude Code by themselves, so you don’t have to add them twice.
Keep it safe
Anthropic notes that custom connectors are not verified by Anthropic, and asks you to connect only to servers you trust and to read the permissions you’re asked to grant (Claude Help Center). For your own VPS, our advice:
- Never give an AI the root password or a tool that runs any command as root. Give the MCP server its own user with access only to what it needs.
- Keep keys apart from the code, in environment variables or a secret store, not in the repository.
- Turn off tools you don’t use. In Claude you can set a single tool to Blocked on the connector’s page (Claude docs).
- Read what Claude is about to do before you approve a call that changes or deletes something.
The BitHut way: nothing to host
If what you want from “Claude on a server” is to put a site, a bot or a script online, you don’t need a VPS of your own. BitHut already runs an MCP server at https://api.bithut.app/mcp. You add it to Claude and sign in.
In Claude Code it is one command, shown on the Connect page: claude mcp add --transport http bithut https://api.bithut.app/mcp, then /mcp and sign in. On claude.ai and in the Claude app you add it under Customize → Connectors as a custom connector; the steps, for Team and Enterprise too, are in the docs.
Then you just talk to Claude:
- “Put this project online on BitHut”: it uploads the code, BitHut builds and checks it, and Claude gets the address.
- “Why did my bot stop?”: Claude reads the logs and the error and fixes the code.
- “Roll back to yesterday’s version”: done with one tool call.
Keys are stored apart from the code, sites start private behind a password page, and the price is fixed for the account: from $5 a month, see pricing. There is no free plan.
When something doesn’t work
- The connector isn’t in my list. On Team or Enterprise only an Owner (or, on Enterprise, a member with the right role) can add it; ask them. On the Free plan, check whether your one custom connector slot is already taken.
- Claude can’t reach my server. Check that the address opens from outside your network, uses HTTPS on port 443 and is not behind a VPN (Claude Help Center).
- Sign-in keeps failing. Sign-in settings can’t be edited: remove the connector and add it again with the right ones (Claude docs).
- The tools don’t show up in a chat. Click + in the chat and check the connector is turned on for this conversation (Claude docs).
- Claude Code doesn’t list a claude.ai connector. Run
/status: connectors from claude.ai load only when you’re logged in with a claude.ai account, not with an API key (Claude Code docs). - BitHut is connected but Claude doesn’t answer about projects. Ask it: “Show my BitHut projects.” If it lists them, the connection works.
Read next
Put it online today
Tell your AI “put it on BitHut”, then open the address it gives you.