Ten thousand notices.
Five worth your week.

rfp-agent pulls open federal contract notices from SAM.gov, scores every one for your company with plain reasons, and checks the FAR before it says anything about the rules. When the FAR doesn't cover a question, it says so.

Open source · runs on your machine · free local models via Ollama · plugs into any MCP client

What it does

One agent, three jobs.

15,171open notices pulled from SAM.gov
4,398repeats removed: amendments of the same solicitation
0-100fit score per notice, five parts, each with a reason
0.711calibrated floor: below it, the FAR tool refuses
>_ rfp-agent --describe
rfp-agent helps a small company find US federal contracts worth bidding on. It loads open notices from SAM.gov (the public daily extract needs no key), removes repeats of the same opportunity, and scores each notice against a company profile: NAICS codes, set-aside eligibility, keywords, deadline and place. It looks up the Federal Acquisition Regulation with dense retrieval and two calibrated gates, and returns evidence only: no generated legal advice, a refusal when the FAR does not cover it. The tools run as an MCP server, so Claude Desktop, Claude Code or any MCP client can use them; a small agent loop can also drive them with a local model to write a go/no-go brief.

Walkthrough

Watch it run, start to finish.

Six steps from an empty folder to a go/no-go brief, with the tool's real output for an example Atlanta IT firm. Pick any step to jump to it.

    rfp-agent

    01 · Find

    Every open notice, once.

    Agencies post the same opportunity again with every amendment: new notice id, same solicitation number. rfp-agent groups notices by department and solicitation number and keeps the newest.

    • 15,171 → 10,773 notices; the largest group is GSA's Multiple Award Schedule, posted 60 times.
    • Two sources: the public daily CSV (no key) and the SAM.gov API, with every response cached and a daily call budget.
    • Known limit, stated plainly: an agency that reuses one number for different work loses all but the newest notice.
    search --profile atlanta_it_profile.toml --min-days-left 10
    $ rfp-agent search --profile examples/atlanta_it_profile.toml
    4,360 open notices with 10+ days left · ranked by fit
    77 Help Desk IT Support Services Bridge EPA · special
    77 Utilization Management Software VA · sources
    75 NILE ISS 6 Engineering Services Navy · small biz
    75 Fountainhead DOJ · small biz
    74 IT Support Services (ITSS) DHS · presol.
    $ rfp-agent far "per diem rate for lodging in Atlanta?"
    refused 0.620 < floor 0.711 · FAR doesn't cover it

    02 · Score

    A number you can argue with.

    The fit score is rules, not a model: five weighted parts, each with a written reason, so a business-development lead can see why a notice ranks where it does and disagree with a specific weight.

    The brief turns scores into GO (70+), REVIEW (40-69) or NO-GO, and never says GO for an ineligible set-aside, an impossible deadline, or a sole-source notice.

    PartMaxRuleVA
    NAICS35exact 35 · same group 2035
    Set-aside25held 25 · open 15 · lacking caps total at 1015
    Keywords202+ in title 20 · 1 in title 12 · text 612
    Deadline10enough days 10 · at least half 510
    Place10target state 10 · none 5 · other 25
    Total100"NAICS 541519 is one of the firm's codes" · "title keyword: software" · "14 days to respond (need 10)"77

    03 · Check the FAR

    It knows the rules.

    The FAR tool retrieves 50 passages, collapses them to sections, and checks two gates calibrated on nonsense probes, not on hand-labeled refusals. It returns sections as evidence and never writes an answer.

    QUESTION

    When must a contracting officer set aside an acquisition for small business?

    ANSWER ALLOWED · 0.840
    1. 19.502-1 Requirements for setting aside acquisitions
    2. 19.502-2 Total small business set-asides
    3. 19.502-5 Insufficient reasons for not setting aside
    4. 19.502-9 Withdrawing or modifying set-asides

    QUESTION

    What is the per diem rate for lodging in Atlanta in 2026?

    REFUSED · 0.620 < 0.711
    1. 31.205-46 Travel costs (points to the travel regulations, gives no rates)

    The FAR says which regulation sets travel rates, not the rates. A system that answered here would invent a number.

    Plugs in anywhere

    Four tools over MCP.

    Add one block to Claude Desktop or Claude Code and ask in plain English: "find small-business IT notices in Georgia closing after the 15th and score them for us."

    search_opportunitiesget_opportunityscore_opportunityfar_lookup
    // claude_desktop_config.json
    {
      "mcpServers": {
        "rfp-agent": {
          "command": "uv",
          "args": ["--directory", "/path/to/rfp-agent",
                   "run", "rfp-agent-mcp"]
        }
      }
    }

    Measured, not claimed

    What works, and what doesn't.

    Evals ran on a laptop through Ollama at temperature 0, with the real FAR index. The table looks perfect; the full task shows where small local models still fail.

    Eval categoryCasesRules baselinellama3.1:8bqwen2.5:7bDecided by
    Tool choice77/77/77/7the model
    FAR refusal77/77/77/7retrieval gates
    Fit bands55/55/55/5scoring rules

    Where the models failed

    llama3.1:8b put all eleven profile keywords into one search, got zero results, and stopped. Before a fix, it invented three notice ids in its summary.

    qwen2.5:7b stacked every filter, got nothing, then retried after the tool explained empty results. Its summary still named the wrong NAICS code.

    Tool-choice cases grade the tool name only; both models made up argument values that still passed.

    What holds anyway

    The brief's tables are built only from tool results, so made-up notice ids never reach them. The model-written summary is labeled as such and should be checked against the tables.

    Refusals and scores never depend on the model, so a weaker model can't talk the system into answering a question the FAR doesn't cover.

    78 tests run with no network and no model; CI runs lint, tests and offline evals.

    Quick start

    Runs on your laptop.

    Python 3.12 and uv. The public extract needs no API key; a SAM.gov key is optional and read from your keychain, never written to disk.

    git clone https://github.com/gss-18/rfp-agent && cd rfp-agent && uv sync
    # get notices (public CSV, no key) and build the store
    uv run rfp-agent extract && uv run rfp-agent build
    # best fits for a company, at least 10 days to respond
    uv run rfp-agent search --min-days-left 10 \
      --profile examples/atlanta_it_profile.toml
    # go/no-go brief with a local model
    uv run rfp-agent brief --llm ollama --model qwen2.5:7b

    FAQ

    Questions

    Why is the fit score rules and not an LLM?

    A bid decision needs a reason a person can check. Rules give the same score every time, explain every point, and let a business-development lead change a weight they disagree with. The LLM's job is to choose tools and summarize, not to decide fit.

    How does the FAR tool decide to refuse?

    Two gates from the companion project abstain-rag: the best section must score at least 0.711, a floor set from nonsense probe queries built from real FAR words, and it must stand out from the next nine sections by a small margin. On the FAR test set this refuses most off-topic and near-miss questions while answering almost all real ones.

    Does it need an API key or a paid model?

    No. The public daily extract has every open notice and needs no key, and the agent runs on free local models through Ollama. A personal SAM.gov key adds fresher data; it is read from the macOS Keychain or an environment variable and never stored in the repo.

    Is the generated brief legal or bidding advice?

    No. The tables come from SAM.gov data and rule-based scores; the FAR tool returns sections to read, not interpretations. The model-written summary can be wrong, as the results above show, and is labeled so you can check it.

    What is MCP?

    The Model Context Protocol is an open standard for giving AI assistants tools. Running rfp-agent as an MCP server means any compatible client can search notices, score them and look up the FAR without custom integration code.