MatchAwards MCP server
MatchAwards gives AI agents direct access to continuously updated government and business contracts, grants, jobs, awards and collaboration opportunities.
This is the Model Context Protocol server for MatchAwards. It lets Claude, Cursor, VS Code and other MCP clients search US government contract opportunities, grants and jobs. It only reads data, and it needs no account and no API key.
Tools
| Tool | What it returns | Example prompt |
|---|---|---|
search_contracts |
Federal and state contract opportunities. Filters: NAICS, state, keyword, set-aside, federal or state only, posted within N days, open only, paging. | "Find open roofing contracts in Virginia posted in the last week." |
search_grants |
Federal grant and funding opportunities. Filters: NAICS, keyword, posted within N days, open only, paging (grant notices carry no state). | "Are there open broadband grants?" |
search_jobs |
Job postings from the last 30 days. Filters: NAICS, state, keyword, posted within N days, paging. | "Show electrician jobs in Texas from the last 7 days." |
search_by_naics |
The newest opportunities for up to 10 NAICS codes, of one type: contract, federal, state, grant or job. | "What is new for NAICS 541511 and 541512 at the federal level?" |
get_opportunity |
The full record of one opportunity: description, deadline, agency and contacts (name and title). | "Tell me more about the second result." |
find_contacts |
Only the published points of contact for one opportunity. | "Who do I contact about that solicitation?" |
Every result carries a url on matchawards.com, and the server asks the model to show it to you as a link.
Hosted
A hosted endpoint runs at https://matchawards.com/mcp. Add it as a remote MCP server (connector) by URL, with nothing to install and no key:
- ChatGPT: add a custom connector with the URL
https://matchawards.com/mcp. - Claude (claude.ai or Claude Desktop): Settings, Connectors, add a custom connector with the same URL. Claude Code:
claude mcp add --transport http matchawards https://matchawards.com/mcp. - Cursor: in
mcp.json,{"mcpServers": {"matchawards": {"url": "https://matchawards.com/mcp"}}}.
The hosted endpoint serves the same six tools. It is limited per client address (IPv6: per /64) to 30 requests per minute and 10 per 5 seconds, per IPv6 /48 to 120 per minute, and to 600 per minute for all clients together; over a limit it answers HTTP 429 with Retry-After.
Install
The server runs with uvx, which comes with uv.
Claude Desktop
Add this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop:
{
"mcpServers": {
"matchawards": {
"command": "uvx",
"args": ["matchawards-mcp"]
}
}
}
Claude Code
claude mcp add matchawards -- uvx matchawards-mcp
Cursor
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"matchawards": {
"command": "uvx",
"args": ["matchawards-mcp"]
}
}
}
VS Code
Add this to .vscode/mcp.json in your workspace:
{
"servers": {
"matchawards": {
"type": "stdio",
"command": "uvx",
"args": ["matchawards-mcp"]
}
}
}
Other clients
Any MCP client that can start a stdio server works. The command is uvx matchawards-mcp.
Run the HTTP server yourself
matchawards-mcp --http serves the same tools over stateless Streamable HTTP (JSON replies, no sessions, no SSE) at http://127.0.0.1:8765/mcp:
uvx matchawards-mcp --http
curl -s http://127.0.0.1:8765/mcp -H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
How requests are handled, in order:
- Repeated and trailing slashes are folded, so
/mcp/and//mcpcount as/mcp. Any path other than/mcpand/healthzgets 404. GET /healthzreturnsokand is not rate-limited.- A
Hostheader not inMATCHAWARDS_ALLOWED_HOSTS(or127.0.0.1,localhost) gets 421, whatever the method. - Only
POST /mcpis served.GET,DELETEandOPTIONSget 405 (no SSE stream, no sessions, no CORS). - A POST needs
Content-Length(411 without it), and bodies over 64 KB get 413. - Rate limit per client, then the server-wide cap: 429 with
Retry-After.
The client is the socket address, or the X-Real-IP header when the socket address is in MATCHAWARDS_TRUSTED_PROXIES (IPv6 is keyed per /64; all /64s inside one /48 also share MATCHAWARDS_RATE_PER_PREFIX_MIN). Run it behind a reverse proxy that sets X-Real-IP, and do not expose the port directly. The limits are kept in memory per process. A bad value in any of the variables below stops the server at startup. The log has one line per request (method, path, status, duration, a hashed client key), never headers or bodies.
In Docker, nginx on the host reaches the container from the compose network's gateway, not from loopback, so name that address exactly. Read it with docker network inspect <network> --format '{{(index .IPAM.Config 0).Gateway}}' and set, for example:
MATCHAWARDS_HTTP_HOST=0.0.0.0
MATCHAWARDS_TRUSTED_PROXIES=127.0.0.1/32,::1/128,172.18.0.1/32
Do not trust a broad private range such as 172.16.0.0/12: it may overlap your internal network, and any host in it could then pick its own rate-limit key.
Configuration
| Variable | Default | Purpose |
|---|---|---|
MATCHAWARDS_API_BASE |
https://matchawards.com |
API base URL. Change it only for development. |
MATCHAWARDS_HTTP_HOST |
127.0.0.1 |
--http only: address to listen on. |
MATCHAWARDS_HTTP_PORT |
8765 |
--http only: port to listen on. |
MATCHAWARDS_RATE_PER_MIN |
30 |
--http only: requests per minute per client. |
MATCHAWARDS_RATE_BURST |
10 |
--http only: requests per 5 seconds per client. |
MATCHAWARDS_RATE_PER_PREFIX_MIN |
120 |
--http only: requests per minute for all IPv6 /64s inside one /48 together. |
MATCHAWARDS_GLOBAL_PER_MIN |
600 |
--http only: requests per minute for all clients together. |
MATCHAWARDS_GLOBAL_API_PER_MIN |
900 |
--http only: API calls per minute for the whole server (one search can make up to 3). Over it, a tool answers "MatchAwards is busy, retry in N seconds" without calling the API. |
MATCHAWARDS_TRUSTED_PROXIES |
127.0.0.1/32,::1/128 |
--http only: proxies (CIDRs, comma-separated) whose X-Real-IP header is trusted. Loopback only by default. |
MATCHAWARDS_ALLOWED_HOSTS |
matchawards.com,staging.matchawards.com |
--http only: accepted Host headers, comma-separated (127.0.0.1 and localhost are always accepted). |
MATCHAWARDS_USAGE_DB |
/data/usage.db |
--http only: SQLite file for the usage stats. If its directory is missing or not writable, the server logs one warning and records nothing. |
MATCHAWARDS_USAGE_SALT |
unset | --http only: secret for the ChatGPT caller fingerprint. Unset: no fingerprint is stored. |
MATCHAWARDS_METRICS_TOKEN |
unset | --http only: Bearer token for /metrics. Unset: the metrics listener does not start. |
MATCHAWARDS_METRICS_HOST |
127.0.0.1 |
--http only: address of the metrics listener. |
MATCHAWARDS_METRICS_PORT |
9765 |
--http only: port of the metrics listener. |
Usage stats (hosted mode)
With --http the server keeps usage stats in a SQLite file (MATCHAWARDS_USAGE_DB, WAL mode). stdio mode records nothing. Writes run on two background threads and are best-effort: a failed write is counted in mcp_ledger_errors_total and never fails a request. Rows older than 365 days are deleted, at most once a day.
What is recorded:
- Tool calls: one row per call that reached a tool: time, tool name, outcome (
ok,invalid_input,upstream_error,rate_limited_upstream,busy,internal_error), the client network (IPv4 /24 or IPv6 /48), the User-Agent (first 200 characters), its family (openai-mcp,claude-user,claude,cursor, ...,proberorother) and the latency. Calls stopped by the rate limit are counted in a metric, with no row. Arguments the SDK rejects before the tool runs leave no row either; they still count in the transport table astools/call. - Transport, per day: one counter per client network, JSON-RPC method (known MCP methods only, anything else is
_other) andclientInfoname and version, with the last User-Agent seen.clientInfois read from the first 8 KiB of aninitializebody, or fromparams._meta(2026-07-28 clients), as the body streams past; the body is not buffered. At most 50 counters per client network and day; past that they fold into_other. - ChatGPT callers: when
MATCHAWARDS_USAGE_SALTis set and a request carriesx-openai-subject(ChatGPT's anonymous per-user id), the tool-call row stores a 16-hex HMAC-SHA256 of it, to count distinct ChatGPT callers (openai-mcpfamily only in the stats).x-openai-sessionis not used: it changes per conversation.
Never recorded: tool arguments (search terms, ids), request or response bodies, full client addresses, raw header values.
Read the stats with:
matchawards-mcp stats --days 7 # --db PATH to read another file
It prints tool calls per tool and outcome, calls per family, real calls vs probers vs our own tests (matchawards-test/ UA), distinct client networks (probers and own tests left out), distinct ChatGPT fingerprints, transport requests per method and the top clientInfo names. In Docker: docker exec <container> matchawards-mcp stats --days 1.
Metrics
When MATCHAWARDS_METRICS_TOKEN is set, a second listener in the same process (MATCHAWARDS_METRICS_HOST:MATCHAWARDS_METRICS_PORT, default 127.0.0.1:9765) serves GET /metrics in the Prometheus text format, with Authorization: Bearer <token> (401 without it). The /mcp port never serves /metrics (404): it trusts X-Real-IP from the proxy, so publish only the metrics port to the network Prometheus scrapes from. Counters (in memory, reset on restart): mcp_tool_calls_total{tool,outcome}, mcp_requests_total{method}, mcp_rejected_total{reason} (rate_limit_client, rate_limit_prefix, rate_limit_global, size, host, path, method), mcp_agent_requests_total{family}, mcp_ledger_errors_total.
Ops notes
- Mount a volume at
/data(or setMATCHAWARDS_USAGE_DB) so the file survives a container rebuild. - For ChatGPT fingerprints, nginx must pass
x-openai-subjectthrough to the container (it does by default unless headers are cleared), andMATCHAWARDS_USAGE_SALTmust be set and kept stable: a new salt starts new fingerprints. - For Docker, set
MATCHAWARDS_METRICS_HOST=0.0.0.0and publish the metrics port only on the internal network.
Data
The data is US federal and state contract opportunities, grants and jobs from matchawards.com. Only public posts are returned, and each result links back to its page on matchawards.com.
- Contract and grant searches return open items by default: a response deadline of today or later, US Eastern. An item with no deadline counts as closed.
- Job search covers the last 30 days.
- Results come newest first. When
has_moreis true, the model can ask for the next page withcursor. - If the first request of a search fails, the tool returns an error. If a later page fails, the tool returns the rows it already has, with a
warningthat says why it stopped. - Each API call times out after 10 seconds.
- The API is rate-limited per IP: 60 requests per minute, plus a burst limit of 20 requests per 5 seconds. One search call can use up to three requests when the filters are narrow and results are sparse. When the limit is reached, the tool returns an error that tells the model how many seconds to wait.
Development
python -m venv .venv
.venv/bin/pip install -e ".[test]"
.venv/bin/pytest
The tests make no network calls.
License
MIT. See LICENSE.
Metadata
Release files for matchawards-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| matchawards_mcp-0.3.0.tar.gz | 37.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matchawards_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.3 kB
Release files / matchawards_mcp-0.3.0.tar.gz
| Download URL | matchawards_mcp-0.3.0.tar.gz |
|---|---|
| Size | 37.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
439fb3d4586ade54a022ab95d50321cb53c8214dd72b250ad40e5ea3d70270d4
|
|
BLAKE2b-256 checksum How to use checksums |
3947177c82c874c5c2b83cb21037dad68b8dcb2ec8c9e8e7ad20f632e6fcdd52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / matchawards_mcp-0.3.0-py3-none-any.whl
| Download URL | matchawards_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e986d3cab116d0a501bc2bd15086ff2d5690f7359debfffcd264ecd06656a99
|
|
BLAKE2b-256 checksum How to use checksums |
737b4b6fde6978735c286605b2363f23f2219515ea037e90bbd621a668b82f0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency log