What an MCP connection is
Installing an MCP server means telling a client how to reach a process that speaks the Model Context Protocol. The client starts the server, or connects to one that is already hosted, then reads the tools, resources, and prompts it offers. You approve that list before the assistant can call it. The server is not the model, and it is not an account inside the chat product.
What an MCP server is covers the protocol itself. This page is the client setup: Claude, Claude Code, Cursor, and ChatGPT. If you already know which product you want, jump to that section, then use the permission checks before you leave the server enabled.
Local stdio, remote HTTP, and official hosted servers
The README usually shows one of three shapes. Match the shape before you copy a JSON block from a different client. A config that works in Cursor can fail in Claude Code if a required field is missing.
- Local stdio. The client runs a command such as
npx,uvx,docker, or a binary. The process talks over stdin and stdout. It can see files, environment variables, and the network on that machine. This is the usual path for filesystem, git, and database servers. - Remote streamable HTTP. The client opens an HTTPS URL. Nothing is installed locally beyond the client. The server’s operator hosts it. Older servers may still offer SSE; current clients try HTTP first.
- Official hosted connector. The vendor ships a one-click connector or plugin that writes the URL and starts OAuth. Stripe and Cloudflare are this kind of server. Prefer the vendor’s connector when they publish one, because the URL and auth scheme change more often than a blog post does.
Two remote examples already in the directory: the Stripe MCP server at https://mcp.stripe.com, with a full walkthrough in the Stripe setup guide, and the Cloudflare MCP server at https://mcp.cloudflare.com/mcp.
Install in Claude
For a hosted server with a Claude connector, add it from Claude’s connector directory on the web or in Claude Desktop. Sign in through the provider’s OAuth window, then enable the connector in a conversation from the plus menu. On Team and Enterprise plans an owner often has to add the connector to the workspace before members can connect their own accounts.
For a local server, Claude Desktop reads claude_desktop_config.json. The reliable way to open that file is Claude Desktop’s developer settings, which avoids guessing the path on macOS, Windows, or Linux. Add the command from the project README, fully quit Claude Desktop, and reopen it. A half-restart leaves the old process running and the new server never appears.
{
"mcpServers": {
"example": {
"command": "npx",
"args": ["-y", "package-from-the-readme"]
}
}
} Replace the package name with the one in that server’s README. If the command is not on your PATH, use the absolute path. Do not drop a remote URL into this file without the fields that client expects. Hosted OAuth servers are less error-prone through the connector UI.
Install in Claude Code
Claude Code can import servers you already configured in Claude Desktop, or you can add one from the terminal. Remote HTTP:
claude mcp add --transport http example https://example.com/mcp Local stdio. Everything after the double dash is the server command, not a Claude Code flag:
claude mcp add --transport stdio example -- npx -y package-from-the-readme Start Claude Code and run /mcp to approve the server and finish OAuth if the server asks for it. Names can only contain letters, numbers, hyphens, and underscores.
If you share a project .mcp.json, a URL entry needs an explicit type. Claude Code treats an entry with a URL and no type as a stdio server and skips it. Add "type": "http". Cursor’s config does not use that field, so a block copied from Cursor into Claude Code is a common reason a remote server never connects. The current flags are in Claude Code’s MCP docs.
Install in Cursor
Cursor reads ~/.cursor/mcp.json for every project and .cursor/mcp.json for the project you are in. You can also add a server from Cursor’s MCP settings. A remote server is a URL:
{
"mcpServers": {
"example": {
"url": "https://example.com/mcp"
}
}
} A local server is a command:
{
"mcpServers": {
"example": {
"command": "npx",
"args": ["-y", "package-from-the-readme"]
}
}
} Save the file, enable the server in MCP settings, and complete the OAuth prompt if one opens. Cursor asks before a tool runs unless you have changed that approval mode. Keep approval on for any server that can write, pay, or delete. Put tokens in environment variables referenced from the config, not in a committed .cursor/mcp.json. Hosted cloud agents do not read the MCP file in your home directory. They use the servers configured for that agent.
Stripe’s own docs use this Cursor shape for their hosted server. The filled-in version is in the Stripe MCP setup guide.
Install in ChatGPT
ChatGPT connects to remote MCP servers. It does not launch a stdio process from the browser. If the vendor publishes a ChatGPT plugin or app, install that and approve OAuth in the browser window. That is how Stripe documents ChatGPT: install the official plugin, then grant access to the Stripe account you intend the assistant to use.
The ChatGPT desktop app, Codex CLI, and Codex IDE extension share MCP configuration on the same computer. Stripe documents adding their server for that shared config with:
codex mcp add stripe --url https://mcp.stripe.com For a different remote server, use the same command with that server’s name and URL, then sign in. A local server still belongs in Cursor, Claude Desktop, or Claude Code. If a listing only documents stdio, do not expect the ChatGPT website to run it.
Permissions and trust checks
A successful install is not a reason to leave every tool enabled. Before you approve the prompt, read what the server can reach.
- Prefer the vendor’s hosted URL or a repository you can open. A directory listing is a pointer, not a guarantee. The hub separates official listings when the publisher is verified.
- Local servers inherit your user. A filesystem or shell server can read secrets in the working directory. Point it at one project, not your home folder, unless that is the point.
- Remote servers receive whatever the OAuth grant or API key allows. Approve a sandbox or a restricted key first. Full-access secret keys do not belong in a chat client.
- Leave per-tool approval on for anything that writes, spends money, sends messages, or deletes data. Read-only search can stay more permissive.
- OAuth sessions expire. If a server that worked last month suddenly returns unauthorized, reconnect instead of pasting a new key into the transcript.
- Company-managed machines often block unfamiliar MCP hosts. If the client never opens a login window, ask whether the URL is allowed before you rewrite the config.
Troubleshooting
- The server never appears. The JSON does not parse, the client was not fully restarted, or the command is not on
PATH. Cursor’s MCP logs and Claude Code’s/mcpstatus are the first place to look. - A URL copied from Cursor fails in Claude Code. Add
"type": "http"in Claude Code’s JSON, or useclaude mcp add --transport http. - OAuth opens and then the tools stay missing. The grant was for the wrong account, an admin has disabled MCP for the workspace, or the refresh session expired. Revoke the old session at the provider and connect again.
- Tools are listed but every call fails. The token cannot perform that action, you are in test data while asking about live data, or the server wants a header the client did not send. Check the provider’s docs before widening the key.
- A stdio server flashes and exits. Run the same command in a terminal. Missing Node, Python, or an environment variable usually prints the real error there. The client log only shows that the process ended.
Find a server for the task
Once the client is ready, pick a server by the system you want the assistant to use. Browse all MCP servers, or start in a category: developer tools, commerce and finance, cloud and DevOps, or databases. Agent skills, which teach a coding agent a workflow instead of connecting an API, are listed separately on MCP Skill Hub.
Common questions
What is the difference between a local and a remote MCP server?
A local server is a program your client starts on your machine, usually over stdio. A remote server is already running at an HTTPS URL and your client connects to it, often with OAuth. Use local servers for files and tools on that computer. Use a remote server for a hosted product account.
Can the ChatGPT website run a local MCP server?
No. A local stdio server has to be launched by a desktop or terminal client such as Cursor, Claude Desktop, or Claude Code. ChatGPT can connect to remote servers that publish a plugin or that you add in a client which shares MCP configuration, such as the ChatGPT desktop app and Codex.
Do I need an API key to install an MCP server?
Only if that server requires one. Many official hosted servers use OAuth so you never paste a key into a config file. If a server does need a token, put it in an environment variable or the client’s secret field, and prefer a restricted key over a full-access secret.
Is an agent skill the same as an MCP server?
No. An MCP server exposes tools, resources, or prompts over the protocol. An agent skill is a reusable instruction pack for a coding agent. Browse servers and skills in separate directories.