# Connect your agent to Sonde

Sonde is an MCP server at `https://sonde.trade/mcp` (streamable HTTP, stateless JSON-RPC 2.0). Reads work without a key
inside the free quota (300 units a day per IP). A key is free: sign one message with your wallet at
https://sonde.trade/connect and it is shown once. Send it as `Authorization: Bearer <key>`.

## Claude Code

```sh
claude mcp add --transport http sonde https://sonde.trade/mcp
# with a key
claude mcp add --transport http sonde https://sonde.trade/mcp --header "Authorization: Bearer $SONDE_KEY"
```

Then ask: "ape check 0x… with Sonde", or run the prompt `/mcp__sonde__ape_check`.

## Codex

```sh
codex mcp add sonde --url https://sonde.trade/mcp
```

Or in `~/.codex/config.toml`:

```toml
[mcp_servers.sonde]
url = "https://sonde.trade/mcp"
# optional: read the key from an environment variable
bearer_token_env_var = "SONDE_KEY"
```

## Cursor

`~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project):

```json
{
  "mcpServers": {
    "sonde": {
      "url": "https://sonde.trade/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}
```

Drop the `headers` line to use the free quota.

## VS Code

`.vscode/mcp.json`:

```json
{ "servers": { "sonde": { "type": "http", "url": "https://sonde.trade/mcp" } } }
```

## Windsurf

`~/.codeium/windsurf/mcp_config.json`:

```json
{ "mcpServers": { "sonde": { "serverUrl": "https://sonde.trade/mcp" } } }
```

## Claude Desktop and claude.ai

Settings, Connectors, Add custom connector, URL `https://sonde.trade/mcp`.

## Any other client

Any MCP client that speaks streamable HTTP works with the URL above. Without MCP, every tool is also plain HTTP:

```sh
curl -s https://sonde.trade/api/v1/rate/0xTOKEN
curl -s -X POST https://sonde.trade/api/v1/preflight -H 'content-type: application/json' \
  -d '{"token":"0xTOKEN","action":"buy","sizePctOfLiquidity":1,"rules":{"minScore":60}}'
curl -s -X POST https://sonde.trade/api/v1/tools/perp_preflight -H 'content-type: application/json' \
  -d '{"coin":"BTC","side":"long","leverage":5}'
```

A tiny ESM client: `import { sonde } from 'https://sonde.trade/sdk/sonde.js'`.

## What the agent should do

- Call `preflight` before any buy, sell or approval and respect `NO`.
- Call `perp_preflight` before opening a Hyperliquid perp.
- `prepare_swap`, `prepare_revoke` and `prepare_credit_deposit` return unsigned transactions for Elysium (chain 99901).
  The user signs them in their own wallet. Sonde never signs anything.
- `get_proof` and `verify_rating` check that a rating is exactly the one Sonde sealed on Elysium.

## Tools

rate_token, preflight, explain_rating, compare_tokens, token_history, whats_changed, new_launches, top_tokens,
bundle_check, holder_map, lp_status, contract_read, wallet_scan, wallet_approvals, trace_funding, hl_account,
perp_preflight, prepare_revoke, prepare_swap, simulate_tx, exit_plan, prepare_credit_deposit, get_proof,
verify_rating, track_record, watch_token, credits, status.

Prompts: ape_check, morning_brief, revoke_cleanup, perp_check.

The full list with descriptions is at https://sonde.trade/llms.txt and https://sonde.trade/.well-known/mcp.json.
