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

> Connect xAI (Grok API docs and x.ai news) to Grok Bot with the Firecrawl plugin. 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 Grok Bot, add the Firecrawl plugin to Grok Bot, 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 every Bot in your Grok Bot account, and you set it up once.

Grok Bot 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).

Grok Bot is xAI's agent app. Plugins give your Bots outside tools, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

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

### 1. Add the Firecrawl plugin

In Grok Bot, open Connect apps from the sidebar, find Firecrawl and select Connect. You can also open [Firecrawl's plugin listing](https://x.ai/bot/plugin/789) and select Add to Grok Bot, which opens the desktop app to finish the install.

[Add to Grok Bot](https://x.ai/bot/plugin/789)

![Grok Bot's Connect Apps window with Firecrawl and its Connect button](https://www.firecrawl.dev/images/alexandria/connect/grok-bot/connect-apps.webp)

### 2. Connect your Firecrawl account

Grok Bot opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and select Authorize. The screen names Cursor, because the plugin is published on the Cursor Marketplace. No account yet? You can create one for free in the same flow.

![Firecrawl's consent screen for the Grok Bot plugin, with the team picker and Authorize button](https://www.firecrawl.dev/images/alexandria/connect/grok-bot/authorize.webp)

### 3. Ask your Bot for the data

In a chat, ask in plain language and mention xAI (Grok API docs and x.ai news) or Firecrawl Alexandria. To make sure the Bot uses Firecrawl, type @ and choose Firecrawl first. 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 Grok Bot 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.

Grok Bot 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 Grok Bot?

Name xAI (Grok API docs and x.ai news) or Firecrawl Alexandria in the prompt so Grok Bot 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.
- 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.
- 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.
- 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.

### 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 my Bot use xAI (Grok API docs and x.ai news)?

Attach Firecrawl to the chat with @ before you ask, and name xAI (Grok API docs and x.ai news) or Firecrawl Alexandria in the prompt.

### Add to Grok Bot doesn't open the app. What should I do?

Install the Grok Bot desktop app first, or open Connect apps in Grok Bot and search for Firecrawl.

## 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 Claude](https://alexandria.firecrawl.dev/providers/x-ai/connect/claude)
- [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 Muse](https://alexandria.firecrawl.dev/providers/x-ai/connect/muse)

### Other data providers you can connect to Grok Bot

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

Full setup guide: [Firecrawl in Grok Bot](https://www.firecrawl.dev/integrations/grok-bot)

## 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 plugin brings those tools into Grok Bot, 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. Grok Bot finds the capability that fits your question and calls it through the Firecrawl plugin, 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 Grok Bot?

Grok Bot 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 plugin 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 Grok Bot unlock?

Grok Bot 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, Grok Bot 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 Grok Bot?

No. Grok Bot 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 Grok Bot?

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 Grok Bot, and finding the right capability is free.

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

Yes. The same Firecrawl plugin 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, Claude, Cursor, 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.
