usda-wasde
This server provides read-only MCP tools for browsing USDA WASDE releases and extracting tables, balance sheets, commodity/region reference lists, and narrative text.
List WASDE releases newest first, optionally bounded by
since/until, and fetch the latest release with its id, time, month, revision, and files.Retrieve any WASDE table page (
sr08–sr37) from a chosen month's XML or the latest release.Get a commodity balance sheet for a commodity and region, including U.S./Mexico matrices or world-page regions such as
ArgentinaandWorld.Browse packaged commodity matrices, table pages with titles/footnotes/matrices, and printed region texts, with case-insensitive search.
Read the report narrative from the XLS
WASDE Textsheet, falling back to PDF narrative pages when needed.Omit
monthto use the latest release; all tools are read-only, each call downloads and discards the source file, and MCP results are capped.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@usda-wasde Show me the latest U.S. corn WASDE balance sheet"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xippios-usda-wasde
Typed Python client, MCP server and FastAPI routes for USDA WAOB World Agricultural Supply and Demand Estimates, part of the xippios SDK family. Names and semantics follow the upstream documentation; every response carries its metadata (source, endpoint, retrieved_at, request).
Scope
Of WASDE the package reads what ESMIS catalogs (docs/upstream/): the list of WASDE's releases
with their files, and of a month's release its XML, its XLS and its PDF. The XML's tables,
printed pages 8 to 37, are read as one record per value from July 2010 on, in four forms, which
the files read of each year from 2010 to 2026 have (docs/upstream/OBSERVED.md, "Older and
revised files"). A file of another form is refused whole, with ValidationError after its
download. A task also refuses a month's file that lacks a page, states a value outside an
attribute or gives a row of pages 35 to 37 other statistics, since it asks the reader for pages
8 to 37; parse_wasde_xml refuses these where it is asked for pages, and else reads what the
file holds. A value or a label under a name of the layout's own texts, or a row left out, is not
noticed. On pages 12 to 15, whose XML names no table's commodity,
the record reads the block titles of the same release's XLS, and where the XLS does not give
one for each table a fixed table of the report's layout, which the package writes by hand
(sdk-core ADR-0060, decision 7, amendment 2026-11-29). On the U.S. pages, whose XML states no
unit for a row, the record reads the unit that the same XLS prints over its value
(https://github.com/xippios/sdk-usda-wasde/issues/17). The narrative is read from the XLS's
sheet WASDE Text, and from the PDF's narrative pages, text only, where the release has no
XLS, or its XLS has no such sheet, no text in it or only its placeholder, as July 2010's has;
where such a PDF cannot be read, the placeholder answers, with a note. A task reads the month's
latest release that carries the file kind, and of its files of that kind the first that ESMIS
lists whose name marks no original, revision or special report, else the first: a name that
starts with ORIG or R1, or that runs on after wasde-MM-DD-YYYY before its extension. So in
August 2013 it reads the revision's XML, wasde-08-12-2013.xml, the same bytes as the
original's ORIGwasde-08-12-2013.xml, and in May 2001 the report's PDF, wasde-05-10-2001.pdf,
listed after wasde-05-10-2001_wheat-revision.pdf, though where the report's PDF cannot be
read, the PDF listed before it answers, with a note; release_id and name name another
release or file. A documented
choice that a caller cannot make yet stands here with its public issue (sdk-core ADR-0060,
decision 8):
The TXT tables of the releases before July 2010, the first month whose WASDE has an XML file:
get_dataand the four lists refuse an earlier month before anything is sent (https://github.com/xippios/sdk-usda-wasde/issues/31).WAOB's archive of report data on www.usda.gov, monthly CSV files and two ZIP files of the months from April 2010 to December 2020 (https://github.com/xippios/sdk-usda-wasde/issues/30).
The release dates that WAOB's WASDE page prints for this year and the next (https://github.com/xippios/sdk-usda-wasde/issues/34).
What the package adds is filters after the fetch, since ESMIS serves a month's file whole:
get_data's commodity, region, table and attribute, each compared by equality with a
record's _label, and search on the four lists, which answer the distinct labels of the
month's own records. It packages no list, builds no name or grouping of its own but the fixed table
of the report's layout above, and picks no latest release for the caller: list_releases
answers WASDE's releases newest first.
Related MCP server: USDA NASS MCP Server
Install
uv add xippios-usda-wasde # client only
uv add "xippios-usda-wasde[mcp]" # + MCP server
uv add "xippios-usda-wasde[http]" # + FastAPI routerIt depends on xippios-usda-esmis, installed with it, to list WASDE's releases in ESMIS's
catalog and to download their files; this package's server serves its own tools only.
No API key is needed.
30-second example
from datetime import date
from xippios.usda.wasde import (
get_data,
get_report_text,
list_commodities,
list_releases,
)
releases = list_releases(since=date(2026, 1, 1)) # bound it: without since, refused
releases.data[0].id, releases.data[0].release_datetime # "796142", 2026-11-10 12:00:00+00:00
corn = get_data(2026, 10, commodity="CORN") # page 12's U.S. corn, from the XML and the XLS
corn.meta.endpoint, corn.meta.vintage # "wasde1026.xml", "796099": the ESMIS release id
row = corn.data[0]
row.table_label, row.commodity_source # "U.S. Feed Grain and Corn Supply and Use", "xls"
row.attribute_label, row.market_year_label, row.value # "Area Planted", "2024/25", "90.9"
row.unit, row.unit_source # "Million Acres", "xls": the XLS prints it over the row
[note.text for note in row.footnotes] # the table's note and its 1/, as printed
list_commodities(2026, 10, search="rice") # the month's own commodities: "TOTAL RICE", "Rice"
narrative = get_report_text(2026, 10) # the XLS's sheet WASDE Text, one string a paragraph
narrative.data[1][:6] # "WHEAT:"get_data answers one record per value of a month's tables, pages 8 to 37 of the
release's XML, complete in itself (WasdeRecord; sdk-core ADR-0060, decision 7): the
page's title (" WASDE - 676 - 12") with the report's number beside it
(page_title_number, 676), the report's month, the table's title, the commodity, the
region, the market year with its status, the forecast month, the row label with its class
and statistic, the unit, value as printed ("10.45 *") with value_number beside it
(10.45), and the footnotes with their texts. Each label stands as printed and beside it
its _label, the text with its line breaks, runs of spaces and footnote marks left out,
which the filters commodity, region, table and attribute compare; a market year's leaves its
status out too ("2025/26" for "2025/26 (Est.) "). Where the XML names the commodity or
the region only in the table's title, the record reads it there, and commodity_source
and region_source say title; on pages 12 to 15, whose
XML names no table's commodity, it reads the block title of the same release's XLS, or
where the XLS does not give one for each table a fixed table of the report's layout (sdk-core
ADR-0060, decision 7, amendment 2026-11-29), and commodity_source says which: title, xls or
layout. unit is what the file
states: the subtitle of the world and summary pages (8 to 10, 18 to 30), the label of a
reliability table for its average, smallest and largest, and in the oldest files for its
average difference and its largest below and above. On the U.S. pages (11 to 17, 31 to
34) the XML does not say which of its repeated unit rows the page shows, so the record
reads the unit that the same release's XLS prints over its value, Million Acres over
page 12's Area Planted, and unit_source says xls; a row whose label prints a unit of
its own, a price, a ratio or a per-capita figure (Avg. Farm Price ($/bu)), has none, and so
has every value of a U.S. page where the XLS cannot be read or does not print the page's
values as its XML does, with a note that says so
(https://github.com/xippios/sdk-usda-wasde/issues/17). A subtitle that
is no unit stands as the last of the record's footnotes, a note without a mark, followed by
the note of each mark it carries: page 14's (Rough Equivalent of Rough and Milled Rice),
the basis of its rice figures, and on pages 35 to 37 from July 2010 to April 2011 the years
that the reliability statistics cover
(https://github.com/xippios/sdk-usda-wasde/issues/76,
https://github.com/xippios/sdk-usda-wasde/issues/85).
list_tables, list_commodities, list_regions and list_attributes answer the distinct
labels of the month's own records, read from its file, so every label and footnote is the
month's: list_attributes the row labels, 110 to 138 texts as printed in each month that
docs/upstream/OBSERVED.md records, each with its attribute_label, which get_data's attribute compares, and the tables that print it.
get_data and the four lists refuse a month before July 2010, the first whose WASDE has
an XML file, before anything is sent: the TXT tables before it are
https://github.com/xippios/sdk-usda-wasde/issues/31. On the reliability pages 35 to 37 the
statistic names differ with the year: until April 2011 at least they are average_percent,
average_difference, max_below, max_above, below_final and above_final, as upstream
names them. A file of a form that the reader does not know raises ValidationError after its
download, naming the file. A task finds the month's release in
ESMIS's list of releases through xippios-usda-esmis, from the newest page to the first page
whose newest release is dated before the month, at most 24 pages, which reach back to about
1982: a month further back is refused after them. A past month without a WASDE answers the
empty list with a note, and a month after the latest release raises NotFoundError naming
it. xippios-usda-esmis's client keeps ESMIS's answers for 300 seconds, so a second call of
the month within that time reads only its files. Each call downloads the month's file and
keeps nothing. The six tasks of a month take release_id and name, keyword-only, the words
of xippios-usda-esmis's download_release_file: release_id, an id that list_releases
gives, reads that release by its id and walks no list, 3 requests at most where the walk may
take 27 (get_report_text 4 and 28, where a refused report PDF gives way to the PDF listed
before it), and an id of another month or of another publication is refused with both dates;
name reads the file of that name, get_data(2013, 8, name="ORIGwasde-08-12-2013.xml") the
original of August 2013, and a name the release lacks is refused with its files. Where the walk
finds several releases in the month with a file of the kind read, as on 2019-11-08, or the
release several files of that kind, meta.notes names those not read, and meta.endpoint
names the file that answered.
get_report_text answers the narrative as text, from the XLS's sheet WASDE Text, or from the
PDF's narrative pages for a release without an XLS or whose XLS has no such sheet, no text in it
or only its placeholder; no figure is ever read from a PDF. meta.vintage of every
task that reads a file is the ESMIS release id. Task functions are listed in the status
table below.
MCP
{
"mcpServers": {
"usda-wasde": {
"command": "uvx",
"args": ["--from", "xippios-usda-wasde[mcp]", "xippios-usda-wasde-mcp"]
}
}
}Tools are read-only and named usda_wasde_<verb>_<noun>. Results are capped, at
200 rows or 64 KB unless a tool has a cap of its own, with a note on how to see the rest.
--http serves streamable HTTP instead of stdio.
Status
Upstream operation | Task function | MCP tool | Status |
ESMIS |
|
| alpha |
the month's XML, downloaded through xippios-usda-esmis's |
|
| alpha |
the month's XML, its tables' titles |
|
| alpha |
the month's XML and XLS, its records' commodities |
|
| alpha |
the month's XML, its records' regions |
|
| alpha |
the month's XML, its records' row labels |
|
| alpha |
the month's narrative: its XLS's sheet |
|
| alpha |
Upstream terms and attribution
Data comes from USDA WAOB World Agricultural Supply and Demand Estimates (https://www.usda.gov/oce/commodity/wasde), on whatever terms upstream
states for it, if any; this package adds no rights to it. Documentation snapshot and its
attribution: docs/upstream/FETCHED.md.
Workflows
ci.yml runs ruff, its format check, mypy, pytest and pre-commit on Python 3.12, 3.13 and
3.14, requires a changelog entry of every pull request but Dependabot's and refuses a
fixture file over 256 KiB that a pull request adds or changes. It runs on every pull request and,
called by publish.yml, once for a release, and its job ci is the check the
organization's ruleset requires. It is handed no secret, and no variable switches it off.
publish.yml is the release train (conventions §12): on a push to main whose
pyproject.toml names a version that has no tag yet and has its section in CHANGELOG.md,
it runs ci.yml, refuses a core pinned to git, tags the merge commit, builds the package
and, once a reviewer of the environment pypi approves the run, publishes it to PyPI by
trusted publishing. Every push to main and a dispatch start it, and a push that brings no
release ends quietly. It is handed no secret: the step that tells a release is handed the
job's token as GH_TOKEN, the tag goes with the job's token and PyPI trusts the workflow
itself. Its job tag holds the one checkout of the repository that keeps its credentials,
since it pushes the tag with the job's token; every other checkout sets
persist-credentials: false (conventions §13). No variable switches it off.
live.yml runs every live test against the upstream with --tb=short --assert=plain, so
its public log holds neither a failing test's arguments nor the values an assertion compared.
It runs every night at 02:26 UTC and on demand, never on a pull request.
Its pytest step alone is handed XIPPIOS_LIVE_TESTS, and no secret.
A variable WORKFLOW_LIVE of off, the repository's over the organization's, switches it off.
conventions.yml calls the organization's review of a pull request against the documents
listed under Documents below, the check conventions / conventions, when a pull request
opens, is pushed to, reopens or is edited, and on a push to main or a dispatch the review
of the range of commits, range / range. It hands the review the organization's
secret of the model's key, by name. A variable WORKFLOW_CONVENTIONS of off, the
repository's over the organization's, switches both off.
adr-index.yml calls the organization's check of the ADR index, adr-index / adr-index,
which runs scripts/adr_index.py --check, when a pull request opens, is pushed to or
reopens. It hands over nothing, and the called workflow reads its switch itself: a variable
WORKFLOW_ADR_INDEX of off, the repository's over the organization's, skips the check.
siblings.yml runs .github/scripts/check-siblings.sh, which installs the wheel beside
every sibling on PyPI under the same provider namespace that shares its core minor and
beside the source packages it depends on, and proves that the namespace levels stay portions
(sdk-core ADR-0006, sdk-core ADR-0021). It runs on every pull request and push to main, a
check the ruleset does not require, in a workflow of its own, since ci.yml is core's file,
which publish.yml calls for a release. It hands the script the job's read-only token as
GITHUB_TOKEN, for the listing of the organization's repositories, since GitHub limits the
calls of a runner without one. A variable WORKFLOW_SIBLINGS of off, the repository's
over the organization's, switches it off.
Documents
sdk-core: docs/conventions.md — the conventions every xippios source package follows: its layout, names, results, tests and releases.
sdk-core: docs/adr.md — the index of the family's architecture decisions, which the conventions cite.
sdk-core: docs/definition-of-done.md — what a change satisfies before its pull request is opened.
sdk-core: docs/review-checklist.md — what the review of a pull request checks, in order.
sdk-usda-wasde: docs/adr.md — the index of this package's own decisions, generated from the records in
docs/adr/.sdk-usda-wasde: docs/upstream/FETCHED.md — the snapshot of the upstream documentation, the reference for names, parameters and semantics.
sdk-usda-wasde: docs/upstream/OBSERVED.md — what no upstream page documents: the layouts of a release's XML, XLS, TXT and PDF and ESMIS's list of releases, as observed, each note with the file it was read from.
Licence
Apache-2.0. See LICENSE.
Available Tools
7 toolsusda_wasde_get_dataARead-onlyIdempotent
Every value of a month's WASDE tables, one record each, complete in itself.
Read from the release's XML, pages 8 to 37: 6543 values for October 2026. A record
holds the page's title with the report's number, the month, table, commodity, region,
market year, forecast month, row label, class, statistic, unit, the value as printed
with its number, its footnotes, each label beside its _label. The XLS names the
commodities of pages 12 to 15, else the report's layout (commodity_source), and the
U.S. pages' units (unit_source). After the fetch, the filters keep the records
whose _label equals them. Requests: the pages of ESMIS's list from the newest to one
past the month, at most 24, the release, the XML, and the XLS: 27 at most, 108 with 4
attempts each. release_id reads no list: 3 at most, 12. A month before July 2010
raises InvalidRequestError before anything is sent; a past month without a WASDE
gives the empty list and a note, a later one NotFoundError.
Inputs: year (required), month (required), name, table, +4 more.
usda_wasde_get_report_textARead-onlyIdempotent
The narrative of a month's WASDE release, WAOB's commodity paragraphs, as text.
Read from the release's XLS, sheet WASDE Text: one string a row with text, as
printed, the first the report's number ("WASDE - 676\r"). A release without an XLS,
or whose XLS holds no such sheet or no text in it while it has a PDF, a placeholder
counting as none, is read from its PDF: one string a page before the one headed
Interagency Commodity Estimates Committees; no figure comes from a PDF. The release is
the month's latest with an XLS or a PDF. Requests: the pages of ESMIS's list from the
newest to one past the month, at most 24, the release, the file, the PDF after such an
XLS, and a revision PDF where the report's is refused: 28 at most, 112 with 4 attempts
each. release_id reads no list: 4 at most, 16. A past month without a WASDE gives
the empty list and a note; a later one, or one whose releases hold neither file,
NotFoundError; one before about 1982 InvalidRequestError.
Inputs: year (required), month (required), name, release_id.
usda_wasde_list_attributesARead-onlyIdempotent
The row labels of a month's WASDE release, as printed and as read, with their tables.
One row per distinct row label text of the month's records in the order of the file,
read from the release's XML, 110 to 138 a month in the files read whole: page 14's
" Ending Stocks" and the world pages' "Ending\r\nStocks" both read "Ending Stocks", the attribute_label that get_data's attribute compares. A row's
tables are those that print it; release_id and name choose a release or a file
as there. Requests: the pages of ESMIS's list from the newest to one past the month, at
most 24, then the release and the XML: 26 at most, 104 with 4 attempts each.
release_id reads no list: 2 at most, 8. A month before July 2010 raises
InvalidRequestError before anything is sent, a past month without a WASDE answers the
empty list with a note, and a month after the latest NotFoundError.
Inputs: year (required), month (required), name, search, +1 more.
usda_wasde_list_commoditiesARead-onlyIdempotent
The commodities of a month's WASDE release, as printed and as read, with their tables.
One row per distinct commodity and source of the month's records in the order of the
file, read from the release's XML, and for pages 12 to 15 the block titles of its XLS
(commodity_source "xls", else "layout"): "CORN" is page 12's U.S. corn,
"Corn" the world corn pages. A row's commodity_label is what get_data's
commodity compares, and its tables the tables that print it; release_id and
name choose a release or a file as there. Requests: the pages of ESMIS's list from
the newest to one past the month, at most 24, the release, the XML and the XLS: 27 at
most, 108 with 4 attempts each. release_id reads no list: 3 at most, 12. A month
before July 2010 raises InvalidRequestError before anything is sent, a past month
without a WASDE answers the empty list with a note, and a month after the latest raises
NotFoundError.
Inputs: year (required), month (required), name, search, +1 more.
usda_wasde_list_regionsARead-onlyIdempotent
The regions of a month's WASDE release, as printed and as read, with their tables.
One row per distinct region text of the month's records in the order of the file,
read from the release's XML, so a region printed with several indents or marks has a
row for each: "World", "World 2/" and "World 3/" all read "World". A
row's region_label is what get_data's region compares, and its tables
the tables that print it; release_id and name choose a release or a file as
there. Requests: the pages of ESMIS's list from the newest to one past the month, at
most 24, then the release and the XML: 26 at most, 104 with 4 attempts each.
release_id reads no list: 2 at most, 8. A month before July 2010 raises
InvalidRequestError before anything is sent, a past month without a WASDE answers
the empty list with a note, and a month after the latest NotFoundError.
Inputs: year (required), month (required), name, search, +1 more.
usda_wasde_list_releasesARead-onlyIdempotent
WASDE's releases in ESMIS, newest first, each with its id, release time and files.
Read through xippios-usda-esmis's list_releases for "wasde"
(esmis_api_release_findByIdentifier). Requests: one per page of 25 releases, from
the newest to the first whose newest release is dated before since, at most 24, 96
with 4 attempts each, which reach back to about 1982. since and until keep the
releases whose printed release date lies between them, both included. Without since
the call is refused with InvalidRequestError after its first request, since the
704 releases of 2026-11-27 fill 29 pages: bound it with since. A file name ending in
v2 (wasde0626v2.xml) marks a month WAOB reposted. meta.total is ESMIS's
count before the date filter. A since after until raises
InvalidRequestError, refused by xippios-usda-esmis before anything is sent.
Inputs: since, until.
usda_wasde_list_tablesARead-onlyIdempotent
The tables of a month's WASDE release, their titles as printed and as read.
One row per distinct title of the month's records in the order of the file, read from
the release's XML: 34 for October 2026, from "World and U.S. Supply and Use for Grains 1/" to the reliability tables. A row's table_label is what get_data's
table compares; release_id and name choose a release or a file as there.
Requests: the pages of ESMIS's list from the newest to one past the month, at most 24,
then the release and the XML: 26 at most, 104 with 4 attempts each. release_id reads
no list: 2 at most, 8. A month before July 2010 raises InvalidRequestError before
anything is sent, a past month without a WASDE answers the empty list with a note, and a
month after the latest raises NotFoundError.
Inputs: year (required), month (required), name, search, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a distinct target: five list_* enumerators over different WASDE dimensions (releases, tables, commodities, regions, row labels), one bulk value reader (get_data), and one narrative extractor (get_report_text). The only real friction is list_attributes, whose name suggests metadata but which actually lists row labels, and list_commodities vs list_attributes could be mistaken for each other before reading the descriptions. The descriptions do resolve this, so boundaries are workable.
All seven tools use the same usda_wasde_ prefix followed by a strict verb_noun snake_case pattern (list_* or get_*). The enumerator verbs and the two retrieval verbs are used consistently for their respective roles. No mixed casing or stylistic drift.
Seven tools is well within a sane range for a single-dataset report server, and each has a clear job: dimension discovery, value extraction, and narrative text. One could argue the four near-identical list_* enumerators inflate the surface, but they map to genuinely separate dimensions. Slightly on the lean side for a dataset this rich, but defensible.
The surface covers the full discovery-then-fetch workflow: enumerate releases, tables, commodities, regions and row labels, then pull all matching values or the narrative text. Gaps are minor — no tool for value-range or text search, no per-release metadata lookup beyond list_releases, and no aggregation helper, but agents can compose these from get_data plus the filters. Core lifecycle for a packaged statistical release is covered.
Maintenance
Related MCP Connectors
Read-only, source-linked cattle, sheep, and goat prices, market reports, coverage, and methodology.
Read-only cited financial datasets, bounded research queries and source diagnostics.
Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.
Read-only U.S. mortgage market, lender, GSE performance, and servicing analytics.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables plain English queries about US agricultural data, including historical crop statistics from NASS QuickStats and current cash grain prices from AMS Market News.-
- FlicenseAqualityCmaintenanceEnables access to USDA NASS agricultural statistics data through natural language queries, supporting full dataset retrieval, record counts, and parameter discovery.34-

mcp-fasofficial
AlicenseNot gradedqualityCmaintenanceEnables access to USDA Foreign Agricultural Service trade and global production data through MCP, supporting natural language queries and tool-based data retrieval.99 npmMIT- AlicenseNot gradedqualityAmaintenanceExposes read-only tools for querying USDA NASS Quick Stats, covering reported counts, filtered data pulls, parameter values, crop progress and condition, county yield and production, acreage and forecasts, and prices received. Results are capped with guidance on narrowing queries.Apache 2.0