MCP / Model / Grok MCP
Grok in Claude Code, Cursor and Codex, no xAI account
chat sends a task to any Grok id; compare asks Grok and other models the same question at once. web_search on chat lets Grok answer with live results. Priced per token from one prepaid balance.
Connect
Add the server to your client
The server is https://api.relayswitch.io/mcp, Streamable HTTP, with your key sent as a Bearer header. Keys start sk-relay-.
Claude Code
bash
1
claude mcp add --transport http relayswitch https://api.relayswitch.io/mcp \2
--header "Authorization: Bearer $RELAYSWITCH_KEY"Then /mcp in Claude Code lists the server and its tools.
Cursor
json
1
// .cursor/mcp.json (this project) or ~/.cursor/mcp.json (every project)2
{3
"mcpServers": {4
"relayswitch": {5
"url": "https://api.relayswitch.io/mcp",6
"headers": { "Authorization": "Bearer ${env:RELAYSWITCH_KEY}" }7
}8
}9
}Check it from a terminal
bash
1
curl https://api.relayswitch.io/mcp \2
-H "Authorization: Bearer $RELAYSWITCH_KEY" \3
-H "Content-Type: application/json" \4
-H "Accept: application/json, text/event-stream" \5
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'Tools
What the client can call
The tools this page is about. The server lists 15 in all; the rest are on the MCP server page.
| Tool | What it does | Key |
|---|---|---|
chat | A conversation to any chat model, with a system prompt, images for the models that see them, and web search. | Bearer |
compare | The same question to 2 to 5 models at once: every answer side by side with its cost and time. | Bearer |
search | One web search: titles, URLs, snippets and dates, up to 10 results. | Bearer |
list_models | Every chat, embedding, rerank and transcription model with its type, the tool that runs it and its price. | none |
Prices
What each call costs, read live
From the catalog at render. The developer’s list price is shown where the catalog has it.
Try it
What to ask once it is connected
Plain requests; the client picks the tool.
- Ask grok-4.6 with web_search what changed in the last release of this library.
- Compare grok-4.6 and gpt-5.2 on this refactor plan.
FAQs
Grok MCP: questions
Setup, models and billing.
Every model as a tool in your AI
From $10 by card or in USDT, USDC, BTC, ETH, SOL. Prepaid, no subscription, no KYC.