How to connect GovInfo to Cursor
Add the Firecrawl MCP server to Cursor once and it can call the GovInfo API and every other provider in Firecrawl Alexandria, with no GovInfo integration code.
To connect GovInfo to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for GovInfo data in plain language. The connection works in Cursor's agent and chat, and you set it up once.
Cursor uses GovInfo as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for GovInfo.
Cursor is an AI code editor. Its agent uses MCP servers for outside tools, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.
How do I connect GovInfo to Cursor?
Install the Firecrawl MCP server
Open the install dialog in Cursor, check that the URL is Firecrawl's hosted server, then select Install.

Connect your Firecrawl account
Use the server's sign-in option in Cursor's MCP settings. Firecrawl opens in your browser: sign in, choose a team with Alexandria enabled, and approve access. A green dot next to Firecrawl means it's connected.

Ask Cursor's agent for the data
In the agent chat, ask in plain language and mention GovInfo or Firecrawl Alexandria. The agent finds the GovInfo capability that fits and runs it. For example:
Use Firecrawl to run GovInfo's Browse collection capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
What can Cursor do with GovInfo?
GovInfo (govinfo.gov), the U.S. Government Publishing Office's repository of official federal publications: full-text search across the United States Code, CFR, Federal Register, bills, public laws, Statutes at Large and court opinions; exact U.S. Code section lookup by title, section and edition year; the edition-by-edition version history of a section; document metadata, download links and citations; document text; and the collection browse tree. Reads the key-free backend the govinfo.gov web app itself uses.
Cursor can run any of GovInfo's 7 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.
- Browse collection: One level of a GovInfo collection's browse tree. Without `path`, the root nodes (for `uscode`: the edition years); with a `path` such as `2024/title18/partI/chapter110`, the children of that node (titles, parts, chapters, then section leaves). Each node carries its title and heading, type (`node` or `leaf`), the `browse_path` to pass back for the next level, and for documents the granule and package ids, HTML and PDF URLs, publish date and section range. A path with no node is `not_found`. Verified on `uscode`; other collection codes are passed through as the site accepts them. Costs 5 Firecrawl credits per call.
- Collections: The searchable GovInfo collections: code and display name (United States Code `USCODE`, Code of Federal Regulations `CFR`, Federal Register `FR`, Congressional Bills `BILLS`, Public and Private Laws `PLAW`, Statutes at Large `STATUTE`, United States Courts Opinions `USCOURTS`, ...). Costs 5 Firecrawl credits per call.
- Document details: Metadata for one GovInfo package or granule: title, collection, the metadata table (publication title, hierarchy, laws-in-effect date, source credit, Statutes at Large and public law references, and so on), download links (PDF, HTML/text, MODS, PREMIS, ZIP) with sizes, Chicago and Bluebook citations, Dublin Core fields and the document-in-context position. Accepts a pasted `https://www.govinfo.gov/app/details/...` URL. An unknown package or granule id is `not_found`. Costs 5 Firecrawl credits per call.
- Document text: The text of one GovInfo document from its HTML rendition: the page title, the document heading, the full text as plain text (paragraphs separated by newlines, HTML and entities resolved), the U.S. Code `current through` date and hierarchy comment when present, and the file's last-modified date. Accepts a pasted `https://www.govinfo.gov/content/pkg/.../html/....htm` URL. Package-level HTML of a whole U.S. Code title is several megabytes and is refused above 4 MB; use a granule id. An unknown id is `not_found`. Costs 5 Firecrawl credits per call.
- Search: Full-text search across GovInfo collections with the site's query language (plain text, phrases, and field operators such as `collection:USCODE`, `usctitlenum:18`, `uscsectionnum:2256`, `title:`, `congress:`, `publishdate:`). Optional collection and publication-year facets, `historical` to include superseded editions, and page-index pagination (page sizes up to 50). Returns the total count, result rows with package and granule ids, titles, the two display lines, a text teaser and content URLs, and the facet navigators with their top-level buckets. Costs 5 Firecrawl credits per call.
- Uscode section: Exact lookup of one United States Code section by title number, section number and edition year (or the most recent edition when `year` is omitted), through the site's citation search. Returns the granule and package ids, the section heading, the edition year, the hierarchy line, the first PDF page and the HTML, PDF and details URLs. A section the edition does not contain is `not_found`. Costs 5 Firecrawl credits per call.
- Uscode section versions: Every edition of one United States Code section held by GovInfo (main editions 1994 onward), newest first: edition year, granule and package ids, heading, hierarchy line, HTML, PDF and details URLs, and whether the edition is the current one. This is the section's version history; the text of each edition is available through `document_text`. A section number the title never had is `not_found`. Costs 5 Firecrawl credits per call.
What should I ask Cursor?
Name GovInfo or Firecrawl Alexandria in the prompt so Cursor reaches for it. Each example opens in Cursor with the prompt filled in.
- Use Firecrawl to run GovInfo's Browse collection capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
- Use Firecrawl to run GovInfo's Collections capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
- Use Firecrawl to run GovInfo's Document details capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
- Use Firecrawl to run GovInfo's Document text capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
Troubleshooting
Why can't Cursor find GovInfo?
If Firecrawl's tools in Cursor stop at search, scrape and parse, the connection is keyless and doesn't include Alexandria. Finish the sign-in from Cursor's MCP settings, or add an API key from a team with Alexandria enabled.
Firecrawl shows a red dot in Cursor. What should I do?
Open Cursor's MCP settings, sign in to Firecrawl again, and restart the agent chat so it loads the tools.
Use GovInfo in other AI apps
The same Firecrawl account reaches GovInfo from other AI apps. Pick one for its setup steps:
Other data providers you can connect to Cursor
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 MCP server brings those tools into Cursor, 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, GovInfo among them. Each provider returns structured data through documented capabilities. Cursor finds the capability that fits your question and calls it through the Firecrawl MCP server, 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 GovInfo MCP server for Cursor?
Cursor reaches GovInfo through Firecrawl's hosted MCP server, which serves GovInfo and every other Alexandria provider as tools. Add the Firecrawl MCP server once and you don't install or host a separate MCP server for GovInfo.
What does connecting GovInfo to Cursor unlock?
Cursor can run all 7 of GovInfo's capabilities, including Browse collection, Collections and Document details, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine GovInfo with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.
Do I need my own GovInfo account or API key to use it in Cursor?
No. Cursor calls GovInfo through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate GovInfo account or API key.
How much does it cost to use GovInfo in Cursor?
Each GovInfo 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 Cursor, and finding the right capability is free.
Can Cursor use other providers besides GovInfo?
Yes. The same Firecrawl MCP server reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.
Can I use GovInfo in other AI apps?
Yes. Connect Firecrawl to ChatGPT, Claude, 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 GovInfo capabilities are available there. Keyless connections don't include Alexandria.