# How to connect SAM.gov to Cursor

> Connect SAM.gov to Cursor with the Firecrawl MCP server. Use SAM.gov as an MCP tool in Cursor via Firecrawl Alexandria, with setup steps and example prompts.

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

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

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 SAM.gov to Cursor?

### 1. Install the Firecrawl MCP server

Open the [install dialog in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9), check that the URL is Firecrawl's hosted server, then select Install.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9)

![Cursor's Install MCP server dialog with the Firecrawl hosted server URL](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-install-firecrawl-mcp-server.webp)

### 2. 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.

![Cursor's MCP list showing Firecrawl connected with its tools enabled](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-firecrawl-mcp-connected.webp)

### 3. Ask Cursor's agent for the data

In the agent chat, ask in plain language and mention SAM.gov or Firecrawl Alexandria. The agent finds the SAM.gov capability that fits and runs it. For example:

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

## What can Cursor 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.

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

Name SAM.gov or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to find up to 20 active small-business set-aside solicitations for cybersecurity services and show their response deadlines.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20find%20up%20to%2020%20active%20small-business%20set-aside%20solicitations%20for%20cybersecurity%20services%20and%20show%20their%20response%20deadlines.)
- [Use Firecrawl to find up to 10 Department of Veterans Affairs medical-equipment opportunities published in September 2026.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20find%20up%20to%2010%20Department%20of%20Veterans%20Affairs%20medical-equipment%20opportunities%20published%20in%20September%202026.)
- [Use Firecrawl to find the active cybersecurity solicitation with the earliest upcoming response deadline, then show its full notice, attachment links and amendment history.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20find%20the%20active%20cybersecurity%20solicitation%20with%20the%20earliest%20upcoming%20response%20deadline%2C%20then%20show%20its%20full%20notice%2C%20attachment%20links%20and%20amendment%20history.)
- [Use Firecrawl to run SAM.gov's Detail capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20SAM.gov's%20Detail%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `sam-gov` 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 can't Cursor find SAM.gov?

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

- [SAM.gov in ChatGPT](https://alexandria.firecrawl.dev/providers/sam-gov/connect/chatgpt)
- [SAM.gov in Claude](https://alexandria.firecrawl.dev/providers/sam-gov/connect/claude)
- [SAM.gov in Grok Bot](https://alexandria.firecrawl.dev/providers/sam-gov/connect/grok-bot)
- [SAM.gov in Muse](https://alexandria.firecrawl.dev/providers/sam-gov/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect France public medicines database (BDPM) to Cursor](https://alexandria.firecrawl.dev/providers/base-donnees-publique-medicaments-gouv-fr/connect/cursor)
- [How to connect ClinicalTrials.gov to Cursor](https://alexandria.firecrawl.dev/providers/clinicaltrials-gov/connect/cursor)
- [How to connect CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits to Cursor](https://alexandria.firecrawl.dev/providers/cms-gov/connect/cursor)
- [How to connect CDC PLACES local health estimates (data.cdc.gov) to Cursor](https://alexandria.firecrawl.dev/providers/data-cdc-gov/connect/cursor)

Full setup guide: [Firecrawl in Cursor](https://www.firecrawl.dev/integrations/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, SAM.gov 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 SAM.gov MCP server for Cursor?

Cursor 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 Cursor unlock?

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

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

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

### Can Cursor 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, 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 SAM.gov capabilities are available there. Keyless connections don't include Alexandria.
