Resources / MCP

Connect Claude, ChatGPT, Gemini, Grok and Cursor to an MCP server

Copy-paste setup for connecting the most popular AI clients and APIs to a remote MCP server, including API-key authentication.

Every major AI client can use remote MCP servers now, but each one is configured differently. Here's the short version for each. Replace https://example.fn.wispfn.com/_mcp with your server's URL.

Claude Code

claude mcp add --transport http example https://example.fn.wispfn.com/_mcp

Add --header "Authorization: Bearer <key>" if the server needs an API key, then check with /mcp.

Claude (web and desktop)

Open Settings → Connectors → Add custom connector, give it a name and paste the URL. Custom connectors connect from Claude's cloud, so the URL must be public. They don't send custom headers, so use OAuth or a server without API keys.

ChatGPT

Turn on Developer mode under Settings → Apps & Connectors → Advanced settings, then Create a connector with the URL. Availability and write actions depend on your plan.

OpenAI and xAI (Grok) APIs

Both accept a remote MCP server as a tool in the Responses API:

tools=[{"type": "mcp", "server_label": "example", "server_url": "https://example.fn.wispfn.com/_mcp", "require_approval": "never"}]

For xAI, point the OpenAI client at https://api.x.ai/v1.

Gemini CLI

Add to ~/.gemini/settings.json — note httpUrl, not url:

{ "mcpServers": { "example": { "httpUrl": "https://example.fn.wispfn.com/_mcp" } } }

Cursor and VS Code

Cursor reads ~/.cursor/mcp.json ({"mcpServers": {"example": {"url": "…"}}}); VS Code reads .vscode/mcp.json ({"servers": {"example": {"type": "http", "url": "…"}}}). Both accept a headers object for API keys.

Skip the guesswork

In Wisp, the Connect button on every project shows these snippets with your real URL — and the API-key header already filled in when your project requires one.

Build it with Wisp — describe an API, get it live.

Related