Skip to content
Quick start

Connect your own client

Use standard MCP over Streamable HTTP or newline-delimited stdio. No Argand account is required for anonymous retrieval.

Hosted MCP endpoint

Streamable HTTP
Server URL text
https://beta.argand.org/api/mcp

No local install needed. Configure your own instance URL to self-host.

HTTP discovery

Use an MCP client library’s Streamable HTTP connector with the endpoint above. The legacy 2025-11-25 protocol remains supported; its initialize/initialized handshake works alongside current request-scoped protocol metadata. This standalone legacy discovery request is also accepted.

HTTP discovery bash
curl --fail-with-body --max-time 40 \
  https://beta.argand.org/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2025-11-25' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Read a native page

resources/read returns application/json source data inside its contents envelope. Preserve integer capture coordinates exactly: ordinary JavaScript JSON parsing can round values above 2^53. Use the Argand TypeScript SDK when you need exact native Search evidence.

resources/read message json
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "resources/read",
  "params": {
    "uri": "argand://search?query=rust&page=1&vertical=web&num_results=10"
  }
}

Local process

Build from an authorized private Forgejo checkout. Use a reviewed signed revision, then cargo install --locked --path services/argand-mcp. Configure an absolute executable path in clients that do not inherit your shell PATH. ARGAND_API_BASE defaults to https://beta.argand.org; set it to your own Argand instance to self-host. Write one JSON-RPC message per line to stdin. Reserve stdout for protocol messages; diagnostics go to stderr. Stop and reap the process when your client closes.

Handle errors visibly

Treat isError tool results and JSON-RPC errors as failures. Respect overload and timeouts instead of silently retrying forever. Do not replace failed native retrieval with invented results.