# How to connect ChatGPT to a server

ChatGPT can't log in to your server. It can talk to a program on that server, an MCP server, once you add its address in ChatGPT. You can run one on your own VPS or connect one that already exists.

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

ChatGPT works with outside systems through MCP (Model Context Protocol), a standard way for an AI to call tools on another program. To connect ChatGPT to a server, you put an MCP server online at a public HTTPS address and add that address in ChatGPT as a custom MCP server. After that, ChatGPT can call the tools the server offers: read data, start a job, change something.

There are two ways to get there:

- **Run your own MCP server on a VPS.** Full control, and all the upkeep is yours.
- **Connect an MCP server that already exists.** For putting projects online, that is BitHut: you add one address and sign in.

All facts about ChatGPT on this page come from OpenAI's own documentation, checked 23 November 2026.

## What "connect" means here

ChatGPT runs in OpenAI's cloud, not on your computer. OpenAI says plainly that ChatGPT connects to remote MCP servers, and you can't connect a local server directly ([OpenAI help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt)). So:

- the MCP server must be reachable from the internet over HTTPS;
- ChatGPT can't start a program on your laptop or open a terminal on your VPS by itself;
- it can do only what the MCP server's tools allow, and nothing else.

That last point is the useful part. You decide which tools exist, so you decide what ChatGPT can do.

For a server inside a private network, OpenAI offers Secure MCP Tunnel instead of opening the server to the internet ([OpenAI help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt)).

## Which plans can add a custom MCP server

From OpenAI's help article ([OpenAI help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt)):

| Plan | What you get |
|---|---|
| Business, Enterprise, Edu | full MCP, including tools that write or change data |
| Pro | custom MCP servers with read and fetch permissions only |
| Plus, Free | the article doesn't mention them |

A few more rules from the same article:

- **Web only.** Custom MCP servers are added on ChatGPT web; the answer to "on mobile?" is "No - web only".
- **Developer mode is no longer a separate step.** In the current Plugins menu you add the server directly and "don't need to turn on Developer Mode first". Instead, you acknowledge a risk warning for each server.
- **Business:** only admins and owners can create and publish custom MCP servers for the workspace.
- **Enterprise and Edu:** admins can let selected members create them, only admins and owners publish, and new actions start switched off until an admin turns them on.

## Option 1: your own MCP server on a VPS

### What you need

1. **An MCP server program.** It describes your tools and does the work. ChatGPT supports two transports: SSE and streaming HTTP ([OpenAI developers](https://developers.openai.com/api/docs/guides/developer-mode)).
2. **A public HTTPS address**, which means a domain and a certificate in front of the program.
3. **A way to sign in.** ChatGPT accepts OAuth, no authentication, or a mix where some tools need OAuth and others don't ([OpenAI developers](https://developers.openai.com/api/docs/guides/developer-mode)). For OAuth, OpenAI notes the `offline_access` scope, so ChatGPT can keep the connection with refresh tokens ([OpenAI help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt)). A server without sign-in is open to anyone who finds the address.
4. **Keep it running.** Restart it after crashes and reboots, renew the certificate, update the system.
5. **A firewall** that leaves open only what the server needs, usually the HTTPS port.

### How to add it in ChatGPT

The steps from OpenAI ([OpenAI developers](https://developers.openai.com/api/docs/guides/developer-mode)):

1. Open **Plugins** in ChatGPT on the web.
2. Press the plus button, then **Add custom MCP server**.
3. Enter a name. Under **Connection**, paste the **Server URL**.
4. Choose authentication.
5. Read the risk warning and select **I understand and want to continue**.
6. Select **Create as a plugin**.

Then install the plugin and start a new chat. Type `@` in the message box and pick it ([OpenAI help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt)). The choice applies to that one message, so mention it again when a follow-up needs it.

If you change the tools on the server, open the plugin's page in settings and refresh it to pull the new list ([OpenAI developers](https://developers.openai.com/api/docs/guides/developer-mode)).

### What ChatGPT asks before it acts

Write actions need your confirmation by default. ChatGPT treats a tool as read-only only if the server marks it with `readOnlyHint`; every other tool counts as a write. You can remember "allow" or "deny" for a tool inside one conversation, and a new conversation asks again ([OpenAI developers](https://developers.openai.com/api/docs/guides/developer-mode)). OpenAI also says some especially risky actions may be blocked rather than offered for approval ([OpenAI help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt)).

Read the tool input before you press approve. A wrong write can delete or change data.

### Security

- **Never give an AI the root password or a key with full access.** A tool like "run any command" turns one bad answer into a broken server.
- **Run the MCP server as its own user** with access only to the folders and services it needs.
- **Keep keys apart from the code**, in environment variables or a secret store, not in the repository.
- **Connect only servers you trust.** OpenAI warns that an untrusted server can steal what you share or trick ChatGPT into misusing tools, and points to prompt injection ([OpenAI developers](https://developers.openai.com/api/docs/guides/developer-mode)).

## Option 2: BitHut, with nothing to host

If what you want is for ChatGPT to put your projects online, you don't need your own VPS or your own MCP server. BitHut already runs one at `https://api.bithut.app/mcp`, with OAuth.

Follow the steps on [Connect your AI → ChatGPT](/docs/start/connect-ai#chat-apps-claude-chatgpt-gemini): add BitHut as a custom MCP server, choose OAuth, sign in. Then type `@`, pick BitHut and ask: "Show my BitHut projects."

After that, ChatGPT can:

- put a site, a bot, a script on a schedule or a webhook receiver online;
- store keys apart from the code;
- show status and logs, and explain what broke;
- roll back to an earlier version or restore data.

BitHut runs each project in its own container, with its own disk, backups and a password page by default, so there is no root access for anyone to misuse. Plan limits above still apply: Pro gets read and fetch only, so for ChatGPT to make changes you need Business, Enterprise or Edu. Claude, Gemini, Codex and Cursor connect the same way, see [Connect your AI](/connect).

## If it doesn't work

- **No Plugins menu or no "Add custom MCP server".** Check your plan in the table above. On Business, ask a workspace admin or owner.
- **Works on the computer, not on the phone.** Adding custom MCP servers is web only.
- **The connection fails right after you paste the address.** Make sure the address opens over HTTPS from outside your network and the server speaks SSE or streaming HTTP. A `localhost` address will never work.
- **Sign-in loops or the connection drops later.** Check the OAuth settings, including the `offline_access` scope.
- **ChatGPT doesn't use your tools.** Start a new chat, type `@` and pick the plugin for that message.
- **New tools don't show up.** Refresh the plugin in its settings page.
- **Every action asks for approval.** That is the default for tools without `readOnlyHint`.
