USAspending (Federal Spending) MCP Server for Mastra AIGive Mastra AI instant access to 32 tools to Autocomplete Awarding Agency, Autocomplete Glossary, Autocomplete Location, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect USAspending (Federal Spending) through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.
Ask AI about this MCP Server for Mastra AI
The USAspending (Federal Spending) MCP Server for Mastra AI is a standout in the Industry Titans category — giving your AI agent 32 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token. get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"usaspending-federal-spending": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "USAspending (Federal Spending) Agent",
instructions:
"You help users interact with USAspending (Federal Spending) " +
"using 32 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with USAspending (Federal Spending)?"
);
console.log(result.text);
}
main();
* 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
About 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.
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.
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.
The USAspending (Federal Spending) MCP Server exposes 32 tools through the Vinkius. Connect it to Mastra AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 32 USAspending (Federal Spending) tools available for Mastra AI
When Mastra AI connects to USAspending (Federal Spending) through Vinkius, your AI agent gets direct access to every tool listed below — spanning federal-spending, budget-analysis, transparency, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Autocomplete awarding agency on USAspending (Federal Spending)
Awarding agencies matching search text
Autocomplete glossary on USAspending (Federal Spending)
Glossary terms matching search text
Autocomplete location on USAspending (Federal Spending)
Locations based on search text
Autocomplete recipient on USAspending (Federal Spending)
Recipient names and UEI based on search text
Bulk download awards on USAspending (Federal Spending)
Generates ZIP file of award data in CSV
Download search on USAspending (Federal Spending)
ZIP file for Awards, Subawards, and Transactions
Get agency awards on USAspending (Federal Spending)
Get summary of transactions and obligations for an agency
Get agency awards count on USAspending (Federal Spending)
Count of award types for agencies in a fiscal year
Get agency budgetary resources on USAspending (Federal Spending)
Get budgetary resources and obligations by fiscal year
Get agency overview on USAspending (Federal Spending)
Get agency overview for details page
Get agency sub agencies on USAspending (Federal Spending)
List sub-agencies and offices with obligated amounts
Get award on USAspending (Federal Spending)
Get details about a specific award
Get award funding on USAspending (Federal Spending)
Federal account and agency funding info for an award
Get award types on USAspending (Federal Spending)
Map of award types by grouping
Get data dictionary on USAspending (Federal Spending)
JSON structure of the Rosetta Crosswalk Data Dictionary
Get disaster agency spending on USAspending (Federal Spending)
Insights on agencies receiving disaster funding
Get disaster award amount on USAspending (Federal Spending)
Obligation and outlay aggregations for disaster awards
Get disaster overview on USAspending (Federal Spending)
Overview of disaster/emergency funding and spending
Get download status on USAspending (Federal Spending)
Current status of a requested download job
Get glossary on USAspending (Federal Spending)
List of glossary terms and definitions
Get recipient on USAspending (Federal Spending)
Individual recipient details
Get recipient children on USAspending (Federal Spending)
Recipient details based on identifier
Get recipient state on USAspending (Federal Spending)
Basic information about a specified state
Get subawards on USAspending (Federal Spending)
Subawards related to a specific parent award
Get toptier agencies on USAspending (Federal Spending)
All toptier agencies and relevant data
Get transactions on USAspending (Federal Spending)
Transactions related to a specific parent award
List recipients on USAspending (Federal Spending)
List of recipients in the database
Search new awards over time on USAspending (Federal Spending)
List of time periods with new awards
Search spending by award on USAspending (Federal Spending)
Search and filter awards
Search spending by category on USAspending (Federal Spending)
g., agency, recipient, CFDA). Grouped spending data for visualizations
Search spending by geography on USAspending (Federal Spending)
Spending by state, county, or congressional district
Search spending over time on USAspending (Federal Spending)
Aggregated transaction amounts over time
Connect USAspending (Federal Spending) to Mastra AI via MCP
Follow these steps to wire USAspending (Federal Spending) into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @mastra/core @mastra/mcp @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Mastra AI with the USAspending (Federal Spending) MCP Server
Mastra AI provides unique advantages when paired with USAspending (Federal Spending) through the Model Context Protocol.
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
USAspending (Federal Spending) + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the USAspending (Federal Spending) MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query USAspending (Federal Spending), process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed USAspending (Federal Spending) as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query USAspending (Federal Spending) on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using USAspending (Federal Spending) tools alongside other MCP servers
Example Prompts for USAspending (Federal Spending) in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with USAspending (Federal Spending) immediately.
"Get the agency overview for the Department of Energy using toptier code 089."
"List all sub-agencies and their obligated amounts for the Department of Justice (toptier code 015)."
"Search for spending by geography for the state of Texas in fiscal year 2023."
Troubleshooting USAspending (Federal Spending) MCP Server with Mastra AI
Common issues when connecting USAspending (Federal Spending) to Mastra AI through Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpUSAspending (Federal Spending) + Mastra AI FAQ
Common questions about integrating USAspending (Federal Spending) MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.Can Mastra agents use tools from multiple servers?
Does Mastra support workflow orchestration?
Explore More MCP Servers
View all →
Mapillary
7 toolsAccess street-level imagery — search images, sequences, traffic signs and map features worldwide.

LearningSuite
10 toolsCreate and deliver corporate training programs with course authoring, quizzes, and progress tracking for distributed teams.

Yodiz
6 toolsManage user stories, sprints, bugs, and epics on Yodiz — the all-in-one agile project management and issue tracking tool.

SurveySparrow
12 toolsCollect feedback with conversational surveys that feel like chat and boost completion rates across employee and customer programs.
