/treasury-fiscaldata-mcp-server:treasury-fiscaldata-guidefrom treasury-fiscaldata-mcp-server
Use treasury_* tools for multi-step Treasury fiscal analysis: establish comparable reporting periods, retrieve complete datasets, and analyze staged tables without double-counting fiscal totals.
Ships in treasury-fiscaldata-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this server for Treasury fiscal accounts, debt outstanding, the average interest Treasury pays on outstanding securities, and statutory reporting exchange rates. Establish the measure before choosing a dataset: average borrowing costs and reporting exchange rates do not answer questions about current market yields or spot FX.
Resolve an endpoint and its field names through treasury_list_datasets. Its catalog is curated; an absent entry does not establish that Treasury lacks the dataset. For an unlisted endpoint or field, consult Treasury's documentation before querying it.
Read category values from records for the period being studied. A field name identifies a column, not the set of values that column contains; security descriptions and country names must match Treasury's returned vocabulary.
The input canvas_id requests staging; it does not choose a table name or identify a destination canvas. The returned canvas_id is the server-assigned table name. Use that returned name for dataframe inspection and SQL. A SQL result persisted with register_as instead returns its name in registered_as.
total_debt corresponds to the raw staged column tot_pub_debt_out_amt; interest responses rename avg_interest_rate_amt to avg_interest_rate_pct inline."null" into zero.row_count_capped means the response count is a cap, not the full result size; a smaller preview can hide additional rows even when the count is exact. Materializing a SQL result cannot restore source pages that were never staged.Choose the fiscal measure and reporting period → discover endpoint, fields, and actual category values → retrieve the required pages or series → inspect staged schemas and coverage → calculate on comparable rows → report the measure, units, period, and any remaining coverage limit.
Staged analysis. Treasury source tools can stage results as DataCanvas tables, and the response carries a canvas_id. Call treasury_dataframe_describe for the staged table and column names before writing SQL, then treasury_dataframe_query with a read-only query. Each source staging request creates a separate table on the tenant's shared canvas; passing a previous output name back as input does not append rows. Tables expire, so retain the source selection needed to fetch them again.
Multi-page pull. Keep endpoint, fields, filters, sort, and page size consistent while walking pages. Stage each page separately, verify its source parameters, then combine disjoint pages with UNION ALL. Run the aggregate over the combined relation, not separately over inline previews. If the source changes during retrieval, reconcile the fetched coverage before claiming a complete snapshot.
Latest comparison. Retrieve the relevant types or countries, inspect each row's date, and choose a shared period before calculating differences. For exchange-rate history, retain both record_date and effective_date: Treasury can amend a quarter's rate under the same record date. Establish which effective version the task needs before collapsing rows.
Fiscal breakdown. Inspect a bounded period's hierarchy identifiers, descriptions, and amount columns. Select one consistent level and one period basis, verify units from the dataset description, then aggregate. Keep classification identifiers available so the chosen population remains auditable.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
treasury-fiscaldata-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin treasury-fiscaldata-mcp-server