Overview
usaspending-mcp is a Modular Computing Platform (MCP) server designed to facilitate AI agents in accessing and interacting with the USAspending.gov API, providing tools and utilities for retrieving and analyzing U.S. government spending data.
To use usaspending-mcp, configure the server with the necessary parameters and utilize the provided endpoints to query spending data based on agency IDs, award IDs, or keywords.
- Access to USAspending.gov API for government spending data - Multiple endpoints for specific queries (e.g., by agency, award ID, keywords) - Streamlined data retrieval and analysis tools
- Analyzing government spending trends by agency.
- Retrieving detailed information about specific awards.
- Conducting keyword-based searches for spending data.
Add to your AI client
Use these steps to connect usaspending-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"usaspending-mcp-flothjl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-usaspending-mcp-flothjl"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"usaspending-mcp-flothjl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-usaspending-mcp-flothjl"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"usaspending-mcp-flothjl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-usaspending-mcp-flothjl"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"usaspending-mcp-flothjl": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-usaspending-mcp-flothjl"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"usaspending-mcp-flothjl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-usaspending-mcp-flothjl"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"usaspending-mcp-flothjl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-usaspending-mcp-flothjl"
]
}
}
}FAQ
What is the purpose of usaspending-mcp?
It serves as a server to interact with the USAspending.gov API, making it easier to access and analyze government spending data.
How do I configure usaspending-mcp?
Configuration involves setting up the server with the appropriate parameters and using the provided YAML configuration format.
Is usaspending-mcp open source?
Yes! The project is available on GitHub for public use and contributions.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1445,"uuid":"66339698-6450-4e79-9503-b5b39eba1ac2","name":"usaspending-mcp","title":"usaspending-mcp","description":"mcp server to interact with usaspending.gov api","avatar_url":"https://avatars.githubusercontent.com/u/16403356?v=4","created_at":"2025-02-20T15:51:32.016Z","updated_at":"2025-02-23T07:21:40.054Z","status":"created","author_name":"flothjl","author_avatar_url":"https://avatars.githubusercontent.com/u/16403356?v=4","tags":"mcp,usaspending,data-analysis","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/flothjl/usaspending-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]