SAM.gov API

How to connect SAM.gov to Muse

Add the Firecrawl MCP server to Muse once and it can call the SAM.gov API and every other provider in Firecrawl Alexandria, with no SAM.gov integration code.

Open Markdown

To connect SAM.gov to Muse, add the Firecrawl MCP server to Muse, sign in on a Firecrawl team with Alexandria enabled, and ask for SAM.gov data in plain language. The connection works in your Muse chats, and you set it up once.

Muse uses SAM.gov as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for SAM.gov.

Muse is Meta's personal AI agent. It can set up MCP servers for itself, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect SAM.gov to Muse?

  1. Ask Muse to install Firecrawl

    Open a Muse chat that asks it to install the Firecrawl MCP server by following Firecrawl's agent setup guide, then send the message.

  2. Connect your Firecrawl account

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

  3. Ask Muse for the data

    Once Muse confirms Firecrawl is set up, ask in plain language and mention SAM.gov or Firecrawl Alexandria. For example:

    Use Firecrawl to find up to 20 active small-business set-aside solicitations for cybersecurity services and show their response deadlines.

What can Muse do with SAM.gov?

US federal procurement notices (search and detail), entity registrations (search, get, changes, monthly extract status) and exclusions (daily extract list, get, status) from SAM.gov's public APIs and data-services extracts.

Muse can run any of SAM.gov's 9 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Detail: Fetch one SAM.gov contract opportunity by its 32-character notice id (the id in https://sam.gov/opp/{id}/view): full description, deadlines, NAICS, set-aside, place of performance, points of contact, award data, attachments (titles and download URLs only) and optionally the amendment history. Costs 5 Firecrawl credits per call.
  • Entities changes: Entity registrations whose SAM.gov record changed in a date window (the Entity Management API's updateDate filter, the publisher's own modified-since feed), same record shape as entities_search, pages of at most 10. A one-day window holds about 9,700 updates against the 10,000-record query window; split larger windows by registration_status or state. Costs 5 Firecrawl credits per call.
  • Entities get: One to ten SAM.gov entity registrations by UEI or by CAGE code (the public Entity Management API, sections entityRegistration, coreData, assertions and pointsOfContact). Identifiers with no public registration are listed in not_found; when none is found the call fails with not_found. Costs 5 Firecrawl credits per call.
  • Entities search: Search SAM.gov entity registrations (the public Entity Management API served keyless from sam.gov) by legal business name, primary or any NAICS code, physical-address state or city, CAGE or UEI, for active (default) or expired registrations. Each record carries UEI, CAGE, legal and DBA name, registration status and dates, exclusion flag, physical and mailing address, entity structure, state of incorporation, business types, primary NAICS and NAICS list, and the government and electronic business points of contact (name, title, address; the public tier has no email or phone). Pages of at most 10; SAM.gov serves at most 10,000 records per query. Costs 5 Firecrawl credits per call.
  • Entities status: Version check and hand-off for the public monthly entity registration extract (SAM_PUBLIC_MONTHLY_V2_YYYYMMDD.ZIP in SAM.gov Data Services, about 149 MB): file name as publication_id, S3 Last-Modified, size and ETag from a 64 KB range read through the download route's 303 (the presigned URL is resolved per call and never stored), and the record count from the pipe file's BOF line decoded from the nested zip heads. hand_off is true because the file exceeds the runner's 32 MiB cap; file_url is the sam.gov download route. No daily public entity file exists. Costs 5 Firecrawl credits per call.
  • Exclusions get: One exclusion by SAM Number (the UUID in the extract's `SAM Number` column, served by SAM.gov's view-exclusion-details service), or every exclusion of a UEI or CAGE code (the v4 exclusions API, with the SAM Number resolved through the UI exclusion index). Same record shape as exclusions_list; the `source` field says which service answered. Costs 5 Firecrawl credits per call.
  • Exclusions list: The full current list of SAM.gov exclusions from the daily public extract (SAM_Exclusions_Public_Extract_V2_YYDDD.ZIP: about 169,000 rows, individuals, firms, special entity designations and vessels), paged with a cursor pinned to the file name and its S3 ETag. Every page re-resolves the newest file through listfiles, downloads the 12 MB zip through the download route's 303, inflates and parses the quoted multi-line CSV in one pass and returns the rows of the requested window; when the publication moved on since the cursor was issued the call fails with invalid_input at /continuation (issue code publication_changed). source_record_id is the extract's SAM Number. Optional classification filter. Each daily file is a full snapshot: there is no exclusions changes feed, diff consecutive snapshots. Costs 5 Firecrawl credits per call.
  • Exclusions status: Version check of the daily public exclusions extract (SAM_Exclusions_Public_Extract_V2_YYDDD.ZIP, Julian-dated, about 12 MB zip holding a 79 MB CSV): file name as publication_id, S3 Last-Modified, size and ETag from a 1 KB range read through the download route's 303, and the inner CSV's name and sizes from the zip local header. The zip fits the runner cap, so hand_off is false; exclusions_list reads it. record_count is null until a full read. Costs 5 Firecrawl credits per call.
  • Search: Search SAM.gov contract opportunities by keyword, agency, notice status, publication date, NAICS, set-aside, notice type and response deadline. Returns one page (default 20, max 100) with an opaque cursor for the next page. By default each hit is enriched with its full notice detail (NAICS, set-aside, place of performance, full description). Costs 5 Firecrawl credits per call.

What should I ask Muse?

Name SAM.gov or Firecrawl Alexandria in the prompt so Muse reaches for it. Each example opens in Muse with the prompt filled in.

Troubleshooting

Why can't Muse find SAM.gov?

A keyless Firecrawl connection doesn't include Alexandria. Ask Muse to finish the Firecrawl sign-in, and choose a team with Alexandria enabled.

Use SAM.gov in other AI apps

The same Firecrawl account reaches SAM.gov from other AI apps. Pick one for its setup steps:

Other data providers you can connect to Muse

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 Muse, 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, SAM.gov among them. Each provider returns structured data through documented capabilities. Muse 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 SAM.gov MCP server for Muse?

Muse reaches SAM.gov through Firecrawl's hosted MCP server, which serves SAM.gov 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 SAM.gov.

What does connecting SAM.gov to Muse unlock?

Muse can run all 9 of SAM.gov's capabilities, including Detail, Entities changes and Entities get, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to find up to 20 active small-business set-aside solicitations for cybersecurity services and show their response deadlines." In the same conversation, Muse can combine SAM.gov with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own SAM.gov account or API key to use it in Muse?

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

How much does it cost to use SAM.gov in Muse?

Each SAM.gov 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 Muse, and finding the right capability is free.

Can Muse use other providers besides SAM.gov?

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 SAM.gov in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Claude, Cursor, Grok Bot 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 SAM.gov 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