treasury_debt

Pack: treasury-fiscal · Endpoint: https://gateway.pipeworx.io/treasury-fiscal/mcp

Check current US national debt with historical data points. Returns total public debt outstanding over time.

Parameters

NameTypeRequiredDescription
limitnumbernoNumber of records to return (default 10)

Example call

Arguments

{
  "limit": 10
}

curl

curl -X POST https://gateway.pipeworx.io/treasury-fiscal/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"treasury_debt","arguments":{"limit":10}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('treasury_debt', {
  "limit": 10
});

More examples

{
  "limit": 20
}

Response shape

Always returns: description, count, records

FieldTypeDescription
descriptionstringDescription of the data
countnumberNumber of records returned
recordsarrayNational debt records
Full JSON Schema
{
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "Description of the data"
    },
    "count": {
      "type": "number",
      "description": "Number of records returned"
    },
    "records": {
      "type": "array",
      "description": "National debt records",
      "items": {
        "type": "object",
        "properties": {
          "record_date": {
            "type": "string",
            "description": "Date of the record"
          },
          "total_public_debt_outstanding": {
            "type": "number",
            "description": "Total public debt outstanding"
          },
          "debt_held_by_public": {
            "type": "number",
            "description": "Debt held by the public"
          },
          "intragovernmental_holdings": {
            "type": "number",
            "description": "Intragovernmental debt holdings"
          }
        }
      }
    }
  },
  "required": [
    "description",
    "count",
    "records"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "treasury-fiscal": {
      "url": "https://gateway.pipeworx.io/treasury-fiscal/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026