# 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.

## Tell your AI

1. Connect BitHut to your AI (Claude, ChatGPT or Codex): add the address `https://api.bithut.app/mcp`. How: https://bithut.app/connect.md
2. Then tell 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:

1. **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.
2. **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](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports)):

| | 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](https://support.claude.com/en/articles/11725091-when-to-use-desktop-and-web-connectors)). 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](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)).

## 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](https://claude.com/docs/connectors/custom/remote-mcp)). With no sign-in, anyone who learns the address can use your tools. The MCP specification says servers should authenticate every connection ([MCP specification](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports)). 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](https://claude.com/docs/connectors/custom/remote-mcp)):

1. Open [Customize → Connectors](https://claude.ai/customize/connectors).
2. Click **+ Add**, then **Add custom connector**.
3. Enter a name and the server's address, click **Continue**.
4. Keep the sign-in settings Claude marks **Detected**, unless your server's documentation says otherwise. Click **Add**.
5. 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](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)):

- 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](https://claude.com/docs/connectors/custom/remote-mcp)).

### Add it to Claude Code

In the terminal, one command adds a remote server ([Claude Code docs](https://code.claude.com/docs/en/mcp)):

```bash
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](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)). 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](https://claude.com/docs/connectors/custom/remote-mcp)).
- **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](/connect#claude-code): `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](/docs/start/connect-ai#chat-apps-claude-chatgpt-gemini).

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](/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](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)).
- **Sign-in keeps failing.** Sign-in settings can't be edited: remove the connector and add it again with the right ones ([Claude docs](https://claude.com/docs/connectors/custom/remote-mcp)).
- **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](https://claude.com/docs/connectors/custom/remote-mcp)).
- **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](https://code.claude.com/docs/en/mcp)).
- **BitHut is connected but Claude doesn't answer about projects.** Ask it: "Show my BitHut projects." If it lists them, the connection works.
