GovInfo API

How to connect GovInfo to Claude

Add the Firecrawl connector to Claude once and it can call the GovInfo API and every other provider in Firecrawl Alexandria, with no GovInfo integration code.

Open Markdown

To connect GovInfo to Claude, add the Firecrawl connector to Claude, sign in on a Firecrawl team with Alexandria enabled, and ask for GovInfo data in plain language. The connection works in Claude on the web, Claude Desktop and Cowork, and you set it up once.

Claude 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.

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 GovInfo to Claude?

  1. Add the Firecrawl connector

    Open the Firecrawl connector in Claude's connector directory and select Connect to Claude. In Claude Desktop you can also go to Customize, then Connectors, and search for Firecrawl.

    The Firecrawl connector in Claude's directory with the Connect to Claude button
  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
  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
  4. Ask Claude for the data

    Ask in plain language and mention GovInfo or Firecrawl Alexandria. Claude finds the GovInfo capability that fits, checks its inputs 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 Claude 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.

Claude 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 Claude?

Name GovInfo or Firecrawl Alexandria in the prompt so Claude reaches for it. Each example opens in Claude with the prompt filled in.

Troubleshooting

Why doesn't Claude use GovInfo?

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 GovInfo 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 GovInfo isn't available?

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

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 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, GovInfo 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 GovInfo MCP server for Claude?

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

What does connecting GovInfo to Claude unlock?

Claude 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, Claude 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 Claude?

No. Claude 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 Claude?

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

Can Claude use other providers besides GovInfo?

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

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options