4,000+ servers built on vurb.ts
Vinkius
Mastra AISDK
Mastra AI
USAspending (Federal Spending) MCP Server

Bring Federal Spending
to Mastra AI

Learn how to connect USAspending (Federal Spending) to Mastra AI and start using 32 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.

MCP Inspector GDPR Free for Subscribers
Autocomplete Awarding AgencyAutocomplete GlossaryAutocomplete LocationAutocomplete RecipientBulk Download AwardsDownload SearchGet Agency AwardsGet Agency Awards CountGet Agency Budgetary ResourcesGet Agency OverviewGet Agency Sub AgenciesGet AwardGet Award FundingGet Award TypesGet Data DictionaryGet Disaster Agency SpendingGet Disaster Award AmountGet Disaster OverviewGet Download StatusGet GlossaryGet RecipientGet Recipient ChildrenGet Recipient StateGet SubawardsGet Toptier AgenciesGet TransactionsList RecipientsSearch New Awards Over TimeSearch Spending By AwardSearch Spending By CategorySearch Spending By GeographySearch Spending Over Time

Compatible with every major AI agent and IDE

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
USAspending (Federal Spending)

What is the USAspending (Federal Spending) MCP Server?

Connect to the official USAspending database and gain unprecedented transparency into how the United States government allocates its budget. This server allows any AI agent to query real-time federal financial data, from high-level agency overviews to specific contract details.

What you can do

  • Agency Insights — Retrieve comprehensive overviews of toptier agencies, including their budgetary resources and obligations.
  • Award Tracking — Search and filter through millions of federal awards, contracts, and grants using advanced criteria.
  • Geographic Analysis — Break down spending by state, county, or congressional district to see where the money is going.
  • Sub-Agency Breakdown — List specific offices and sub-agencies within a department to identify internal spending distribution.
  • Historical Trends — Analyze spending and new award counts over time to identify fiscal patterns.

How it works

  1. Subscribe to this server
  2. Enter your USAspending API Key (if required for higher rate limits)
  3. Start auditing federal spending from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Policy Researchers — quickly gather data on agency obligations and budgetary resources for reports
  • Journalists — track federal contracts and grants in specific regions or categories for investigative stories
  • Data Analysts — export and analyze spending trends over time across different government sectors

Built-in capabilities (32)

autocomplete_awarding_agency

Awarding agencies matching search text

autocomplete_glossary

Glossary terms matching search text

autocomplete_location

Locations based on search text

autocomplete_recipient

Recipient names and UEI based on search text

bulk_download_awards

Generates ZIP file of award data in CSV

download_search

ZIP file for Awards, Subawards, and Transactions

get_agency_awards

Get summary of transactions and obligations for an agency

get_agency_awards_count

Count of award types for agencies in a fiscal year

get_agency_budgetary_resources

Get budgetary resources and obligations by fiscal year

get_agency_overview

Get agency overview for details page

get_agency_sub_agencies

List sub-agencies and offices with obligated amounts

get_award

Get details about a specific award

get_award_funding

Federal account and agency funding info for an award

get_award_types

Map of award types by grouping

get_data_dictionary

JSON structure of the Rosetta Crosswalk Data Dictionary

get_disaster_agency_spending

Insights on agencies receiving disaster funding

get_disaster_award_amount

Obligation and outlay aggregations for disaster awards

get_disaster_overview

Overview of disaster/emergency funding and spending

get_download_status

Current status of a requested download job

get_glossary

List of glossary terms and definitions

get_recipient

Individual recipient details

get_recipient_children

Recipient details based on identifier

get_recipient_state

Basic information about a specified state

get_subawards

Subawards related to a specific parent award

get_toptier_agencies

All toptier agencies and relevant data

get_transactions

Transactions related to a specific parent award

list_recipients

List of recipients in the database

search_new_awards_over_time

List of time periods with new awards

search_spending_by_award

Search and filter awards

search_spending_by_category

g., agency, recipient, CFDA). Grouped spending data for visualizations

search_spending_by_geography

Spending by state, county, or congressional district

search_spending_over_time

Aggregated transaction amounts over time

Why Mastra AI?

Mastra's agent abstraction provides a clean separation between LLM logic and USAspending (Federal Spending) tool infrastructure. Connect 32 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

  • Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add USAspending (Federal Spending) without touching business code

  • Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

  • TypeScript-native: full type inference for every USAspending (Federal Spending) tool response with IDE autocomplete and compile-time checks

  • One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

M
See it in action

USAspending (Federal Spending) in Mastra AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Why Vinkius

USAspending (Federal Spending) and 4,000+ other MCP servers. One platform. One governance layer.

Teams that connect USAspending (Federal Spending) to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.

4,000+MCP Servers ready
<40msCold start
60%Token savings
Raw MCP
Vinkius
Server catalogFind and host yourself4,000+ managed
InfrastructureSelf-hostedSandboxed V8 isolates
Credential handlingPlaintext in configVault + runtime injection
Data loss preventionNoneConfigurable DLP policies
Kill switchNoneGlobal instant shutdown
Financial circuit breakersNonePer-server limits + alerts
Audit trailNoneEd25519 signed logs
SIEM log streamingNoneSplunk, Datadog, Webhook
HoneytokensNoneCanary alerts on leak
Custom domainsNot applicableDNS challenge verified
GDPR complianceManual effortAutomated purge + export
Enterprise Security

Why teams choose Vinkius for USAspending (Federal Spending) in Mastra AI

The USAspending (Federal Spending) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 32 tools execute in hardened sandboxes optimized for native MCP execution.

Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

USAspending (Federal Spending)
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

The Vinkius Advantage

How Vinkius secures USAspending (Federal Spending) for Mastra AI

Every tool call from Mastra AI to the USAspending (Federal Spending) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.

< 40msCold start
Ed25519Signed audit chain
60%Token savings
FAQ

Frequently asked questions

01

How do I get an overview of a specific agency's spending?

Use the get_agency_overview tool by providing the agency's toptier code. The agent will return high-level data including total obligations and budgetary resources.

02

Can I see which sub-agencies are spending the most within a department?

Yes! The get_agency_sub_agencies tool lists all sub-agencies and offices associated with a toptier agency, along with their respective obligated amounts.

03

Is it possible to filter federal awards by geographic location?

Absolutely. Use search_spending_by_geography to aggregate spending data by state, county, or district, or use search_spending_by_award with geographic filters.

04

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.

05

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.

06

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

07

createMCPClient not exported

Install: npm install @mastra/mcp

Explore More MCP Servers

View all →