Server data from the Official MCP Registry
Federal IT contract awards and open SAM.gov opportunities: recompetes, likely incumbents, profiles.
About
Federal IT contract awards and open SAM.gov opportunities: recompetes, likely incumbents, profiles.
Remote endpoints: streamable-http: https://fedcontracts.adamfreemer.com/mcp
Security Report
Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry. Trust signals: trusted author (3/3 approved).
5 tools verified · Open access · No issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"com-adamfreemer-fedcontracts": {
"url": "https://fedcontracts.adamfreemer.com/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
FedContracts MCP
A remote MCP server that lets an AI assistant (Claude, ChatGPT, Gemini, Cursor) query federal IT and software contract awards from USAspending.gov and open contract opportunities from SAM.gov, linked to each other: a contract that is ending, the open notice that may replace it, and who holds the work now.
Live: fedcontracts.adamfreemer.com (connection
instructions, tool list, and current data freshness). Connect your client to
https://fedcontracts.adamfreemer.com/mcp.
Contract awards are an early hiring signal. A company that just won a large services contract has to staff it. A contract nearing its final end date is likely to be recompeted, so the incumbent and its competitors both start hiring. FedContracts is for contractors of any size doing capture and market research (competitors, recompetes, vehicles, set-asides) and for job seekers reading the same signals. It answers questions like "who just won work at VA?" or "which DHS contracts end in the next six months?"
Built with Rails 8 and the official mcp Ruby SDK.
It is public, read-only, and needs no account or API key.
Architecture
flowchart LR
USA[("USAspending.gov")]
SAM[("SAM.gov")]
subgraph sync ["Daily rake sync (Heroku Scheduler)"]
S1["AwardSync<br/>search API: spending_by_award"]
S2["EndDateSync<br/>bulk CSV downloads:<br/>potential end dates, parent companies"]
S3["OpportunitySync<br/>public bulk CSV:<br/>active contract opportunities"]
end
DB[("Postgres<br/>agencies, recipients,<br/>awards,<br/>opportunities, sync_runs")]
MCP["/mcp<br/>5 read-only MCP tools<br/>(stateless Streamable HTTP, JSON)"]
AI["AI client<br/>Claude, ChatGPT, Cursor"]
USA --> S1 --> DB
USA --> S2 --> DB
SAM --> S3 --> DB
DB --> MCP
AI -- "JSON-RPC over HTTP POST" --> MCP
Hard rule: tool calls never hit a source API live. They read only from
Postgres, so every call returns well under Heroku's 30-second router timeout
and keeps working even when USAspending or SAM.gov is slow or rate-limiting us.
Every response includes data_freshness (the time of the last successful sync).
The syncs run once a day. At 10:00 UTC: the last 7 days of awards (the window
overlaps so late reports get picked up), then one bulk download that fills
potential end dates and parent companies. Requests to USAspending are strictly
sequential. At 10:30 UTC: SAM.gov's public active-notice file (about 220 MB),
streamed row by row in about 25 seconds and filtered to the IT NAICS set.
GET /health/data returns 503 if the last successful award sync is more than
36 hours old, and reports the opportunity sync separately.
Tools
| Tool | What it does |
|---|---|
search_awards | Look up a contract by its number (PIID), or search awards by keyword, agency, NAICS code, state, minimum amount, set-aside, number of offers, contract vehicle, and services vs. products, filtered by signing date (default last 90 days, up to 10 years). A PIID lookup ignores the date window and returns every award that shares the number. |
recent_awards | Contracts signed in the last N days at an agency, plus a per-company summary: who just won work and may be staffing up. |
expiring_contracts | Contracts ending in the next N days with the incumbent, each labeled final_period (likely recompete) or options_remaining (likely renewal), plus related_opportunities: open SAM.gov notices that may be the follow-on. Filters by set-aside, number of offers, contract vehicle, and services vs. products. The window can start later (starting_in_days), and results page with offset. |
company_profile | One company's totals, top agencies and NAICS codes, top contract vehicles, small-business set-aside share, quarterly trend, recent awards, and soonest-ending awards. Returns candidates if the name is ambiguous. |
open_opportunities | Answerable SAM.gov notices (sources sought, presolicitations, solicitations) in the IT NAICS set, with reposts collapsed per procurement and closed deadlines hidden by default. Each carries up to 3 unverified incumbent candidates from the same agency and NAICS, strongest evidence first: the notice cites the award's PIID or names the contractor, then notice-title similarity. Flags notices whose text signals a sole-source award or a superseded notice, and drops weak candidates when the notice names its awardee. The forward-looking companion to expiring_contracts. Finds a notice by keyword or solicitation number; filters by agency or sub-agency (USCIS, Navy), NAICS, set-aside, notice type, and response deadline. |
Results are capped at 50 per call (default 25); search_awards and
expiring_contracts page past that with offset / next_offset. Inputs are validated against closed JSON schemas,
so bad input comes back as a readable tool error.
Search tip: contract descriptions name programs and missions ("VA.gov
platform", "modernization"), almost never languages or frameworks. To find
software development work, filter by NAICS instead of tech keywords: 541511
(custom programming), 541512 (systems design and integration), or the prefix
54151 for both plus other computer services. Then work from the winning
companies. The tool descriptions tell AI clients the same thing.
Connect
Server URL: https://fedcontracts.adamfreemer.com/mcp
- Claude.ai / Claude Desktop: Plugins, Add, Custom connector. Paste the server URL and choose "No sign-in" (Claude detects it). The tools show as read-only.
- ChatGPT: add it as a custom connector (app) with the server URL and no authentication. ChatGPT caches the tool list: after the server changes, remove and re-add the connector, then start a new chat.
- Claude Code:
claude mcp add --transport http fedcontracts https://fedcontracts.adamfreemer.com/mcp - Gemini CLI: add to
~/.gemini/settings.json, then check it with/mcp list:{ "mcpServers": { "fedcontracts": { "httpUrl": "https://fedcontracts.adamfreemer.com/mcp" } } } - MCP Inspector: run
npx @modelcontextprotocol/inspector, choose Streamable HTTP, and paste the server URL. - curl:
curl -s https://fedcontracts.adamfreemer.com/mcp \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
The endpoint is stateless: no sessions, no SSE streams. Each IP is limited to 60 requests a minute.
Example prompts
For contractors (capture and market research):
- "Which big VA contracts are likely up for recompete in the next 6 months, and who holds them?"
- "VA IT services contracts ending in 2027 that were small-business set-asides and got only one offer."
- "Which DHS software contractors are growing? Compare their award trends over the last year."
- "Profile Leidos's federal IT work: agencies, vehicles, totals, and trend."
- "What's happening with VA's Digital GI Bill (DGIB) contract? When does it end, and who holds it?"
- "What HHS IT contracts end in the next 6 months, and who holds them now?"
For open opportunities (what's open now):
- "Open IT sources-sought and presolicitations at VA under NAICS 541512, with likely incumbents."
- "For DHS contracts ending next year, is there an open notice that looks like the follow-on, and who holds it now?"
For job seekers:
- "Who won VA software development contracts in the last month, and who might be staffing up?"
- "I'm a Rails developer. Which companies win federal custom-software work, and which of them are hiring?" (pair with a job-search connector)
What the answers show. In testing, Claude chained the tools without being
told which ones to use. For DGIB it found Accenture Federal's follow-on order
and correctly labeled it options_remaining. Its current period ends
2026-12-29, but an option year runs to 2027-12-29, so the next event is more
likely an option renewal than a recompete. On recent awards it told software
license resales apart from services contracts that actually mean hiring. With
a job-search connector also enabled, it took the companies that win custom
software work at VA and searched their open roles by company name.
Data caveats
- Prime awards only. Subcontractors, who do much of the hiring on large programs, are not included.
- IT and software only: NAICS 541511, 541512, 541513, 541519, and 518210
(override with
SYNC_NAICS). Only contracts with activity in about the last two years are stored. - DoD awards lag about 90 days. Department of Defense award data publishes late, so recent DoD awards are sparse. DoD opportunities are current. Civilian agencies (DHS, VA, HHS, Treasury) are better for award demos.
- Option and recompete labels. The current end date often isn't the real
end.
expiring_contractscompares it with the potential end date (all options exercised) from bulk downloads.final_periodmeans the last possible end date falls in the window,options_remainingmeans it can still be extended, andunknownmeans the end-date sync hasn't covered that award yet. - Set-aside, offers, and vehicle. These come from the bulk downloads.
set_asidetakes a code (SBA,8A,SDVOSBC, ...) orsmall_businessfor any small-business set-aside.max_offersskips awards with no reported offer count.vehiclematches the parent IDV PIID as a prefix. A null field means not reported, not none. On task orders the set-aside is often recorded on the parent vehicle, so a set-aside filter can miss orders.work_typesplits services from products by PSC code (services codes start with a letter), which separates real services work from brand-name resale. - Open opportunities and incumbent links are a best effort. Opportunities
come from SAM.gov's active-notice bulk file, filtered to the IT NAICS set. The
follow-on link ("this notice may replace contract X, held by Y") is fuzzy by
design: a recompete is issued under a new solicitation number, so it is matched
on same agency, same NAICS, an incumbent ending within ~18 months, and notice-title
similarity, after any explicit evidence (the notice citing the award's PIID or
naming the contractor). Incumbents are candidates with a confidence, never
certainties; confirm from the notice text (
sam_url) before relying on one. When the real incumbent's contract sits outside the IT NAICS set or the two-year window, the candidates can be unrelated, and in very large pools (thousands of DoD awards) weak title matches are mostly noise. - Synced daily. Data is as fresh as the last sync. Check
data_freshnessin each response. - Search caveats. Descriptions come from USAspending and are often short. Company names match on the legal name, so acronyms like "GDIT" usually won't match.
Design notes: what I learned
Why not let the AI query USAspending directly? USAspending's search is a POST API, and its website renders in JavaScript. Chat clients' web tools mostly fetch pages with GET, so in Claude.ai or ChatGPT the assistant usually falls back to press releases and news. An agent that can make HTTP calls could use the API, but it would be slow. Searches page 100 records at a time, rate limits hit under load, and the most useful field isn't in the search API at all (next note). Syncing once a day into Postgres makes every tool call fast and predictable, and turns the domain knowledge into tool descriptions the model reads.
The recompete signal needs a second data source. A contract's current end
date is often just the end of this option year. The real end, with all options
exercised, only appears in USAspending's bulk CSV downloads, which take minutes
to generate. The nightly sync joins the two, so expiring_contracts can tell a
likely recompete (final_period) from a likely renewal (options_remaining).
Doing that live in a tool call wouldn't be possible.
Keywords fail; NAICS works. Contracting officers write the award
descriptions. They name programs ("VA.gov platform"), not technologies, so a
search for "Ruby" or "React" finds almost nothing. Agencies also code similar
work differently: over 180 days, VA had 15 awards of $1M or more under 541511
(custom programming), 23 under 541512, and 151 across the 54151 prefix. The
fix was a prefix match on NAICS, plus tool descriptions that tell the model to
filter by NAICS and agency and then work from the winning companies.
A recompete can't be matched by number. The obvious join between an open notice and the contract it replaces is the solicitation number. It doesn't work: a recompete is issued under a new number. On the live data, 97% of exact matches were a single standing GSA vehicle. The link has to be inferred from agency, NAICS, timing, and the notice text, so every candidate carries its evidence and a confidence label, and the server returns none rather than guess.
Agency codes don't line up across sources. SAM.gov files Navy, Army, and Air Force notices under their own agency codes, while USAspending files their awards under the Department of Defense. Until that was folded together, 344 of 467 DoD notices were invisible to agency filters and incumbent matching. Sub-agency names differ too ("DEPT OF THE NAVY" vs. "Department of the Navy").
Test against a competitor, not just yourself. I ran three rounds of the same questions through this server and a commercial GovCon intelligence product, using a different model family to run them and with answer keys built from USAspending and SAM.gov rather than from either server. Each round found real bugs: no lookup by contract number, missing solicitation numbers, the DoD agency codes. In the final round's fact lookups, this server didn't return a single wrong value. The commercial product won on breadth (subcontracts, forecasts, state and local data) and on analysis, as expected from a far larger product.
Contract data says who will hire, not how to apply. USAspending has company names, addresses, and parent companies, but no websites or job listings. The connector is most useful next to a job-search connector: this one finds the companies, and the other finds their openings.
Local development
You need Ruby 3.3.14 and PostgreSQL.
bundle install
bin/rails db:prepare
DAYS=30 bin/rails sync:backfill # small local dataset, about 3.3k awards
bin/rails server # MCP at http://localhost:3000/mcp
onboard.md covers the full backfill, sync tasks, config vars
(MCP_ALLOWED_HOSTS, MCP_BEARER_TOKEN, MCP_RATE_LIMIT_PER_MINUTE), and a
repo map. CLAUDE.md is the build spec.
Testing
bundle exec rspec
- Real HTTP is blocked in tests (WebMock). USAspending responses are replayed
from recorded VCR cassettes in
spec/cassettes/. - Query objects run against a FactoryBot dataset modeled on real contracts
(
examples.md). - Request specs cover the MCP protocol end to end:
initialize,tools/list,tools/callfor each tool, bad input, auth, host checks, and rate limits. - GitHub Actions runs RSpec against Postgres, plus RuboCop, Brakeman, and bundler-audit.
Stack
Ruby 3.3, Rails 8.1 (API-only), PostgreSQL with pg_trgm for fuzzy matching,
mcp gem 1.11 (official Streamable HTTP transport, stateless JSON mode),
Faraday with retries, rack-attack, and RSpec, WebMock, VCR, and FactoryBot.
It is hosted on Heroku (web dyno, Heroku Postgres, Heroku Scheduler).
Screenshots
Landing page, showing the connection guide, tools, and live pipeline status:

Dark mode, mobile width:
Claude.ai with the connector, asked "Which large VA IT contracts are likely up for recompete in the next 6 months, and who holds them?":
Data from USAspending.gov. Not affiliated with
the U.S. government. MIT licensed; see LICENSE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
