Connect a client

Point Claude, Claude Code, Cursor, VS Code, Windsurf, ChatGPT or any stdio client at the MCP server.

Every client needs one thing: the endpoint.

$MCP_URL = https://<mcp-host>/mcp

There is no account and no key. The MCP page shows the same snippets with the live URL filled in.

Note: > Client settings screens move. These steps were checked against each client's documentation on 2026-10-07.

Claude

Works in Claude on the web and in Claude Desktop.

  1. Open Customize → Connectors.
  2. Click + Add, then Add custom connector.
  3. Name it BCH Intents and paste $MCP_URL.
  4. Click Add.

Claude connects from Anthropic's servers, so the endpoint must be public. A server on localhost does not work here.

Claude Code

claude mcp add --transport http bch-intents $MCP_URL

Add --scope user to have it in every project.

Cursor

Add to .cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project.

{
  "mcpServers": {
    "bch-intents": { "url": "https://<mcp-host>/mcp" }
  }
}

VS Code

{
  "servers": {
    "bch-intents": { "type": "http", "url": "https://<mcp-host>/mcp" }
  }
}

Windsurf

Add to ~/.config/devin/mcp_config.json (on Windows, %APPDATA%\devin\mcp_config.json). Older Windsurf builds read ~/.codeium/windsurf/mcp_config.json.

{
  "mcpServers": {
    "bch-intents": { "serverUrl": "https://<mcp-host>/mcp" }
  }
}

ChatGPT

  1. Open Settings → Apps & Connectors and turn on Developer mode (under Advanced).
  2. Click Create, name it BCH Intents and paste $MCP_URL.
  3. Set authentication to None and save.

Developer mode is on paid plans; in a workspace an admin may have to allow custom connectors. ChatGPT also needs a public endpoint.

Local (stdio)

A client that starts MCP servers as a local process can run the npm package. It needs the URL of a Mesh Server.

Client config

{
  "mcpServers": {
    "bch-intents": {
      "command": "npx",
      "args": ["-y", "@bch-intents/mcp"],
      "env": { "MESH_URL": "https://<your-mesh-server>", "NETWORK": "chipnet" }
    }
  }
}

Claude Code

claude mcp add --env MESH_URL=https://<your-mesh-server> --env NETWORK=chipnet \
  --transport stdio bch-intents -- npx -y @bch-intents/mcp

All settings are in Self-hosting.

Check it works

Ask the agent:

Which networks is BCH Intents up on?

It calls get_protocol_status and answers with the networks, the default one and the protocol totals. Then try a quote:

What would I get right now for 0.01 BCH in PUSD, and by which route?