# How to connect GitHub to Grok Bot

> Connect GitHub to Grok Bot with the Firecrawl plugin. Use GitHub as an MCP tool in Grok Bot via Firecrawl Alexandria, with setup steps and example prompts.

To connect GitHub to Grok Bot, add the Firecrawl plugin to Grok Bot, sign in on a Firecrawl team with Alexandria enabled, and ask for GitHub data in plain language. The connection works in every Bot in your Grok Bot account, and you set it up once.

Grok Bot uses GitHub as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for GitHub.

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 GitHub 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 GitHub or Firecrawl Alexandria. To make sure the Bot uses Firecrawl, type @ and choose Firecrawl first. For example:

```text
Use Firecrawl to answer this: How many stars and forks does firecrawl/firecrawl have and when was it created?
```

## What can Grok Bot do with GitHub?

Public GitHub repositories, releases, issues, labels, contributors and raw file contents, plus the GitHub Advisory Database: reviewed, unreviewed and malware advisories with EPSS, CWEs and credits, and repositories' own security advisories, plus public user and organization profiles (counts, bio, company, location, top repositories and languages) and user search by location, language, followers and repository count. No email or contact data is returned: GitHub's Acceptable Use Policy forbids selling users' personal information.

Grok Bot can run any of GitHub's 15 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Advisory**: One GitHub Advisory Database record by GHSA id, CVE id or github.com/advisories URL: type (reviewed, unreviewed or malware), severity, CVSS v3 and v4, the EPSS exploit probability and percentile, CWE ids with names, every affected package with its vulnerable range, first patched version and vulnerable functions, credits (finder, reporter, remediation developer ...), references, the markdown description, and the GitHub review, NVD publication and withdrawal dates. Adds over osv-dev vuln and nvd-nist-gov cve: EPSS, CWE names, credit roles, the advisory type and vulnerable functions in one record. A CVE shared by several GHSA records returns the reviewed one and lists the rest. An unknown id is not_found. CC BY 4.0, attribute GitHub. Costs 5 Firecrawl credits per call.
- **Contributors**: One page of a repository's contributors ordered by commit count on the default branch, with login, account type and contribution count. Anonymous (email-only) contributors are not listed. GitHub refuses this listing for repositories with very large histories (for example torvalds/linux), which surfaces as an error naming the reason. Costs 5 Firecrawl credits per call.
- **File**: The text of one file in a public GitHub repository at a branch, tag or commit, given as a raw.githubusercontent.com URL, a github.com blob URL, or repo plus path (ref defaults to HEAD, the default branch). One ranged GET to raw.githubusercontent.com, which does not use the REST API's 60/hour quota. Returns at most the first 1 MiB: size_bytes is the full size and truncated marks a cut file, reported as partial. A binary or non-UTF-8 file fails with invalid_input (not_text); a missing file, ref or repository is not_found. Costs 1 Firecrawl credit per call.
- **Issue counts**: Exact issue counts for a repository (pull requests excluded, unlike the repository's open_issues_count): the total for the given state plus one count per requested label, from GitHub's issue search. Makes 1 + labels.length search requests; at most 5 labels per call because GitHub allows 10 keyless searches per minute per IP. Costs 5 Firecrawl credits per call.
- **Issues**: One page of a repository's issues filtered by state and labels (all given labels must match), sorted by created/updated/comments. Pull requests are excluded unless include_pull_requests is true, so a page may hold fewer than per_page records; pull_requests_excluded says how many were dropped. Each record carries title, state, labels, assignees, milestone, comment and reaction counts, body and timestamps. Costs 5 Firecrawl credits per call.
- **Labels**: The labels defined in a repository (name, color, description, whether GitHub-default), one page of up to 100. Use the names with issues and issue_counts. Costs 5 Firecrawl credits per call.
- **Latest release**: The latest published, non-prerelease, non-draft release of a repository with its release notes (Markdown body), tag, publish date, author and downloadable assets. found=false with release=null when the repository exists but has no published release. Costs 5 Firecrawl credits per call.
- **Malware advisories**: Malicious-package advisories from the GitHub Advisory Database (type malware), newest first by default: the package and ecosystem, the malicious version range, CWE-506 style weaknesses, references (often the OpenSSF malicious-packages report) and publication dates. Filter by ecosystem, package names and a publication date range; one cursor page of up to 100. OSV.dev and NVD have no malware browsing, so this is the feed to check a dependency list or watch an ecosystem for newly flagged packages. CC BY 4.0, attribute GitHub. Costs 5 Firecrawl credits per call.
- **Releases**: One page of a repository's releases, newest first, including pre-releases and drafts visible to the public, each with tag, name, notes body, publish date and assets. Paginate with page/per_page; has_next says whether another page exists. Costs 5 Firecrawl credits per call.
- **Repo**: One GitHub repository by owner/name or URL: stars, forks, watchers, open issue+PR count, creation/last-push dates, primary language, topics, license, default branch, homepage and flags (archived, fork, template). One request to GET /repos/{owner}/{name}; an unknown repository is an error. Costs 5 Firecrawl credits per call.
- **Repo advisories**: Published security advisories of one GitHub repository (its Security > Advisories tab) by owner/name or URL, or one of them by GHSA id or github.com/{owner}/{name}/security/advisories/GHSA-... URL: summary, markdown description, severity, CVSS v3/v4, CWEs, affected packages with vulnerable ranges and patched versions (including ecosystems the global database does not cover), credits, publisher and dates. Cursor-paged, newest published first by default. Covers maintainer-published advisories that never reach OSV.dev or the global database. An unknown repository or advisory is not_found. Costs 5 Firecrawl credits per call.
- **Search advisories**: Browse and filter the GitHub Advisory Database: reviewed, unreviewed (NVD-imported) or malware advisories by ecosystem, severity, CVE, CWE ids, affected packages (name or name@version, up to 100), withdrawal, and publication, update or modification date ranges, sorted by publication, update, EPSS percentage or EPSS percentile, ascending or descending. Returns one cursor page (up to 100) of advisories with severity, CVSS, EPSS, CWEs, affected package ranges, vulnerable functions and credits; descriptions come from advisory. Adds over osv-dev (package/version lookups) and nvd-nist-gov (CVE keyword search): ecosystem, severity, CWE and date browsing with EPSS sorting, and the unreviewed and malware corpora. GitHub's EPSS value filters match exact values only, so rank by EPSS with sort instead. CC BY 4.0, attribute GitHub. Costs 5 Firecrawl credits per call.
- **Search repos**: Search public GitHub repositories with GitHub's search syntax (free text plus qualifiers such as language:rust, stars:>1000, topic:llm, org:firecrawl, created:>2025-01-01), sorted by best match, stars, forks, help-wanted issues or last update. Returns one page of repository records with stars, forks and dates; total_count is GitHub's overall match count, capped at 1000 reachable results (page * per_page <= 1000). Keyless search is limited to 10 requests per minute per IP. A user:, org: or repo: qualifier naming an account or repository that does not exist or is not visible fails with not_found; any other query GitHub rejects (bad qualifier value, page beyond 1000 results) fails with invalid_input and GitHub's message. Costs 5 Firecrawl credits per call.
- **Search users**: Search public GitHub users and organizations by free text (matched against login and name only) and qualifiers: location, primary language, follower count, repository count, account creation date and account type, sorted by best match, followers, repositories or join date. Returns one page of logins with profile URLs; call user for a profile. total_count is GitHub's overall match count, capped at 1000 reachable results (page * per_page <= 1000). Searching by email address (an @ in the query or in:email) is refused, following GitHub's Acceptable Use Policy. Keyless search is limited to 10 requests per minute per IP; a qualifier value GitHub rejects fails with invalid_input and GitHub's message. Costs 5 Firecrawl credits per call.
- **User**: One public GitHub user or organization profile by login or profile URL: name, bio, company, location, blog URL, hireable flag, public repository, gist, follower and following counts, account creation date, plus its top non-fork repositories by stars and a language histogram (top_repos=0 skips them). One request to GET /users/{login} and, when top_repos > 0, one to GET /users/{login}/repos (the 100 most recently pushed repositories; an account with more is reported partial). Email addresses and contact handles are never returned and are scrubbed from free-text fields, following GitHub's Acceptable Use Policy. An unknown login fails with not_found. Shares GitHub's keyless 60 requests/hour per-IP quota. Costs 5 Firecrawl credits per call.

## What should I ask Grok Bot?

Name GitHub or Firecrawl Alexandria in the prompt so Grok Bot reaches for it.

- Use Firecrawl to answer this: How many stars and forks does firecrawl/firecrawl have and when was it created?
- Use Firecrawl to answer this: What are the latest published release notes for denoland/deno, including its tag and publication date?
- Use Firecrawl to answer this: How many open bug-labelled issues does microsoft/TypeScript have, excluding pull requests?
- Use Firecrawl to find the five most-starred public Rust CLI repositories and list the top five contributors by commit count for each.

### For agents

Start with the `github-com` 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 GitHub?

Attach Firecrawl to the chat with @ before you ask, and name GitHub 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 GitHub in other AI apps

- [GitHub in ChatGPT](https://alexandria.firecrawl.dev/providers/github-com/connect/chatgpt)
- [GitHub in Claude](https://alexandria.firecrawl.dev/providers/github-com/connect/claude)
- [GitHub in Cursor](https://alexandria.firecrawl.dev/providers/github-com/connect/cursor)
- [GitHub in Muse](https://alexandria.firecrawl.dev/providers/github-com/connect/muse)

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

- [How to connect Developer Index to Grok Bot](https://alexandria.firecrawl.dev/providers/firecrawl-developer-index/connect/grok-bot)
- [How to connect DEV Community to Grok Bot](https://alexandria.firecrawl.dev/providers/dev-to/connect/grok-bot)
- [How to connect Red Hat Security Data API to Grok Bot](https://alexandria.firecrawl.dev/providers/access-redhat-com/connect/grok-bot)
- [How to connect Oracle Cloud Infrastructure price list (apexapps.oracle.com) to Grok Bot](https://alexandria.firecrawl.dev/providers/apexapps-oracle-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, GitHub 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 GitHub MCP server for Grok Bot?

Grok Bot reaches GitHub through Firecrawl's hosted MCP server, which serves GitHub and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for GitHub.

### What does connecting GitHub to Grok Bot unlock?

Grok Bot can run all 15 of GitHub's capabilities, including Advisory, Contributors and File, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to answer this: How many stars and forks does firecrawl/firecrawl have and when was it created?" In the same conversation, Grok Bot can combine GitHub with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own GitHub account or API key to use it in Grok Bot?

No. Grok Bot calls GitHub through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate GitHub account or API key.

### How much does it cost to use GitHub in Grok Bot?

GitHub calls cost from 1 to 5 Firecrawl credits, depending on the capability. 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 GitHub?

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 GitHub 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 GitHub capabilities are available there. Keyless connections don't include Alexandria.
