Skip to main content
Glama
DOGE MCP

DOGE MCP

by larasrinath

License: MIT Node.js: 18+ API: v0.0.2-beta

DOGE MCP

An MCP (Model Context Protocol) server that wraps the doge.gov public API, letting Claude query U.S. government spending transparency data — cancelled contracts, grants, leases, and payment records — directly from a conversation.

Disclaimer: This project is an independent, unofficial tool and is not affiliated with, endorsed by, or associated with the U.S. Department of Government Efficiency (DOGE), the U.S. federal government, or any government agency. All data is fetched in real time from the publicly available api.doge.gov API. The accuracy, completeness, and timeliness of the data are the sole responsibility of that API. This tool is provided for informational and research purposes only. Nothing returned by this server constitutes legal, financial, or political advice. Use responsibly and in accordance with applicable laws.

API status: The doge.gov API is in beta and subject to change without notice. Tool behaviour may change as the upstream API evolves.


Available Tools

Tool

Endpoint

Description

get_grant_savings

GET /savings/grants

Cancelled federal grants — agency, recipient, value, savings

get_contract_savings

GET /savings/contracts

Cancelled federal contracts — PIID, vendor, FPDS status, savings

get_lease_savings

GET /savings/leases

Cancelled property leases — location, sq ft, agency, savings

get_payments

GET /payments

Payment line items with justifications; filterable by agency, date, or org

get_payment_statistics

GET /payments/statistics

Aggregated payment counts by agency, date, and org name

Tool Parameters

get_grant_savings / get_contract_savings / get_lease_savings

Parameter

Type

Values

Default

sort_by

string

savings value date

—

sort_order

string

asc desc

—

page

number

≥ 1

1

per_page

number

1 – 500

100

get_payments

Parameter

Type

Values

Default

sort_by

string

amount date

—

sort_order

string

asc desc

—

page

number

≥ 1

1

per_page

number

1 – 500

100

filter

string

agency_name date org_name

—

filter_value

string

value to match

—

Filtering payments: filter and filter_value must always be supplied together. Use get_payment_statistics first to discover valid agency names and organisation names, then pass the exact string as filter_value.

get_payment_statistics — no parameters.


Related MCP server: USASpending MCP Server

Prerequisites

  • Node.js 18 or later

  • npm 9 or later

  • Claude Desktop (or any MCP-compatible client)


Installation

git clone https://github.com/larasrinath/doge_api.git
cd doge_api
npm install
npm run build

The compiled server lands in ./dist/index.js.


Claude Desktop Configuration

macOS

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows

Config file: %APPDATA%\Claude\claude_desktop_config.json

Linux

Config file: ~/.config/Claude/claude_desktop_config.json


Add the following block (adjust the path to match your machine):

{
  "mcpServers": {
    "doge": {
      "command": "node",
      "args": ["/absolute/path/to/doge_api/dist/index.js"]
    }
  }
}

macOS/Linux example:

"args": ["/Users/yourname/Projects/doge_api/dist/index.js"]

Windows example:

"args": ["C:\\Users\\yourname\\Projects\\doge_api\\dist\\index.js"]

Restart Claude Desktop after saving. The five DOGE tools will appear in the tool picker.


Example Prompts

Show me the 10 grants with the highest savings, sorted descending.
Which federal agencies cancelled the most contracts? Page through the results.
What agencies have payment data available? (use get_payment_statistics first)
Find all payments made to org_name "CONNECTICUT STATE DEPT OF REHABILITATION SERVICES".
List cancelled government leases sorted by savings, largest first.
Show me contracts cancelled by the General Services Administration.

Development

# Run directly without building (uses tsx, included in devDependencies)
npm run dev

# Rebuild after changes
npm run build

Project Structure

doge_api/
├── src/
│   ├── index.ts          # MCP server entry point
│   ├── client.ts         # Typed doge.gov API client (axios)
│   └── tools/
│       ├── savings.ts    # get_grant_savings, get_contract_savings, get_lease_savings
│       └── payments.ts   # get_payments, get_payment_statistics
├── package.json
├── tsconfig.json
├── LICENSE
└── README.md

Rate Limits

The api.doge.gov API enforces rate limits. If you receive a 429 error, wait a moment and retry. This server surfaces rate limit errors with a clear message rather than crashing silently.


License

MIT — see LICENSE.

Available Tools

5 tools
get_contract_savingsB

Retrieve cancelled federal contracts reported by DOGE. Each record includes the PIID, agency, vendor, contract value, estimated savings, FPDS status, a link to the FPDS entry, and the deletion date. Supports sorting and pagination.

Inputs: page, sort_by, per_page, sort_order.

get_grant_savingsA

Retrieve cancelled federal grants reported by DOGE. Each record includes the cancellation date, agency, recipient organisation, original dollar value, savings amount, and a link to usaspending.gov. Supports sorting and pagination.

Inputs: page, sort_by, per_page, sort_order.

get_lease_savingsA

Retrieve cancelled federal property leases reported by DOGE. Each record includes the cancellation date, city/state location, square footage, agency, annualised lease value, and the remaining-value savings. Supports sorting and pagination.

Inputs: page, sort_by, per_page, sort_order.

get_paymentsA

Retrieve government payment line items from select agencies processed via the Program Support Center. Each record includes payment date, amount, agency name, award description, FAIN, recipient payment justification, agency lead justification, and recipient organisation name. Use the filter + filter_value params to narrow results by agency_name, date (YYYY-MM-DD), or org_name. Tip: call get_payment_statistics first to discover valid agency names and org names.

Inputs: page, filter, sort_by, per_page, +2 more.

get_payment_statisticsA

Retrieve aggregated payment counts grouped by agency name, request date, and organisation name. No parameters required. Use this to discover which agencies and organisations have payment data before calling get_payments with a filter.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct data resource: cancelled grants, cancelled contracts, cancelled leases, payment line items, and payment aggregates. The get_payment_statistics description explicitly positions it as a discovery step before get_payments, so even the closest pair has a clear boundary. No two tools could be reasonably confused for one another.

    Naming Consistency5/5

    All five tools follow a uniform get_<noun> snake_case pattern (get_grant_savings, get_contract_savings, get_lease_savings, get_payments, get_payment_statistics). The naming is predictable and immediately readable.

    Tool Count5/5

    Five tools is well-scoped for a read-only data-retrieval server, with one tool per data category plus a supporting statistics tool. Nothing feels redundant or missing at the count level.

    Completeness4/5

    The surface covers all three DOGE savings categories plus payments and an aggregate/discovery endpoint, which is solid lifecycle coverage for a read-only dataset server. Minor gaps: the three savings tools only support sorting and pagination (no filtering by agency, recipient, or date), and there is no aggregate savings-totals endpoint analogous to get_payment_statistics.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables research of federal contract awards and competitive landscape analysis using the USASpending.gov API. Supports searching for contracts, analyzing recipients, tracking spending trends, and identifying market opportunities in government contracting.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables research of federal contract awards, market opportunities, and competitive landscapes using the USASpending.gov API. It provides specialized tools for AI agents to analyze government spending trends, identify incumbents, and search contractor details.
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables AI agents to search and analyze federal government contract opportunities and awards from SAM.gov and USASpending.gov, with tools for contract search, detail, agency spending, and trending sectors.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search federal contracts, analyze agency spending, track competitor wins, and monitor small business set-aside opportunities using SAM.gov, USASpending.gov, and FPDS data.
      1
      -