# How to connect xAI (Grok API docs and x.ai news) to Claude

> Connect xAI (Grok API docs and x.ai news) to Claude with the Firecrawl connector. Use xAI (Grok API docs and x.ai news) as an MCP tool via Firecrawl Alexandria.

To connect xAI (Grok API docs and x.ai news) to Claude, add the Firecrawl connector to Claude, sign in on a Firecrawl team with Alexandria enabled, and ask for xAI (Grok API docs and x.ai news) data in plain language. The connection works in Claude on the web, Claude Desktop and Cowork, and you set it up once.

Claude uses xAI (Grok API docs and x.ai news) as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for xAI (Grok API docs and x.ai news).

Claude is Anthropic's AI assistant. Connectors give it tools from other services, and the Firecrawl connector adds web search, scraping and every data provider in Firecrawl Alexandria.

## How do I connect xAI (Grok API docs and x.ai news) to Claude?

### 1. Add the Firecrawl connector

Open the [Firecrawl connector in Claude's connector directory](https://claude.ai/directory/connectors/firecrawl) and select Connect to Claude. In Claude Desktop you can also go to Customize, then Connectors, and search for Firecrawl.

[Add to Claude](https://claude.ai/directory/connectors/firecrawl)

![The Firecrawl connector in Claude's directory with the Connect to Claude button](https://www.firecrawl.dev/images/alexandria/connect/claude/add-connector.webp)

### 2. Connect your Firecrawl account

Claude opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

![Firecrawl's consent screen listing what claude.ai can do, including running Alexandria data providers](https://www.firecrawl.dev/images/alexandria/connect/claude/authorize.webp)

### 3. Turn on Firecrawl in a chat

In a new conversation, open the + menu, go to Connectors and switch on Firecrawl.

![Claude's + menu open on Connectors with the Firecrawl switch turned on](https://www.firecrawl.dev/images/alexandria/connect/claude/turn-on.webp)

### 4. Ask Claude for the data

Ask in plain language and mention xAI (Grok API docs and x.ai news) or Firecrawl Alexandria. Claude finds the xAI (Grok API docs and x.ai news) capability that fits, checks its inputs and runs it. For example:

```text
Use Firecrawl to run xAI (Grok API docs and x.ai news)'s Consumer plans capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can Claude do with xAI (Grok API docs and x.ai news)?

xAI (SpaceXSI) on two hosts. docs.x.ai, the Grok API documentation: search the docs, list every page by section, read any page or one section as clean Markdown, the model lineup with prices, one model's capabilities, the full pricing page (tokens, tools, batch, storage) and dated release notes, from the docs' Markdown twins and xAI's public docs MCP server. x.ai: Grok and X subscription plans, the Grok Bot and Grok Build changelogs, the Grok Bot marketplace and plugin pages, the news index, any news post as Markdown, and other site pages such as Grok Bot and Colossus. No API key.

Claude can run any of xAI (Grok API docs and x.ai news)'s 14 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Consumer plans**: Grok and X subscription plans from https://x.ai/pricing: each plan (Free, Plus, Premium, Super, Ultra, Teams, Enterprise) with its price, monthly USD and signup link, every row of the feature comparison table grouped by section (usage, Grok, Cursor, X, team management) with each plan's value, the pricing fine print and the FAQ. These are consumer and team subscriptions; API prices are in model_pricing. Costs 5 Firecrawl credits per call.
- **Get bot listing**: One Grok Bot marketplace bot (https://x.ai/bot/marketplace/bots/{slug}) or plugin share page (https://x.ai/bot/plugin/{id}): name, author, description, the bot's profile (its job, rules and working state as published), import or add link, the Cursor marketplace link and terms for plugins, plus canonical URL and robots directives. Costs 5 Firecrawl credits per call.
- **Get model**: One model's page on docs.x.ai (`/developers/models/{model}`): modalities, context window, aliases, regions, every labelled fact (capabilities such as function calling, structured outputs and reasoning efforts, Batch API support, limits) and its pricing and rate-limit tables. Works for text, Imagine and voice models, e.g. `grok-4.7`, `grok-imagine-image`, `speech-to-speech`. Costs 5 Firecrawl credits per call.
- **Get news post**: One x.ai news post (https://x.ai/news/{slug}) as Markdown: title, subtitle, description, publication date, canonical URL, social image, an outline of its headings and the body (headings, paragraphs, lists, tables, quotes and figure captions; interactive charts are represented by their captions). Accepts a slug or a post URL; an unknown post is `not_found`. Costs 5 Firecrawl credits per call.
- **Get page**: One docs.x.ai page as clean Markdown from its official `.md` twin: path, URL, title, docs category, lead description, an outline of every heading (level, text, anchor) and the content. Pass `section` (heading text or anchor) to get only that heading's subtree; an unknown section or page is `not_found`. Accepts a docs path (`developers/models`) or a docs.x.ai URL, including legacy `/docs/...` URLs, which redirect to their current page. Costs 5 Firecrawl credits per call.
- **Get site page**: Any other x.ai page (Grok Bot, Bot guides, company, Colossus, products, API, legal) as Markdown: final URL, canonical URL, title, meta description, robots directives, social image, every body link with its text and rel attribute, an outline and the readable content (site header, navigation and footer removed). Accepts a path (`/colossus`) or an x.ai URL; `/tools/` is disallowed by robots.txt and refused; an unknown page is `not_found`. Costs 5 Firecrawl credits per call.
- **List changelog**: Release changelog for Grok Bot (https://x.ai/changelog/bot) or Grok Build (https://x.ai/changelog/build, also x.ai/build/changelog), newest first, from the changelog's RSS feed: version, title, date, summary and each change with its category. Filter with `since` (YYYY-MM-DD) and `q` (text in the title, summary or a change); page with `limit` and `offset`. Costs 5 Firecrawl credits per call.
- **List marketplace bots**: Bots listed on the Grok Bot marketplace (https://x.ai/bot/marketplace) or one of its categories (`engineering`, `sales`, `marketing`, `design`, `personal`, `recruiting-people`, `product`, `operations`, `from-grok-bot-team`): name, author, description, sections, page URL and import link, plus every category. Filter with `q` (name, author or description). Costs 5 Firecrawl credits per call.
- **List models**: The Grok model lineup from docs.x.ai's models page (`/developers/models.md`): every text model with context window and per-million-token input, cached input and output prices for each long-context tier; Imagine image and video prices; Voice API prices; the recommended model per use case (code, chat, images, videos, voice) with its model page; and the stated knowledge cutoff. Costs 5 Firecrawl credits per call.
- **List news**: Posts from the x.ai news index (https://x.ai/news), newest first: slug, URL, title, summary, publication date, category (featured cards only), whether the post is featured and its card image. The index lists every post on one page. Filter with `q` (title or summary text) and `since` (YYYY-MM-DD); page with `limit` and `offset`. Costs 5 Firecrawl credits per call.
- **List pages**: Every page of the docs.x.ai index (https://docs.x.ai/llms.txt) grouped by section (API, API Reference, Grok Build, Grok Bot, Grok, The X Subscription and more): title, breadcrumb, path and URL. Filter with `section` (a section name), `prefix` (a docs path such as `developers/model-capabilities` or `grok-bot`) or `url` (a docs.x.ai URL used as the prefix), and `q` (text in the title, breadcrumb, path or description). Costs 5 Firecrawl credits per call.
- **Model pricing**: Official Grok API pricing from docs.x.ai's pricing page (`/developers/pricing.md`): text model token prices per long-context tier, Imagine and Voice prices, server-side tool invocation costs per 1,000 calls (web search, X search, code execution and others, with their API tool names), Batch API discounts and the models they cover, and every other pricing table on the page (priority processing, regional endpoint, Grok 4.7 Fast, file and collection storage) as heading, headers and rows. Costs 5 Firecrawl credits per call.
- **Release notes**: Grok API release notes from docs.x.ai (`/developers/release-notes.md`), newest first: one entry per announcement with its month (the page gives no day), title and Markdown content. Filter with `since` (YYYY-MM, inclusive) and `q` (text in the title or content); page with `limit` and `offset` (`next_offset` continues). Costs 5 Firecrawl credits per call.
- **Search docs**: Search the official xAI (SpaceXSI) Grok API documentation on docs.x.ai through the docs' own search, the `search_docs` tool of xAI's public docs MCP server (https://docs.x.ai/api/mcp). Returns matching pages in the vendor's order with path, URL, title and category when the excerpt starts at the page top, and the excerpt around the match. Costs 5 Firecrawl credits per call.

## What should I ask Claude?

Name xAI (Grok API docs and x.ai news) or Firecrawl Alexandria in the prompt so Claude reaches for it.

- [Use Firecrawl to run xAI (Grok API docs and x.ai news)'s Consumer plans capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://claude.ai/new?q=Use%20Firecrawl%20to%20run%20xAI%20(Grok%20API%20docs%20and%20x.ai%20news)'s%20Consumer%20plans%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run xAI (Grok API docs and x.ai news)'s Get bot listing capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://claude.ai/new?q=Use%20Firecrawl%20to%20run%20xAI%20(Grok%20API%20docs%20and%20x.ai%20news)'s%20Get%20bot%20listing%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run xAI (Grok API docs and x.ai news)'s Get model capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://claude.ai/new?q=Use%20Firecrawl%20to%20run%20xAI%20(Grok%20API%20docs%20and%20x.ai%20news)'s%20Get%20model%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run xAI (Grok API docs and x.ai news)'s Get news post capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://claude.ai/new?q=Use%20Firecrawl%20to%20run%20xAI%20(Grok%20API%20docs%20and%20x.ai%20news)'s%20Get%20news%20post%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `x-ai` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why doesn't Claude use xAI (Grok API docs and x.ai news)?

The connector has to be on in each conversation. Open the + menu, go to Connectors and check that Firecrawl is switched on, then ask again and name xAI (Grok API docs and x.ai news) or Firecrawl Alexandria in the prompt.

### Claude says it can't reach the Firecrawl server. What should I do?

Open Customize, then Connectors, disconnect Firecrawl and connect it again. On a Team or Enterprise plan, an owner has to allow the connector before members can add it.

### Why does Claude say xAI (Grok API docs and x.ai news) isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reconnect Firecrawl and pick that team on the consent screen.

## Use xAI (Grok API docs and x.ai news) in other AI apps

- [xAI (Grok API docs and x.ai news) in ChatGPT](https://alexandria.firecrawl.dev/providers/x-ai/connect/chatgpt)
- [xAI (Grok API docs and x.ai news) in Cursor](https://alexandria.firecrawl.dev/providers/x-ai/connect/cursor)
- [xAI (Grok API docs and x.ai news) in Grok Bot](https://alexandria.firecrawl.dev/providers/x-ai/connect/grok-bot)
- [xAI (Grok API docs and x.ai news) in Muse](https://alexandria.firecrawl.dev/providers/x-ai/connect/muse)

### Other data providers you can connect to Claude

- [How to connect ChatGPT and Codex docs to Claude](https://alexandria.firecrawl.dev/providers/learn-chatgpt-com/connect/claude)
- [How to connect Anthropic to Claude](https://alexandria.firecrawl.dev/providers/anthropic-com/connect/claude)
- [How to connect Artificial Analysis to Claude](https://alexandria.firecrawl.dev/providers/artificialanalysis-ai/connect/claude)
- [How to connect Claude (claude.com) to Claude](https://alexandria.firecrawl.dev/providers/claude-com/connect/claude)

Full setup guide: [Firecrawl in Claude](https://www.firecrawl.dev/integrations/claude)

## Frequently asked questions

### What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl connector brings those tools into Claude, along with every data provider in Firecrawl Alexandria.

### What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, xAI (Grok API docs and x.ai news) among them. Each provider returns structured data through documented capabilities. Claude finds the capability that fits your question and calls it through the Firecrawl connector, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

### Is there a xAI (Grok API docs and x.ai news) MCP server for Claude?

Claude reaches xAI (Grok API docs and x.ai news) through Firecrawl's hosted MCP server, which serves xAI (Grok API docs and x.ai news) and every other Alexandria provider as tools. Add the Firecrawl connector once and you don't install or host a separate MCP server for xAI (Grok API docs and x.ai news).

### What does connecting xAI (Grok API docs and x.ai news) to Claude unlock?

Claude can run all 14 of xAI (Grok API docs and x.ai news)'s capabilities, including Consumer plans, Get bot listing and Get model, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Claude can combine xAI (Grok API docs and x.ai news) with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own xAI (Grok API docs and x.ai news) account or API key to use it in Claude?

No. Claude calls xAI (Grok API docs and x.ai news) through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate xAI (Grok API docs and x.ai news) account or API key.

### How much does it cost to use xAI (Grok API docs and x.ai news) in Claude?

Each xAI (Grok API docs and x.ai news) call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Claude, and finding the right capability is free.

### Can Claude use other providers besides xAI (Grok API docs and x.ai news)?

Yes. The same Firecrawl connector reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

### Can I use xAI (Grok API docs and x.ai news) in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same xAI (Grok API docs and x.ai news) capabilities are available there. Keyless connections don't include Alexandria.
