TRORBOT MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TRORBOT MCP Server Which CFO Act agencies improved compliance most from FY2021 to FY2025?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TRORBOT MCP Server
GSA MCP Server and SI Agent Government Hackathon 2026 — Dataset Access Server
An MCP (Model Context Protocol) server that makes Treasury's publicly available federal agency delinquent debt referral compliance data, spanning FY2016 to present, easier to use from Claude Desktop, Claude Code, Cursor, or any other MCP-compatible AI client.
The data is the 120 Day Delinquent Debt Referral Compliance Report, which the Bureau of the Fiscal Service publishes quarterly on Fiscal Data from agencies' Treasury Report on Receivables (TROR) filings. It is public domain: anyone can browse it, download it, or call its API without registering. This server adds no data of its own and has no access to non-public Treasury data or systems. It turns plain-English questions into the right public API calls and calculations.
What This Server Exposes
The public compliance report tracks whether federal agencies meet the requirement, set by the DATA Act of 2014, to refer legally enforceable non-tax debts more than 120 days delinquent to the Treasury Offset Program. This MCP server queries that public dataset on demand: 12,800+ quarterly agency and bureau records from FY2016 to present.
Tools (7)
Tool | Credentials | What it does |
| None | List federal agencies in the public compliance report, with fiscal year coverage |
| None | Query published DDR compliance records by agency, fiscal year, and quarter |
| None | Rank agencies by change in compliance rate or debt amounts over a FY window, with a government-wide aggregate. Filter to the 24 CFO Act agencies ( |
| None | Validate an agency's draft quarterly TROR Form 05 lines: computes the form's derived lines and the Treasury Offset Program compliance rate, runs consistency checks, and compares against the agency's last published quarter. Validates only; nothing is stored or filed |
| AWS (S3 Vectors) | Optional: search summaries of publicly reported policy events behind data changes |
| AWS (S3 Vectors) | Optional: search public program rules, legal authorities, TFM chapters |
| AWS (S3 Vectors) | Optional: search the public Annual TROR Reports to Congress |
The four tools that need no credentials call only the public Fiscal Data API (api.fiscaldata.treasury.gov), the same API anyone can call directly. Any judge or user can test them immediately. validate_tror_submission works only on the draft figures you give it and the public published rates; it stores nothing and files nothing.
Prompts (2)
Prompt | What it does |
| Guides a 5-step structured analysis of an agency's compliance trend |
| Explains a debt collection program using guidance + recent policy context |
Resource (1)
URI | What it contains |
| Current FY, data coverage, quarter definitions, freshness notes |
Related MCP server: treasury-fiscaldata-mcp
Quickstart
Prerequisites
uv — Python package manager
Python 3.11+
Install
git clone https://github.com/tonymon/trorbot-mcp.git
cd trorbot-mcp
uv syncRun the server
uv run trorbot-mcpIn stdio mode (the default) the server talks to an MCP client over standard input and
output, so you normally let the client start it (see below) rather than running it
yourself. To change defaults or enable the optional knowledge-base tools, copy
.env.example to .env and edit it.
Run as HTTP server (local testing)
MCP_TRANSPORT=http PORT=8080 uv run trorbot-mcpThe endpoint is http://127.0.0.1:8080/mcp. It has no authentication and listens on
this machine only; see SECURITY.md before exposing it.
Connect an MCP client
The server works with any MCP client that can launch a local stdio server. Every client needs the same command:
uv run --directory /path/to/trorbot-mcp trorbot-mcpReplace /path/to/trorbot-mcp with the absolute path to your clone. The public-data
tools need no credentials or environment variables.
Most clients accept this JSON shape:
{
"mcpServers": {
"trorbot": {
"command": "uv",
"args": ["run", "--directory", "/path/to/trorbot-mcp", "trorbot-mcp"]
}
}
}If the client can't find uv: desktop apps often don't load your shell's PATH.
Set command to uv's full path instead. Find it with which uv (macOS and Linux) or
where uv (Windows); the location depends on how uv was installed, for example
~/.local/bin/uv with the official installer or /opt/homebrew/bin/uv with Homebrew.
Client | Where the configuration goes |
Claude Desktop | Settings → Developer → Edit Config ( |
Claude Code |
|
VS Code (agent mode) |
|
Cursor |
|
MCP Inspector (testing) |
|
Client settings change over time; check your client's documentation if a location above has moved.
Example Prompts
Use trorbot list_agencies to find agencies with "Defense" in the name.Use trorbot query_receivables to get FY2024 Q4 DDR compliance data
for "Department of Defense".Use trorbot get_delinquency_trends to show which CFO Act agencies
improved or declined the most in compliance rate from FY2021 to FY2025.Use trorbot get_delinquency_trends to show the year-by-year compliance
rate for "Social Security Administration" from FY2016 to FY2025.Agency Submission Demo
Today agencies compile TROR Form 05 figures by hand from several financial systems and key them into a web portal. Errors surface after filing. An agency's AI agent connected to TRORBOT MCP can check its draft first:
Confirm the agency name.
list_agenciesreturns the exact name Fiscal Data uses.Pull the prior quarter.
query_receivablesreturns the agency's last published compliance figures for comparison.Assemble the draft. The agent gathers the quarter's figures from the agency's systems of record.
Validate before filing.
validate_tror_submissionreturns a receipt with computed rates, check results and the change from the last published quarter, before anyone touches the form.
The tool's inputs follow TROR Form 05 line by line:
Part I-A (fiscal-year-to-date): beginning FY balance, new receivables, accruals, collections, adjustments, amounts written off.
Part I-C: total delinquencies, excluding currently-not-collectible (CNC) debt.
Part II-B section 1 (Treasury Offset Program, 120 days under the DATA Act): debt over 120 days delinquent, CNC debt, ineligible debt (bankruptcy, forbearance or appeals, foreclosure, other), exceptions (foreign sovereign, litigation, other), and debt referred directly or through Cross-Servicing. Each line takes dollars and a count.
From these it computes the form's derived lines (ending balance, 1C, 1H, 1M, 1P) and the compliance rate, debt referred ÷ debt required to be referred, which is the measure Fiscal Data publishes.
Example prompt:
I'm preparing the Small Business Administration's FY2026 Q4 TROR submission.
Validate these draft figures with trorbot validate_tror_submission:
Part I-A: beginning FY balance $9.0B, new receivables $800M, accruals $40M,
collections $650M, written off $40M. Total delinquent $1.5B (60,000 accounts).
Part II-B: over 120 days $1.1B (44,000), CNC $150M (6,000), bankruptcy $30M (1,200),
forbearance $20M (800), referred directly to TOP $700M (28,000),
referred via Cross-Servicing $320M (13,280).The receipt (abridged; the draft figures are illustrative, the prior quarter is SBA's published FY2026 Q3 rate):
{
"validation_status": "passed",
"receipt_id": "TROR-DRAFT-2026-Q4-SMALL-BUSINESS-ADMIN-47796C",
"computed_lines": {
"ending_balance_usd": 9150000000.0,
"total_over_120_and_cnc": {"usd": 1250000000.0, "count": 50000},
"eligible_for_offset": {"usd": 1200000000.0, "count": 48000},
"required_to_be_referred": {"usd": 1200000000.0, "count": 48000},
"referred_to_top": {"usd": 1020000000.0, "count": 41280},
"remaining_to_be_referred": {"usd": 180000000.0, "count": 6720},
"compliance_rate_amt_pct": 85.0,
"compliance_rate_cnt_pct": 86.0
},
"checks": [
{"rule": "ending_balance_not_negative", "result": "pass"},
{"rule": "over_120_within_total_delinquent", "result": "pass"},
{"rule": "ineligible_within_over_120_and_cnc", "result": "pass"},
{"rule": "exceptions_within_eligible", "result": "pass"},
{"rule": "referred_within_required", "result": "pass"},
{"rule": "quarter_has_closed", "result": "pass"}
],
"prior_quarter": {
"found": true,
"period": "FY2026 Q3",
"compared_against": "agency-wide: Small Business Administration",
"published_compliance_rate_amt_pct": 75.877,
"draft_vs_prior_change_pp": 9.12,
"direction": "improvement"
}
}Each check also carries a one-line explanation of the form rule behind it. The receipt ID is deterministic and marks a draft, not a filing.
TROR is filed by reporting entity, so a draft can be for a single bureau. Pass
bureau_name (the exact name from query_receivables with include_bureaus=true) and the
draft is compared against that bureau's published row instead of the agency-wide row; the
receipt's compared_against field says which. Published figures combine all receivable
types (direct loans, defaulted guaranteed loans, administrative), so compare a draft that
covers the same scope.
Environment Variables
Variable | Required | Default | Description |
| No |
| Fiscal Data API base URL |
| For KB tools | — | S3 Vectors bucket holding the knowledge-base indexes |
| No | AWS default chain | AWS profile used for KB search |
| No |
| Region of the vector bucket and Bedrock embeddings |
| No |
|
|
| No |
| Interface for HTTP mode; |
| No |
| Port for HTTP mode |
| No |
| Request timeout (seconds) |
Copy .env.example to .env and fill in values. The four public-data tools (list_agencies, query_receivables, get_delinquency_trends, validate_tror_submission) work without any credentials.
Data Source
120 Day Delinquent Debt Referral Compliance Report on Treasury's public Fiscal Data site
Public dataset page, with CSV/JSON/XML downloads and a data dictionary: https://fiscaldata.treasury.gov/datasets/delinquent-debt-referral-compliance/
API endpoint:
GET https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/debt/tror/data_act_complianceCoverage: FY2016 Q1 — present (~12,800 agency and bureau quarterly records)
Published by: Bureau of the Fiscal Service, from agencies' Treasury Report on Receivables (TROR) filings
Update cadence: Quarterly (~45–60 days after quarter close)
License: Public domain; no registration, API key, or credentials required
Every figure the public-data tools return can be checked against this page.
Key Fields
Field | Type | Description |
| String | Federal agency name |
| Year | Fiscal year (Oct–Sep) |
| Quarter | 1=Oct–Dec, 2=Jan–Mar, 3=Apr–Jun, 4=Jul–Sep |
| USD | Debt eligible for 120-day referral |
| USD | Debt actually referred |
| % | Referred ÷ eligible (dollar basis) |
| % | Referred ÷ eligible (count basis) |
Architecture
Claude Desktop / Cursor / any MCP client
│
│ MCP protocol (stdio or HTTP/SSE)
▼
┌─────────────────────────────────────┐
│ TRORBOT MCP Server │
│ (FastMCP, Python) │
│ │
│ Tools Prompts Resources │
│ ├ list_agencies │
│ ├ query_receivables fiscal-year │
│ ├ get_delinquency_trends metadata │
│ ├ validate_tror_submission │
│ ├ search_program_context │
│ ├ search_program_guidance │
│ └ get_annual_report_insights │
└──────────────┬──────────────────────┘
│
┌───────┴───────┐
▼ ▼
Fiscal Data API Amazon S3 Vectors
(public, no auth) (optional KB tools)
│ │
TROR DDR 3 indexes, queries
compliance embedded with Titan
FY2016–present Text Embeddings V2Knowledge Bases
The three knowledge-base tools are optional and off by default. They search an Amazon S3 Vectors bucket that you configure, one index per knowledge base. No knowledge-base content is included in this repository, and without a configured bucket these tools send no requests. The indexes are meant to hold publicly available documents only:
Index | Tool | Contents (all publicly available) |
|
| Summaries of publicly reported news and agency announcements that explain changes in the data |
|
| DCIA and DATA Act text, GAO-02-313, Fiscal Service public FAQs (AWG, Cross-Servicing, CRS, TOP), TROR instructional workbooks |
|
| Annual TROR Reports to Congress, tagged by |
A search embeds the question with Amazon Titan Text Embeddings V2 (1,024 dims, the model the chunks were embedded with) and returns the closest chunks with their source and a cosine similarity score. scripts/load_kb_vectors.py creates the bucket and indexes and loads them from an export of the chunks and vectors. At this size the cost is well under $1/month (storage plus ~$2.50 per million queries).
Evaluation
8 ground-truth analyst questions answered through the live tools and scored against answers computed independently from raw API rows — 8/8 passing (the initial commit scored 3/8). See eval/README.md.
uv run python eval/run_eval.py --liveDevelopment
uv sync --group dev
# Run tests (offline — Fiscal Data responses are replayed from tests/cassettes/)
uv run pytest tests/ -v
# Lint
uv run ruff check .
# Re-record cassettes from the live API (only when upstream data or a query changes)
uv run python tests/record_cassettes.pyProject structure
trorbot-mcp/
├── src/trorbot_mcp/
│ ├── app.py # FastMCP server entry point
│ ├── config.py # pydantic-settings configuration
│ ├── models.py # Pydantic input models
│ ├── utils.py # Shared HTTP helpers (Fiscal Data)
│ ├── kb.py # Knowledge-base search (S3 Vectors + Titan embeddings)
│ ├── tools/ # 7 MCP tools
│ ├── prompts/ # 2 MCP prompts
│ └── resources/ # 1 MCP resource
├── eval/ # ground-truth eval: cases, runner, fixtures, results
├── scripts/load_kb_vectors.py # builds the S3 Vectors knowledge-base indexes
├── tests/
│ ├── test_tools.py # registration and input-validation tests
│ ├── test_fiscal_tools.py # tool behavior, replayed from recorded API responses
│ ├── conftest.py # respx replay fixtures
│ ├── record_cassettes.py # re-records cassettes from the live API
│ ├── test_eval.py # runs the eval offline in CI
│ ├── test_kb.py # KB search with stubbed AWS clients
│ └── cassettes/ # recorded Fiscal Data API responses
├── pyproject.toml
└── .env.exampleHackathon Alignment
Category: Dataset Access Server
Judging criteria met:
Criteria | How |
Real government dataset | Public 120 Day Delinquent Debt Referral Compliance Report on Fiscal Data, 12,800+ records |
No credentials to demo | 4 of 7 tools are fully public |
MCP primitives | All three used: tools, prompts, resources |
Useful to analysts | Compliance trends, agency benchmarking, policy context |
Extensible | Optional KB tools add narrative context from public documents when an S3 Vectors bucket is configured |
License
Public domain — see LICENSE (CC0 1.0). Security posture: SECURITY.md. Data sourced from the U.S. Department of the Treasury, Bureau of the Fiscal Service.
Available Tools
7 toolsget_annual_report_insightsGet insights from annual TROR reportsARead-onlyIdempotent
Search the optional knowledge base of public Annual TROR Reports to Congress for government-wide receivables summaries, year-over-year trend analysis, and program highlights.
Each annual report (FY2016–present) contains:
Government-wide totals: receivables outstanding, delinquencies, collections
Agency-by-agency breakdowns and compliance summaries
Highlight narratives on significant changes and program achievements
Cross-Servicing and TOP referral totals
CRS and AWG program statistics
Use this tool for authoritative narrative context from Treasury's official reports. Complement with query_receivables for precise current numbers and search_program_context for recent policy events not yet in an annual report.
Requires: TRORBOT_KB_BUCKET and AWS credentials. Returns: { passages: [{text, source, source_uri, relevance_score}], query, kb }
Inputs: params (required). Returns: object
get_delinquency_trendsGet DDR compliance trendsARead-onlyIdempotent
Compute year-over-year trends in federal agency DDR compliance metrics.
Fetches agency-level data for a range of fiscal years from the Fiscal Data API, then ranks agencies by how much their selected metric changed from the first to the last year in the window. Useful for spotting systematic improvement or deterioration in referral compliance across the government or within one agency.
When agency_name is omitted, returns the top_n agencies by change magnitude across the whole government. When agency_name is provided, returns the year-by-year series for that single agency.
For "biggest movers" questions, set cfo_agencies_only=True (the 24 CFO Act agencies) or min_eligible_debt_usd — otherwise tiny agencies whose rates swing between 0% and 100% on a handful of debts dominate the ranking.
Inputs: params (required). Returns: object
list_agenciesList TROR reporting agenciesARead-onlyIdempotent
List federal agencies that report 120-day delinquent debt referral (DDR) compliance data under the Treasury Report on Receivables (TROR).
Returns unique agency names, whether each is a CFO Act agency, and their reporting fiscal year range. Set cfo_agencies_only to list just the 24 CFO Act agencies. Use the exact agency_name returned here when calling query_receivables or get_delinquency_trends. Supports substring search and fiscal-year filtering.
Data source: Fiscal Data API (api.fiscaldata.treasury.gov), updated quarterly. Returns: { agencies: [{agency_name, cfo_agency, first_fy, latest_fy}], total, has_more }
Inputs: params (required). Returns: object
query_receivablesQuery TROR DDR compliance dataARead-onlyIdempotent
Query federal agency 120-day delinquent debt referral (DDR) compliance data from the Treasury Report on Receivables (TROR), sourced from the DATA Act compliance dataset on Fiscal Data.
Returns eligible debt amounts, amounts referred vs not referred to cross-servicing/TOP, and compliance rates (both dollar-amount and count basis).
Coverage: FY2016–present. Use list_agencies first to get the exact agency_name for filtering — partial matches are not supported.
Fiscal quarters: Q1=Oct–Dec, Q2=Jan–Mar, Q3=Apr–Jun, Q4=Jul–Sep.
Data source: Fiscal Data API (api.fiscaldata.treasury.gov), updated quarterly. Returns: { records: [...], total, has_more, next_offset, coverage_note }
Inputs: params (required). Returns: object
search_program_contextSearch policy and regulatory contextARead-onlyIdempotent
Search the optional Context Events knowledge base for policy events, regulatory changes, and program context affecting federal receivables.
This KB holds summaries of publicly available sources about legislation (DCIA, DATA Act, Debt Collection Improvement Act), Treasury Financial Manual updates, program changes to Cross-Servicing, TOP (Treasury Offset Program), AWG, and CRS, and significant events that explain trends or anomalies in the receivables data.
Use this tool to explain WHY data changed, not just WHAT it shows. For example, after finding a compliance-rate drop with query_receivables, call this tool to find policy or operational context that explains the change.
Requires: TRORBOT_KB_BUCKET and AWS credentials. Returns: { passages: [{text, source, source_uri, relevance_score}], query, kb }
Inputs: params (required). Returns: object
search_program_guidanceSearch program rules and legal authoritiesARead-onlyIdempotent
Search the optional Program Documentation knowledge base (public documents) for rules, procedures, and legal authorities governing federal debt collection and receivables reporting.
This KB covers:
Cross-Servicing: referral thresholds, delinquency definitions, agency exemptions
TOP (Treasury Offset Program): offset rules, eligibility, exclusions
AWG (Administrative Wage Garnishment): procedures and limits
CRS (Centralized Receivables Service): onboarding, program rules
DCIA (Debt Collection Improvement Act) requirements
TROR reporting requirements, form instructions, data definitions
Treasury Financial Manual (TFM) receivables chapters
Use this tool when you need to understand WHAT the rules are — thresholds, definitions, compliance requirements. For WHY data changed, use search_program_context.
Requires: TRORBOT_KB_BUCKET and AWS credentials. Returns: { passages: [{text, source, source_uri, relevance_score}], query, kb }
Inputs: params (required). Returns: object
validate_tror_submissionValidate a draft TROR quarterly submissionARead-onlyIdempotent
Validate a federal agency's draft quarterly TROR submission before it is filed.
Takes the TROR Form 05 lines that drive referral compliance: Part I-A (receivables and collections, fiscal-year-to-date), the Part I-C delinquency total, and Part II-B section 1 (debt eligible for referral to the Treasury Offset Program at 120 days, with ineligible debt, exceptions, and debt referred). Enter every amount as a positive figure; the tool applies the form's signs.
It then:
Computes the form's derived lines: ending balance (Part I-A line 7), debt eligible for offset (1H), debt required to be referred (1M), and the balance remaining to be referred (1P).
Computes the compliance rate, referred ÷ required, on a dollar and an account basis: the same measure Treasury publishes on Fiscal Data.
Checks the lines for consistency and that the quarter has closed.
Compares the draft rate with the last published quarter (live API) at the draft's level: the bureau's row when bureau_name is given, else the agency's.
No data is persisted. The output is a receipt the agency can review and correct before formal filing.
Returns: { validation_status, receipt_id, computed_lines, checks, prior_quarter }
Inputs: params (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The core data tools (list_agencies, query_receivables, get_delinquency_trends) and validate_tror_submission target clearly distinct operations. The three knowledge-base search tools (search_program_context, search_program_guidance, get_annual_report_insights) share an identical input/output shape and overlapping corpora, so an agent must rely on the prose distinctions ('WHY vs WHAT vs authoritative narrative') to choose correctly.
Every tool follows a snake_case verb_noun pattern (list_agencies, query_receivables, get_delinquency_trends, search_program_guidance, validate_tror_submission) with no camelCase or vague bare verbs. Verb variation (list/query/get/search/validate) is semantically meaningful rather than inconsistent.
Seven tools is a tight, well-scoped set: three data-access tools, three knowledge-base lookups, and one validation tool. Each earns its place without obvious padding or redundancy.
The surface covers discovery (list_agencies), retrieval (query_receivables), analysis (get_delinquency_trends), interpretation (three KB tools), and a write-side validation workflow, which is strong lifecycle coverage. Minor gaps: no side-by-side multi-agency comparison tool and no bureau-level query path except indirectly through validate_tror_submission's bureau_name.
Maintenance
Related MCP Connectors
Query US Treasury national debt, interest rates, exchange rates, and fiscal datasets via MCP.
Treasury MCP — US Treasury Fiscal Data public API (free, no auth)
Treasury Fiscal MCP — US Treasury Fiscal Data API
Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceConnects to the US Treasury's Fiscal Data API, enabling users to fetch specific treasury statements, access historical data, and generate formatted reports.20-
- AlicenseNot gradedqualityDmaintenanceEnables querying U.S. Treasury fiscal data including debt, interest rates, auctions, and more via natural language, with no API key required.MIT
- AlicenseNot gradedqualityFmaintenanceProvides access to US Treasury Fiscal Data via a free, no-auth public API. Enables querying government financial data through natural language.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying US Treasury Fiscal Data through the Treasury Fiscal Data API, providing access to financial data such as debt, spending, and revenue.73 npmMIT