Skip to content

Connect an AI client

An AI client connects to one address: the Cyproxy MCP endpoint. On your computer, the address is http://localhost:8787/mcp.

AI clients talk to Cyproxy only with the Model Context Protocol (MCP): over http at /mcp, or through the bridge, which is MCP over standard input and output.

The Connect page in the console shows the correct block for each client, with an access token in it.

The Connect page

Access tokens and sign-in

A client can connect in two ways:

Method How it works
Access token You make a token on the Connect page. The client sends it in the Authorization: Bearer header. Cyproxy shows a token one time only. A token expires after 30, 90 or 365 days.
Sign-in (OAuth) The client opens the Cyproxy console in your browser. You approve the client. The client appears below Connected apps.

On localhost, use an access token. Some clients sign in only to https addresses.

Make one token for each AI client. Then you can revoke one client and keep the others, and the audit log shows which client made a call.

Claude Code

claude mcp add --scope user --transport http cyproxy http://localhost:8787/mcp \
  --header "Authorization: Bearer <your access token>"

--scope user makes Cyproxy available in all your projects. Start a new session. Run /mcp to make sure that Cyproxy is connected.

Claude Desktop

Claude Desktop starts local MCP servers as programs. Cyproxy includes a small bridge program for this. The bridge passes MCP messages between Claude Desktop and Cyproxy. Cyproxy applies all rules, as for any other client.

Use this method when Cyproxy runs in Docker on the same computer.

  1. In Claude Desktop, open Settings → Developer → Edit Config. Open claude_desktop_config.json.
  2. Add this block. Keep your other servers.
{
  "mcpServers": {
    "cyproxy": {
      "command": "/usr/local/bin/docker",
      "args": ["exec", "-i", "-e", "CYPROXY_TOKEN", "cyproxy",
               "/app/.venv/bin/python", "-m", "cyproxy.bridge"],
      "env": { "CYPROXY_TOKEN": "<your access token>" }
    }
  }
}
  1. Quit Claude Desktop and open it again.

On Windows and Linux, use docker as the command. The container name must be cyproxy.

Cursor

Add this to ~/.cursor/mcp.json, then restart Cursor:

{
  "mcpServers": {
    "cyproxy": {
      "url": "http://localhost:8787/mcp",
      "headers": { "Authorization": "Bearer <your access token>" }
    }
  }
}

VS Code

Add this to .vscode/mcp.json in your workspace. Then run Developer: Reload Window and start the server from the MCP view.

{
  "servers": {
    "cyproxy": {
      "type": "http",
      "url": "http://localhost:8787/mcp",
      "headers": { "Authorization": "Bearer <your access token>" }
    }
  }
}

Windsurf, Codex and Gemini CLI

Client File Key for the address
Windsurf ~/.codeium/windsurf/mcp_config.json serverUrl in mcpServers.cyproxy
Codex ~/.codex/config.toml url in [mcp_servers.cyproxy], with bearer_token_env_var
Gemini CLI ~/.gemini/settings.json httpUrl in mcpServers.cyproxy

The Connect page shows the complete block for each client.

Claude.ai and other cloud services

A cloud service connects from the internet. It cannot connect to localhost.

A custom connector in Claude is a cloud connection, also when you add it in the Claude desktop app: the servers of Anthropic connect to Cyproxy, not your computer.

  1. Run Cyproxy on a server with https.
  2. In Claude, open Settings → Connectors → Add custom connector.
  3. Enter the name Cyproxy and the address from the Connect page.
  4. Connect, and approve the client in the Cyproxy console.

If a firewall protects your server

If your server accepts connections only from some addresses, a cloud service cannot connect. Claude then shows "Couldn't reach Cyproxy". You have two options:

  • Let the cloud service in. Allow its addresses on port 443 in your firewall. Anthropic publishes the addresses that Claude connects from: see IP addresses (the outbound addresses). You must still sign in to Cyproxy and approve the client.
  • Use a client that connects from your computer: Claude Code, the bridge for Claude Desktop, Cursor or VS Code. These clients reach Cyproxy from inside your network or through your VPN.

Any other MCP client

Use the streamable HTTP transport. Set the address to /mcp. Send the header Authorization: Bearer <access token>.

What the client sees

Cyproxy uses discovery mode. The client sees a small number of tools, and it searches for the tools that it needs:

Tool Function
search_tools Finds tools by a search text.
list_catalog Lists the integrations that are connected.
run_tool Runs a read tool.
run_write_tool Runs a write tool. The call can wait for approval.
read_result Reads more of a large result.

The client also sees the tools for skills and collections.

Disconnect a client

On the Connect page, select Revoke for a token, or Disconnect for a connected app. The client loses access immediately.