How to find government contracts with ChatGPT, Claude, or any AI assistant
Finding government contracts starts with the open notices agencies post, then a look at who won similar work before, so you can judge whether a bid is worth your time. Federal notices sit on one site, past awards on another, and every state runs its own purchasing portal. Once your AI assistant has Firecrawl Alexandria, it can search open opportunities on SAM.gov, pull award history from USAspending and read state bid lists in one conversation.
Starter prompt
Swap in your service, NAICS code and set-aside, then paste it into whichever Firecrawl-connected assistant you use:
Use Firecrawl Alexandria to find open SAM.gov contract opportunities
for [service, e.g. janitorial] under NAICS [code], set aside for
[small business, 8(a), HUBZone, WOSB or SDVOSB], with responses due
after [date]. Then search USAspending for the largest contracts
awarded under the same NAICS code this fiscal year. Quote me the
price of each tool before you call it.
For each open notice, list:
- Title, agency and buying office, and the solicitation number
- Notice type, set-aside and place of performance
- Response deadline with its time zone
- Contracting officer's name and email, and the SAM.gov link
For past awards, list the winner, the amount obligated and the
period of performance.
Copy deadlines and dollar amounts exactly as returned. Only read
and summarize notices: don't register, submit or contact anyone.What counts as a government contract opportunity?
A government contract opportunity is a public notice that an agency intends to buy goods or services and wants responses from businesses. Four things decide whether one fits you:
- The notice type. A sources sought or presolicitation notice is early market research. A solicitation or combined synopsis and solicitation is the one you answer with a quote or proposal.
- The classification. The NAICS code and product or service code (PSC) say what is being bought, and the NAICS size standard says who counts as small.
- The set-aside. Some notices are reserved for small businesses or for 8(a), HUBZone, women-owned or service-disabled veteran-owned firms.
- The deadline and place of performance. When responses are due, in which time zone, and where the work happens.
Where to find government contracts
| Source | What you get | The catch |
|---|---|---|
| SAM.gov Contract Opportunities | Federal notices with filters for keyword, NAICS, set-aside, agency and deadline, plus attachments | Federal only. To bid you also need an active SAM.gov entity registration, renewed every 365 days |
| USAspending.gov award search | Prime awards agencies report: recipient, amount, agency, NAICS, PSC and period of performance | Shows what was awarded, not what is open now, and award searches start at October 2007 |
| State procurement portals | State and local solicitations, for example OregonBuys in Oregon and COMMBUYS in Massachusetts | One portal per state, each with its own search form, and cities and school districts may post elsewhere |
| An AI assistant with Firecrawl Alexandria | SAM.gov notices, USAspending awards and several state and local bid lists in one answer, with links to each record | Costs Firecrawl credits for each call, and it only finds and reads notices; registering and bidding stay with you |
How to find government contracts with AI, step by step
- Give your assistant Firecrawl access. Claude and ChatGPT connect through a sign-in, and MCP clients such as Claude Code or Cursor take one server entry; each has its own section further down.
- Describe the work you sell. A NAICS code gives the tightest match. Keywords work too, and adding your set-aside eligibility narrows the list to notices you can answer.
- Ask for open notices first, then past awards. The assistant finds the SAM.gov search in Firecrawl Alexandria, tells you its price and runs it, then checks USAspending for earlier winners of the same kind of work.
- Open the notice on SAM.gov before you plan a response. Each result links to its SAM.gov page, where the amendments, attachments and submission instructions live.
What data can you get?
Eight Firecrawl Alexandria tools handle open notices, award history and procurement rules:
| Tool | What it returns | Credits per call |
|---|---|---|
| SAM.gov opportunity search | Contract notices filtered by keyword, agency, NAICS, set-aside, notice type, status, publication date and response deadline, with the full description, place of performance and points of contact, up to 100 per page | 5 |
| SAM.gov notice detail | One notice by its id, with deadlines, award data, attachment titles and download links, and the amendment history if you ask for it | 5 |
| USAspending award search | Prime awards by keyword, agency, recipient name or UEI, action date, place of performance, NAICS, PSC and amount, one award family at a time | 5 |
| USAspending award detail | One award in full: recipient and location, obligations, options, period of performance, parent contract vehicle and subaward totals | 5 |
| Firecrawl government index search | Firecrawl's index of about 30 million US government pages, searched for procurement rules, registration help and agency pages, returning each page's URL, title and a snippet | Free in our test |
| BidNet Direct solicitations | Open or closed state, local and federal bids by keyword, state or sector. Each row gives only the title, location and publication and closing dates; read a bid's detail for more | 5 |
| OregonBuys bids | Oregon solicitations with organization, buyer, description, opening date, status and awarded vendors, 25 rows per page | 5 |
| COMMBUYS bids | Massachusetts solicitations with the same row shape, 25 rows per page, plus statewide contract summaries | 5 |
On Nov 11, 2026, one run each of three of these tools returned:
- SAM.gov opportunity search: 13 open janitorial notices set aside for small business. One was a US Coast Guard request for recurring janitorial services at Sector Key West, Florida, with quotes due Nov 20, 2026. Each notice came with the contracting officer's email and its SAM.gov link.
- USAspending award search: the largest janitorial contracts of fiscal 2026, led by J & J Maintenance with about $176 million obligated for housekeeping at Brooke Army Medical Center.
- Firecrawl government index search: for a question about SAM.gov registration, the SAM.gov home page and two GSA help articles on getting a Unique Entity ID.
How to find government contracts in Claude
- Choose Connect on the Firecrawl connector listing.
- At the Firecrawl screen, log in (a free account can be made right there), select a team and grant access.
- Start a chat, press +, choose Connectors and enable Firecrawl for that conversation.
No API key is involved. Ask for what you want:
Use Firecrawl Alexandria to list open SAM.gov notices for IT help
desk support set aside for service-disabled veteran-owned businesses,
with responses due in the next 30 days.How to find government contracts in ChatGPT
- Get the Firecrawl plugin from the ChatGPT plugin listing.
- When the plugin requests it, log in with Firecrawl (first-time users can sign up ahead of that).
- Open each request with
@firecrawlso the plugin handles it.
@firecrawl Search USAspending in Firecrawl Alexandria for the ten
largest landscaping contracts (NAICS 561730) awarded in Texas in
fiscal 2026 and name each winner.How to find government contracts in Claude Code, Cursor and other AI agents
Adding the Firecrawl MCP server is how coding agents and other MCP clients get at Firecrawl Alexandria. Connect it once and approve the Firecrawl sign-in window when it appears.
- Claude Code: run
claude mcp add --transport http firecrawl https://mcp.firecrawl.dev/v2/mcp-oauth, and finish the login from/mcp. - Cursor and JSON-based MCP clients: drop this entry into the servers block of your config.
{
"mcpServers": {
"firecrawl": {
"url": "https://mcp.firecrawl.dev/v2/mcp-oauth"
}
}
}Three tools arrive with it. firecrawl_search with sources: ["alexandria"] locates a provider such as SAM.gov, firecrawl_find_tools shows a tool's filters and returns its price in Firecrawl credits when you pass includeCosts: true, and firecrawl_scrape makes the call. An agent can use them to fill a bid pipeline sheet or check for new notices each morning.
How to find government contracts with the Firecrawl API
To feed opportunities into a CRM, a bid tracker or a daily email, call the tools from Python after pip install firecrawl-py:
from firecrawl import Firecrawl
app = Firecrawl(api_key="fc-YOUR_API_KEY")
def provider_data(result):
item = result.alexandria[0]
if item.error: # a provider can fail without returning data
raise RuntimeError(f"{item.provider}: {item.error.code} {item.error.message}")
return item.data
# Open small business janitorial notices on SAM.gov, 5 credits
open_bids = app.scrape(
alexandria={
"provider": "sam-gov",
"capability": "opportunities/search",
"options": {
"query": "janitorial",
"statuses": ["active"],
"set_asides": ["SBA"],
"response_deadline_from": "2026-11-12",
"sort": "deadline_asc",
"include_details": True,
"page_size": 3,
},
}
)
# Largest NAICS 561720 contracts with actions in fiscal 2026, 5 credits
past_awards = app.scrape(
alexandria={
"provider": "usaspending-gov",
"capability": "awards/award_search",
"options": {
"award_type_codes": ["A", "B", "C", "D"],
"naics_codes": ["561720"],
"time_period": [
{"start_date": "2025-10-01", "end_date": "2026-09-30"}
],
"page_size": 3,
},
}
)
for notice in provider_data(open_bids)["records"]:
print(notice["response_deadline_date"], notice["title"], notice["source_url"])
for award in provider_data(past_awards)["records"]:
print(award["recipient"]["name"], award["total_obligation"])Firecrawl Alexandria calls need an API key from your Firecrawl account, since keyless access doesn't cover them, and the Firecrawl docs list the remaining options.
What it costs
Looking up these tools and their prices is free from every assistant and from the API. Running a tool spends Firecrawl credits at the per-call price listed above, and every answer lists the tools that were run. One SAM.gov search plus one USAspending search, as in the example above, used 10 Firecrawl credits. Adding a notice detail or a state portal search adds 5 Firecrawl credits each, though prices can change. For plan sizes, check Firecrawl pricing.
Limits to know
- Notices change after they post. Agencies publish amendments that can move deadlines or swap attachments, and each amendment gets a new notice id. Check the latest version on SAM.gov before you prepare a response.
- The SAM.gov search has no state filter. It filters by agency, NAICS, set-aside and dates, and returns the place of performance on each notice, so ask the assistant to sort or drop notices by location afterwards.
- State coverage is partial. OregonBuys and COMMBUYS cover two states, and BidNet Direct search rows carry only title, location and dates. For other states, ask the assistant to look for a provider or search the state portal yourself.
Related guides
- How to use ChatGPT for legal research: reading statutes, regulations and court decisions with the government index and other providers.
- SAM.gov in Firecrawl Alexandria: every SAM.gov tool, including entity registration lookups and exclusions checks.
- Public records providers: other government sources your assistant can search.
Use Firecrawl in your agent
Add Firecrawl to ChatGPT, Claude, Cursor and more in one click.
Frequently Asked Questions
Where are government contracts posted for bidding?
For federal work, search Contract Opportunities on SAM.gov by keyword, NAICS code, set-aside and response deadline. For state and city work, check each state's procurement portal. Through Firecrawl Alexandria, an AI assistant can run the SAM.gov search for you and add state portals such as OregonBuys and COMMBUYS in the same request.
What are SAM.gov contract opportunities?
They are the notices federal agencies post on SAM.gov when they plan to buy something: presolicitations, solicitations, combined synopsis and solicitation notices, sources sought, special notices and award notices. Each one names the buying office, the NAICS code, any small business set-aside, the place of performance and the date responses are due.
Do I need to register in SAM.gov to bid on government contracts?
To bid on federal prime contracts you need an active SAM.gov entity registration, since SAM.gov says a Unique Entity ID on its own does not let you apply for awards directly. Registration has to be renewed every 365 days.
How can I see who won a government contract?
USAspending.gov publishes prime awards that federal agencies report, with the recipient, the amounts obligated, the period of performance and the NAICS and product codes. Through Firecrawl Alexandria an assistant can search those awards by keyword, agency, NAICS code, recipient or date window.
What does finding government contracts with Firecrawl cost?
Discovering tools and checking their prices costs nothing. A SAM.gov opportunity search, a USAspending award search and a state portal search each use 5 Firecrawl credits, and the government index search showed no charge in our test, so a search for open bids plus a look at past winners comes to about 10 Firecrawl credits, though prices can change.
What is Firecrawl Alexandria?
Firecrawl Alexandria is Firecrawl's library of 400+ data providers that AI assistants and agents can call directly, from public sources and licensed publishers such as Fiscal.ai, Benzinga and Apollo to Firecrawl's own Research, Developer and Government indexes. Connect Firecrawl to ChatGPT, Claude, Cursor or another agent, and it finds the right provider for your question, shows the price of each tool and returns the record from the source. It needs a Firecrawl account, signed in through the connector, plugin or MCP sign-in, or an API key; keyless connections don't include it. Finding tools is free; running one uses Firecrawl credits.