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
1claude 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
1curl 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.

ToolWhat it doesKey
chatA conversation to any chat model, with a system prompt, images for the models that see them, and web search.Bearer
compareThe same question to 2 to 5 models at once: every answer side by side with its cost and time.Bearer
searchOne web search: titles, URLs, snippets and dates, up to 10 results.Bearer
list_modelsEvery 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.

ModelInput / MOutput / MList input / MList output / M
Grok 4.6grok-4.6$0.60$1.80$2.00$6.00
Grok 4.5grok-4.5$0.60$1.80$2.00$6.00
Grok 4.3grok-4.3$1.875$3.75$1.25$2.50

USD per million tokens. compare bills each model it asks at its own rate.

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.

Open the console

A key in under a minute

Get a key

Or email hello@relayswitch.io

Every model as a tool in your AI

From $10 by card or in USDT, USDC, BTC, ETH, SOL. Prepaid, no subscription, no KYC.

Join on Telegram