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.
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
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). 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).
Which plans can add a custom MCP server
From OpenAI’s help article (OpenAI help):
| 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
- An MCP server program. It describes your tools and does the work. ChatGPT supports two transports: SSE and streaming HTTP (OpenAI developers).
- A public HTTPS address, which means a domain and a certificate in front of the program.
- A way to sign in. ChatGPT accepts OAuth, no authentication, or a mix where some tools need OAuth and others don’t (OpenAI developers). For OAuth, OpenAI notes the
offline_accessscope, so ChatGPT can keep the connection with refresh tokens (OpenAI help). A server without sign-in is open to anyone who finds the address. - Keep it running. Restart it after crashes and reboots, renew the certificate, update the system.
- 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):
- Open Plugins in ChatGPT on the web.
- Press the plus button, then Add custom MCP server.
- Enter a name. Under Connection, paste the Server URL.
- Choose authentication.
- Read the risk warning and select I understand and want to continue.
- Select Create as a plugin.
Then install the plugin and start a new chat. Type @ in the message box and pick it (OpenAI help). 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).
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). OpenAI also says some especially risky actions may be blocked rather than offered for approval (OpenAI help).
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).
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: 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.
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
localhostaddress will never work. - Sign-in loops or the connection drops later. Check the OAuth settings, including the
offline_accessscope. - 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.
Read next
Put it online today
Tell your AI “put it on BitHut”, then open the address it gives you.