Connecting clients
Every client points at the same URL, https://app.klang.ai/api/mcp (or your dedicated URL from Settings → Developers → MCP). What differs is how you authenticate. The guides below cover the common clients.
Pick your client
Jump straight to setup for your tool — each guide is a couple of steps.
Two ways to authenticate
Klang's MCP server accepts either method on the same endpoint. Pick whichever the client supports best:
- OAuth sign-in. The client opens a browser on first use, you approve a consent screen, and it stores and refreshes tokens on its own. Nothing to paste. This is the smoothest path where the client implements it well: Claude, ChatGPT, and Claude Code all do.
- API key. You create an
sk_key in Settings → Developers → API keys and put it in anAuthorization: Bearerheader. Use this for clients that can't run the OAuth flow (Vibe) or don't drive it reliably yet (Cursor's current releases). The same key works on the REST API.
Claude (web and desktop)
Add Klang as a custom connector and it works across both Claude.ai and the Claude desktop app. Custom connectors are available on the Free, Pro, Max, Team, and Enterprise plans (Free is limited to one). Anthropic's custom connector guide is the canonical reference; the short version:
- On Pro or Max, open Settings → Connectors, click +, and choose Add custom connector.
- Paste the server URL
https://app.klang.ai/api/mcpand click Add. Leave Advanced settings empty — Klang runs the OAuth flow itself, so no client ID or secret is needed. - Click Connect and sign in to Klang when the browser prompt appears.
- In a chat, open the + menu in the composer, choose Connectors, and toggle Klang on for that conversation.
Team and Enterprise: an owner first adds the connector under Organization settings → Connectors (Add → hover Custom → Web), then each member enables it from their own Settings → Connectors with Connect.
Claude Desktop config file
As an alternative on desktop, add the server to claude_desktop_config.json (Claude Desktop → Settings → Developer → Edit config):
Restart Claude Desktop. The first Klang tool call prompts you to sign in.
ChatGPT
ChatGPT connects to remote MCP servers through developer mode, available on its paid plans. OpenAI's connect to ChatGPT guide is the canonical reference; to add Klang:
- Turn on developer mode: open Settings → Apps & Connectors → Advanced settings and enable Developer mode. A Create button then appears under Settings → Apps & Connectors.
- Go to Settings → Connectors → Create and fill in the required fields: Connector name (
Klang), a short Description, and the Connector URLhttps://app.klang.ai/api/mcp. - Click Create. ChatGPT opens the Klang sign-in so you can approve access — it uses OAuth, so there's no key to paste.
- In a new chat, click + in the composer, choose More, and pick Klang from the list.
ChatGPT custom connectors authenticate with OAuth only — there's no field for a static Authorization header, so use the sign-in flow rather than an API key. If you later change which tools Klang exposes, refresh the cached list from Settings → Connectors → select Klang → Refresh.
Claude Code
Add the server from the terminal. Claude Code runs the OAuth sign-in for you:
Run /mcp inside Claude Code to trigger the sign-in and check the connection. Add --scope project to share the server with a repo via .mcp.json.
With an API key
To skip the browser flow (handy for headless or CI use), pass a key in a header instead:
Cursor
Cursor's current releases don't reliably start the OAuth flow for remote servers, so the dependable setup is an API key. Create one in Settings → Developers → API keys, then add Klang to ~/.cursor/mcp.json (global) or .cursor/mcp.json in a project:
Open Settings → MCP and confirm Klang shows its tools. If you would rather use OAuth, bridge through mcp-remote (see other clients), which runs the sign-in for Cursor.
Vibe
Mistral's Vibe CLI authenticates to remote MCP servers with static headers only, so use an API key. Create one in Settings → Developers → API keys and add a server block to ~/.vibe/config.toml (or ./.vibe/config.toml in a project):
Open the /mcp view to confirm klang lists its tools. Define the server only once: two blocks with the same name make Vibe fail to load it.
Any other client
Klang exposes a standard MCP server over Streamable HTTP (JSON-RPC) at https://app.klang.ai/api/mcp, authenticated with OAuth or a Bearer key. Below is an mcp.json to connect using your API key — if your client supports OAuth, you can remove the headers field:
mcp-remote: npx mcp-remote https://app.klang.ai/api/mcp — it runs the OAuth flow and speaks stdio to the client.