xippios-mcp
This server exposes read-only MCP tools for exploring and retrieving FAOSTAT agricultural datasets and USDA ESR export-sales data.
Browse FAOSTAT domains, dimensions, and dimension codes, with search, language, and pagination options.
Count or fetch filtered FAOSTAT rows by area, item, element, year, and other dimensions; retrieve yearly series over a range.
List USDA ESR commodities, countries, regions, and units of measure from packaged reference data.
Check ESR release dates and current market years, optionally since a prior release.
Fetch ESR weekly export sales for a commodity and market year, filtered by country or week.
Retrieve multi-year ESR weekly export series for a commodity-country pair.
All listed tools are read-only.
Serves the xippios-google-mail package's tool sets from an endpoint: its read server (11 tools) or its write server (11 tools), chosen as the google-mail or google-mail:write package of a config, alone or grouped with other read packages, giving clients read and write access to Google Mail data and actions.
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., "@xippios-mcp Get USDA NASS corn yields for Iowa from 2020 to 2024."
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-mcp
The self-hosted MCP host of the xippios SDK family. It serves the MCP tools of the family's packages from one process, by endpoint and group: an endpoint serves a package's tool set, read or write, as the package's own server does, and a group combines several packages' tools on one endpoint, never read and write tools together. It runs on stdio locally and on streamable HTTP on a server, each endpoint with its own auth, a bearer token by default; the secrets stay in the environment, never in the config file.
xippios-mcp --config <path> checks a config, builds every endpoint's server and lists
the endpoints; --stdio <endpoint> serves one endpoint on stdio, and --http serves
every endpoint over streamable HTTP, each with its bearer (see Serving). A Docker image,
which each release publishes to ghcr.io/xippios/xippios-mcp, serves them from a container
(see Docker).
Install
uv add 'xippios-mcp[faostat]' # the host and a package it serves, by its extra
uv add 'xippios-mcp[all]' # the host and every package of the table belowRelated MCP server: mcp-gate
Packages
The host runs on xippios-core 0.5 and serves every source package of the family that
is installed beside it and released on that core minor: a package is named by its slug,
usda-nass, and imported as xippios.usda.nass. The host has an extra for each of the
twelve sources of the family. Each extra takes a lower bound alone, the source's release
whose tools the table counts and whose tool sets the tests serve, so the host installs each
at its latest release on core 0.5, and all installs the twelve.
Extra | Distribution | Lower bound | Servers | Tools |
|
|
| read and write | 25 read, 14 write |
|
|
| read | 22 |
|
|
| read | 6 |
|
|
| read | 7 |
|
|
| read and write | 11 read, 11 write |
|
|
| read | 9 |
|
|
| read | 7 |
|
|
| read | 20 |
|
|
| read | 4 |
|
|
| read | 9 |
|
|
| read | 7 |
|
|
| read | 12 |
The tools of a package are those of its tool set, what its mcp.build() returns
(mcp_write.build() for a write server): its tasks less its BULK_TASKS, which are
Python-only, each with its own result cap, counted at the version of the lower bound; a
later release may add tools. A group of the twelve read tool sets lists 139 tools, so an
endpoint serves a client best with the packages that it needs.
Another source released on core 0.5 is served once it is installed beside the host, with no
extra of its own. xippios-usda-esr, xippios-usda-gats and xippios-usda-psd bring
xippios-usda-fas, the code that the sources of USDA's Foreign Agricultural Service share,
as their dependency: it runs no server, so the host serves nothing of it, and an endpoint
that names usda-fas is refused.
tests/test_sources.py serves each of the twelve from the releases that uv.lock pins.
The report of 2026-11-25
records its first run, over sdk-cashctrl, sdk-faostat and sdk-usda-esr before their releases
on core 0.5.
The ceilings of comtrade, usda-nass, usda-gats and usda-psd
--split-periods of xippios-comtrade-mcp, --split-years of xippios-usda-nass-mcp,
--series-months of xippios-usda-gats-mcp and --series-years of xippios-usda-psd-mcp
are options of those packages' own entry points, and each package's tool set carries the
hooks that apply them. The host applies every package's hooks with the defaults that its
entry point parses from an empty command line, so it serves the ceilings that the entry
points serve without options:
comtrade_get_datatakes up to 24 periods, where the Python API takes 120. It sends them in calls of 12, a keyed count and a keyed data request for each, after the classification file of a product code, fetched without the key once per process, so at most 5 requests, retries aside.A split
usda_nass_get_dataspans up to 11 years, where the Python API spans 20. It takes up to two keyed calls a year, and a first count more foryear__GEalone, so at most 23 requests, retries aside.usda_gats_get_census_export_series,usda_gats_get_census_import_seriesandusda_gats_get_census_reexport_seriesspan up to 24 months, where the Python API spans 60. Each takes one call a month, and a first one for the release list unless the client still keeps it, so at most 25 requests, retries aside.usda_psd_get_time_seriesspans up to 24 market years, where the Python API spans 100. It takes one call a market year, and a first one for the commodity's release list unless the client still keeps it, so at most 25 requests, retries aside.
A longer list of periods, split or series is refused. As with the entry point, the ceiling holds for the whole process, every endpoint that serves the package included. The config sets no option of a package: a higher ceiling is the package's own entry point's, run with its option.
Each of the four packages has an extra, whose lower bound in the table above is the release whose ceiling and requests this section states.
Configuration
The host reads one TOML file that names its endpoints. Each [endpoints.<name>] table
is one endpoint, which the HTTP transport serves at /<name>/mcp:
[endpoints.agriculture] # served at /agriculture/mcp
packages = ["faostat", "usda-esr"]
exclude = { faostat = ["list_bulk_datasets"] } # or include = { ... }; exact task names
auth = "bearer" # the default; or "none"
token_env = "XIPPIOS_MCP_AGRICULTURE_TOKEN" # a name ending in _TOKEN, never a value
allow_remote = false # the default
[endpoints.accounting-write]
packages = ["cashctrl:write"]
auth = "none"An endpoint that names one package serves the server of that package's tool set,
xippios.<package>.mcp.build(), ormcp_write.build()for<slug>:write, as the package's own entry point serves it, with its instructions, version and result caps: namedxippios-<slug>, orxippios-<endpoint>with anincludeorexcludelist, which narrows its tools. Each endpoint has a server of its own, so one package may serve several endpoints.A group, several packages, is a server the host builds, named
xippios-<endpoint>: each package's tools under their own names (faostat_get_data), with the package's result caps for the tools it keeps. Its instructions open with one sentence naming its packages and their tool counts, then give each package's own instructions under a heading of its slug,## faostat.An
includeorexcludelist narrows a package's tools and leaves its instructions whole, on an endpoint of one package and in a group alike, so they may name a tool that the endpoint does not serve, a listing tool they say to call first, say. The host does not cut them: a package's instructions are its own prose, which the host could change only by writing for the package, and the host serves what a package defines, its tools under their names and its text as it stands.Every endpoint applies its packages' option hooks with the defaults of their entry points, as those run without options (see The ceilings of comtrade, usda-nass, usda-gats and usda-psd).
Read and write never mix: an endpoint's packages are all
<slug>:writeor none, and the host refuses a group that mixes them.includeandexcludeare keyed by package slug and name exact task names, a task function's__name__(list_bulk_datasets, notfaostat_list_bulk_datasets); a package takes one of the two, and an empty list is refused. A name that is no tool of the package is refused, a task in the package'sBULK_TASKSamong them, since a bulk task is Python-only and no tool.A package's slug is lower-case letters and digits, its words joined by hyphens; one that is not installed is refused with the package to install.
authis"bearer"by default, or"none". With the bearer,token_envnames the environment variable that holds the token, a name ending in_TOKEN(XIPPIOS_MCP_<ENDPOINT>_TOKEN), and the token itself stays in the environment, never in the file. The host reads the variable once, when--httpstarts, and never on stdio or when it lists.allow_remoteisfalseby default; it lets anauth = "none"endpoint that is held to loopback serve beyond it (see The loopback rule).An optional
[http]table names theHostandOriginvalues the HTTP transport accepts behind a reverse proxy (see Behind a reverse proxy).
Check a config before serving it:
xippios-mcp --config host.tomlIt loads the file, builds every endpoint and prints one line per endpoint, with the
tool count of the packages installed; for
docs/host.example.toml,
the sample above:
agriculture: read, <n> tools of faostat, usda-esr
accounting-write: write, <n> tools of cashctrlA key, package or task the host refuses stops it with exit status 2 and a message that
names the file, the endpoint and the key. A package whose tool set core refuses, or
whose option hook refuses its defaults, stops it the same way, the message naming the
file, the endpoint and the package: the list builds every endpoint as it is served, the
hooks applied. The list runs no loopback check of Serving, which needs --http and its
--host.
The host binds no tenant: a multi-tenant package, cashctrl with its organisations or
google-mail with its mailboxes, is served for every tenant its environment declares. Each of
its tools takes the tenant as an argument, where its own entry point's --org or --account
binds one; only cashctrl_list_organisations and google_mail_list_accounts, which list the
tenants, take none.
Serving
stdio
xippios-mcp --config host.toml --stdio agricultureserves the one endpoint agriculture on stdio, for an MCP client that starts the host
as its own process. stdio has no auth: the host reads no token variable, and an
endpoint's auth, token_env and allow_remote apply to HTTP only. In Claude Code:
claude mcp add agriculture -- xippios-mcp --config host.toml --stdio agriculturewith the config's absolute path in place of host.toml when Claude Code runs in another
directory.
Streamable HTTP
xippios-mcp --config host.toml --http --host 127.0.0.1 --port 8000serves every endpoint of the config from one process, each at
http://127.0.0.1:8000/<name>/mcp: http://127.0.0.1:8000/agriculture/mcp for the
sample. --host defaults to 127.0.0.1 and --port to 8000; both need --http, and
--http and --stdio exclude each other. Before it serves, the host reads each bearer
endpoint's token and applies the checks below; a refusal exits with status 2 and serves
nothing.
The bearer
An endpoint with auth = "bearer" answers a request without the token with 401 and
WWW-Authenticate: Bearer realm="xippios-mcp", and one with a wrong token with
error="invalid_token" added; such a request never reaches the endpoint. The token is
the value of the variable token_env names, read once when --http starts: an unset or
empty variable stops the host with exit status 2, and so does a value with leading or
trailing whitespace, which no token a client sends can match. The host keeps the token's
SHA-256 digest only, compares in constant time, and never logs the token or the
Authorization header. A random token will do, openssl rand -hex 32 for instance, set
in the environment of the host and of the client.
In Claude Code:
claude mcp add --transport http agriculture http://127.0.0.1:8000/agriculture/mcp \
--header 'Authorization: Bearer ${XIPPIOS_MCP_AGRICULTURE_TOKEN}'In single quotes the shell passes ${XIPPIOS_MCP_AGRICULTURE_TOKEN} on as written, and
Claude Code expands it from its own environment when it connects, so the token stays out
of Claude Code's config; in double quotes the shell would write the token itself into
the config. Claude Code reads some well-known credential variables as empty in a remote
server's headers (its own, a cloud provider's, others such as NPM_TOKEN); a name of
the operator's own, such as XIPPIOS_MCP_AGRICULTURE_TOKEN, is outside that set and
expands as written. When a token does not arrive, claude --debug-file <file> logs
never expanded toward a remote server for a covered name.
The bearer does not serve claude.ai. claude.ai signs in with OAuth: it starts on a 401
that names a resource_metadata document, and it needs an OAuth authorization server.
The host advertises no resource_metadata and is no authorization server, so
claude.ai needs one in front of the host, which the host leaves out (sdk-core ADR-0026,
decision 10).
The loopback rule
A write server, cashctrl:write for instance, and a read server that its package holds
to loopback, as sdk-google-mail holds its own, are held to loopback by their tool sets.
An endpoint with auth = "none" that serves such a server, or a group with one such
package, carries no authentication, so --http serves it on a loopback --host only,
127.0.0.1, localhost or ::1, as a package's own entry point keeps its server
(sdk-core ADR-0063, decision 5). On another --host the host refuses to start unless
the endpoint sets allow_remote = true, and then a gateway in front of it has to
authenticate. Any other read endpoint with auth = "none", and every bearer endpoint,
is served on any host.
Of the twelve packages, sdk-google-mail alone has both its servers held: google-mail:write
as every write server, and google-mail because it reads every mailbox that the environment
declares. So a read group that names google-mail is held whole, whatever else it serves,
and the same group without it is not.
Behind a reverse proxy
On a loopback --host the mcp SDK checks the Host and Origin headers itself and
accepts loopback values only, which keeps a web page from reaching the host through DNS
rebinding. Beyond loopback it checks neither, unless the config names what to accept:
[http]
allowed_hosts = ["mcp.example.com"] # the Host values the proxy forwards
allowed_origins = ["https://mcp.example.com"] # browser origins, if anyThe lists replace the SDK's loopback default for every endpoint: a request whose Host
is not listed gets 421, and one with an Origin that is not listed gets 403; a
request without Origin passes. "<host>:*" accepts any port, so add "127.0.0.1:*"
to keep clients that connect directly. Both keys are optional, but allowed_origins
needs allowed_hosts. Without the table, a host bound beyond loopback gets no Host
check.
Docker
The repository builds an image of the host with every package of all, the twelve of the
table under Packages, at the versions uv.lock pins. Each release publishes it to the GitHub
Container Registry as ghcr.io/xippios/xippios-mcp, built for linux/amd64 and tagged with
the release's version alone, as 0.4.0, with no v and no latest:
docker pull ghcr.io/xippios/xippios-mcp:0.4.0A published image carries three labels: org.opencontainers.image.source, the repository,
org.opencontainers.image.version, the release's version, and
org.opencontainers.image.revision, the commit that the release tagged, so docker inspect
names the commit that an image was built from. Each release's image is built from that
commit and passes the smoke test of docker.yml (see Workflows) before it is pushed. An
image built from a checkout is the same image without those labels, under the name it is
given:
docker build -t xippios-mcp .The image runs xippios-mcp --config /etc/xippios-mcp/host.toml --http --host 0.0.0.0 --port 8000 as the non-root user xippios (uid 10001), and holds no config, key or
token. The operator mounts the config, a file that user can read, and passes every
token by its variable's name, so the value comes from the operator's environment and
stays out of the command line. For a config with one bearer endpoint:
[endpoints.agriculture]
packages = ["faostat", "usda-esr"]
auth = "bearer"
token_env = "XIPPIOS_MCP_AGRICULTURE_TOKEN"docker run --rm -p 8000:8000 \
-v "$PWD/host.toml:/etc/xippios-mcp/host.toml:ro" \
-e XIPPIOS_MCP_AGRICULTURE_TOKEN \
ghcr.io/xippios/xippios-mcp:0.4.0serves it at http://127.0.0.1:8000/agriculture/mcp. The variables the packages read
themselves, their keys among them, are passed the same way, by name; each package's
README names its own. Arguments after the image name replace the image's own, so
docker run --rm -v "$PWD/host.toml:/etc/xippios-mcp/host.toml:ro" \
ghcr.io/xippios/xippios-mcp:0.4.0 --config /etc/xippios-mcp/host.tomlchecks the mounted config and lists its endpoints without serving them.
Inside the container the host binds 0.0.0.0, beyond loopback, so every endpoint is
remote, whichever interface -p publishes the port on: give every endpoint the bearer.
An auth = "none" endpoint held to loopback, one that serves either server of
sdk-google-mail or cashctrl:write, is refused there and the container stops at its start,
unless the endpoint sets allow_remote = true (see The loopback rule), and then nothing
authenticates it but a gateway in front; prefer the bearer. Beyond loopback the mcp SDK
checks no Host or Origin header, so behind a reverse proxy the config's [http] table
names the values to accept (see Behind a reverse proxy).
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.
docker.yml is the host's own workflow beside those the template renders, and it holds the
whole of the image of Docker above: one job, the check docker, in three steps. It runs on
every pull request, after every run of publish.yml and by hand, and every run builds and
smoke-tests the image. build builds it from the checkout, for a run after publish.yml
from the commit that run ran on, with the labels org.opencontainers.image.source and
.revision, and it refuses a run of publish.yml that neither a push nor a dispatch
started before it builds anything. Where that run's job publish succeeded, build reads
the version of pyproject.toml, refuses where the tag v<version> names another commit, and
adds the tag ghcr.io/xippios/xippios-mcp:<version> and the label .version. smoke runs
its --help, then serves it as an operator does, with a mounted config of two bearer
endpoints, the twelve read tool sets of all on one and its two write ones on the other, and
expects 401 and the bearer's challenge from each for a request without a token. Each request
is retried for about 30 seconds while the server starts, and a 401 is the answer, never
retried: the host serves only once it has built every endpoint. publish runs for a release
alone: it logs in to ghcr.io with the job's own token, which docker login reads on its
standard input, pushes the one tag and logs out, and a pull request never reaches it. Where a
release's run of docker.yml fails after PyPI took the release, a re-run of that run's failed
job publishes the image, since a re-run takes the commit and the ref of its original event, and
a dispatch of docker.yml publishes nothing. The job stops after 15 minutes. A newer push to a
pull request cancels the run still going, and a run on main has a group of its own, so that
no release's run waits behind another or is cancelled. The job takes actions: read, to read
the jobs of the run of publish.yml, and packages: write beside contents: read. It is
handed no secret, since build and publish take the job's own token and the smoke test makes
its own random tokens and masks them in the log, 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. Each of its runs, once it ends, starts docker.yml, which pushes the
release's image where the run's job publish succeeded. 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.
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.
Documents
sdk-core: docs/conventions.md — the conventions of the xippios packages: their layout, names, results, tests and releases, which bind the host as far as sdk-core ADR-0026 says.
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-core: docs/adr/0026-the-host-xippios-mcp.md — the host's design decisions, and in decision 1 which of the conventions bind a package that is no source.
xippios-mcp: docs/adr.md — the index of this package's own decisions, generated from the records in
docs/adr/.
Licence
Apache-2.0. See LICENSE.
Available Tools
13 toolsfaostat_count_dataARead-onlyIdempotent
Count the rows of a FAOSTAT query before fetching them, filtered as get_data filters.
One get_data request with no_records=true, which FAOSTAT answers with the query's number of rows: data is that whole number, as is meta.total. It takes get_data's filters and null_values, which decide the rows, and refuses before any request where get_data does. The structure is read first, kept for a day, since a count prints no column to prove a filter's dimension; a filter of several codes is checked against its list before the count, and a count of 0 has each filter's list read: a wrong code, year or dimension raises InvalidRequestError naming the closest, else meta.names names each code. meta.vintage is the domain's last update. A call sends at most twelve requests (structure, code lists, count, release date), each tried up to four times, 48 requests at most, a login where the process holds no token, and a login and the request again where FAOSTAT refuses with 401 or 403.
Inputs: domain_code (required), area, item, year, +3 more.
faostat_get_dataARead-onlyIdempotent
Get one FAOSTAT dataset's rows, filtered by any of its dimensions.
Each row has the dataset's columns. Filter by area, item, element and year, and by any other dimension's id in filters (list_dimensions names them); with no filter it refuses before any request. Without page_size all matching rows come at once: keep filters narrow, or page. Name a country for TM, EA and FT, whose whole years time out (HTTP 504). Codes are FAO's whatever area_cs and item_cs print. A filter of several codes is checked against its list first, an empty answer after: a wrong code, year, dimension or system raises InvalidRequestError naming the closest; else meta.names names each code. meta.vintage is the domain's last update, else None with a note. A call sends at most twelve requests (structure, code lists, data, release date), each tried up to four times, 48 requests at most, a login where the process holds no token, and a login and the request again where FAOSTAT refuses with 401 or 403.
Inputs: domain_code (required), area, item, lang, +8 more.
faostat_get_seriesARead-onlyIdempotent
Get a FAOSTAT dataset's yearly series over a year range, filtered as get_data filters.
One get_data request with the years since to until as its filter: year, or for FS, which has year3, the codes of its year3 list whose middle year is in the range. With since and until it reads the dataset's structure first, and FS's year3 list, each kept for a day; a dataset with neither year nor year3 refuses them. Without either, every year comes. Give both or neither: one alone, or since after until, is refused before any request. Rows keep upstream's order, area, item, year ascending. Codes are checked and meta is built as get_data does, with since and until in meta.request; a range without a year of the dataset is refused. A call sends at most twelve requests (structure, year3 list, code lists, data, release date), each tried up to four times, 48 requests at most, a login where the process holds no token, and a login and the request again where FAOSTAT refuses with 401 or 403.
Inputs: domain_code (required), area, item, lang, +4 more.
faostat_list_codesARead-onlyIdempotent
List the codes of one dimension of any FAOSTAT dataset, the values its filter takes.
One request to getCodeList, kept for a day, filtered by search over code and label. dimension_id is a dimension's or a part's id as list_dimensions names it; FS's year3 codes are one per middle year ("20013", 2001 / 2000-2002), not those the rows print. A code ending ">" lists others (5000> World > (List)); show_lists=False leaves those out. FAOSTAT answers an unknown dataset, an unknown dimension and one the dataset lacks alike, with HTTP 500 and no body, which raises NotFoundError; the list of domains and the dataset's structure are then read, and a dataset or dimension they lack is named with the closest. A call sends the code list and, after that answer, those two, each tried up to four times, twelve requests at most, a login where the process holds no token, and a login and the request again where FAOSTAT refuses with 401 or 403.
Inputs: domain_code (required), dimension_id (required), lang, offset, +2 more.
faostat_list_dimensionsARead-onlyIdempotent
List a FAOSTAT dataset's dimensions, the names its data is filtered by, and their parts.
One request to get_dimensions, kept for a day. Each dimension's id is the name to filter the dataset's data by and the dimension_id list_codes takes: QCL's area, element, item and year, PP's month, MDDW's survey, FS's year3 in place of year. Its parts are code lists of their own, which list_codes takes too, each with its coding systems (M49, FAO, ISO2 and ISO3 for QCL's countries). FAOSTAT answers an unknown dataset with HTTP 500 and no body, which raises NotFoundError; the list of domains is then read, and a dataset it lacks is named with the closest. A call sends the structure and, after that answer, the list of domains, each tried up to four times, eight requests at most, a login where the process holds no token, and a login and the request again where FAOSTAT refuses with 401 or 403.
Inputs: domain_code (required), lang, offset.
faostat_list_domainsARead-onlyIdempotent
List FAOSTAT's domains, the datasets get_data reads, with their groups and release dates.
One request to groupsanddomains, cached for five minutes. Each row is a domain
(domain_level 2 or 3) or a subgroup of domains (domain_level 1,
subgroup_flag "1", no dates), with its group, its last update, a date
(date_update, 2025-12-31), its current and next release as printed
(release_current, release_next) and its contact. A section of the portal
lists other rows: browse leaves the subgroups out, and compare some
datasets too.
Inputs: lang, offset, search, section.
usda_esr_get_exportsARead-onlyIdempotent
US weekly export sales of one commodity in one market year, to one country or to all.
One record per destination and week: weekly and accumulated exports, outstanding and
gross new sales, current and next market year net sales and commitments, in the unit
unit_id names (list_units_of_measure). From the current calendar year on, the
release list is read first, and a market year ESR has not released raises
NotFoundError naming the commodity's current one, since ESR answers it as a year
without exports; an empty list means no exports. A market year ESR holds no data for (1900)
answers the empty list with a note. One call sends at most 2 requests, 8 attempts with
retries. Where the list is read and names market_year as current, meta.vintage is
its release time as ESR prints it and meta.published_at that time without a zone;
otherwise both stay empty, since the rows state no release and the list's time may be
another market year's.
Inputs: market_year (required), commodity_code (required), offset, country_code, +1 more.
usda_esr_get_release_datesARead-onlyIdempotent
When ESR last released each commodity's export data, with its current market year.
One request to ESRData_GetDataReleaseInfo, one record per commodity:
release_time_stamp, the last release of the commodity's export data, which can revise
several market years, and the current market year, named by the year it ends in, with its
first and last day. The time stamp is as ESR sends it, without a time zone, since the
documentation names none: meta.published_at is the newest of the whole answer, naive,
with meta.published_at_naive true, and meta.vintage that time's text as ESR sent
it, with or without a filter; both are empty only when ESR lists no commodity. To fetch only
what changed, store meta.vintage, pass it as since on the next call and call
get_exports for the commodities returned; an empty list means nothing was released
since.
Inputs: since, commodity_code.
usda_esr_get_weekly_seriesARead-onlyIdempotent
One destination's weekly US export sales of a commodity over market years, oldest first.
One ESRData_GetCountryData request per market year, at most 10. When end_year is
the current calendar year or later, the release list comes first, and a range past the
commodity's current market year raises NotFoundError naming the latest released one.
One call sends at most 11 requests, 44 attempts with retries. Records are ordered by week,
otherwise unchanged; a week in two market years comes in each, the older year's first.
meta.notes names each market year's count of rows, in order, and each passed over, one
ESR holds no data for (1900). Any other error stops the call and returns nothing. Where the
list is read and names end_year as current, meta.vintage is its release time as ESR
prints it and meta.published_at that time without a zone; otherwise both stay empty,
since the rows state no release and the list's time may be another market year's.
Inputs: end_year (required), start_year (required), country_code (required), commodity_code (required).
usda_esr_list_commoditiesARead-onlyIdempotent
List ESR's commodities with their codes, the values commodity_code takes.
Answered from ESRData_GetCommodities as packaged with this version
(reference/commodities.json), without an upstream call: 44 commodities when
packaged, in upstream order, from 101 (Wheat - HRW) to 1702 (Fresh, Chilled, or
Frozen Muscle Cuts of Pork), each with the unit_id ESR reports it in
(list_units_of_measure), e.g. 104 Wheat - White, 401 Corn, 801
Soybeans (all 1, Metric Tons), 1404 All Upland Cotton (2, Running Bales).
Names are upstream's, unchanged. meta.retrieved_at is when the package fetched the
list; meta.vintage is empty, as upstream gives the list no release identifier.
Inputs: search.
usda_esr_list_countriesARead-onlyIdempotent
List ESR's destination countries with their codes and regions, the values country_code takes.
Answered from ESRData_GetCountries as packaged with this version
(reference/countries.json), without an upstream call: 211 countries when
packaged, in upstream order, each with its ESR region (list_regions) and its GENC
code where upstream has one (50 have none). Codes are ESR's own, not ISO: 1220
CANADA, 2010 MEXICO, 5700 CHINA, PEOPLES REPUBLIC OF, 5880 JAPAN; 1 is
the EUROPEAN UNION - 27 aggregate and 9990 UNKNOWN. The names are upstream's,
padded with spaces, and kept so: country_name to eight characters
("CANADA "), country_description to 31 ("CANADA" and 25 spaces); only
9990 and the description of 1 are unpadded. meta.retrieved_at is when the
package fetched the list; meta.vintage is empty, as upstream gives the list no
release identifier.
Inputs: search, region_id.
usda_esr_list_regionsARead-onlyIdempotent
List ESR's regions with their ids, the values region_id of list_countries takes.
Answered from ESRData_GetRegions as packaged with this version
(reference/regions.json), without an upstream call: 12 regions when packaged, in
upstream order, alphabetical by name: 10 AFRICA, 7 CHINA, 3 EASTERN EUROPE,
1 EUROPEAN UNION - 27, 4 FORMER SOVIET UNION-12, 8 INDIA, 5 JAPAN,
9 OTHER ASIA AND OCEANIA, 2 OTHER EUROPE, 6 TAIWAN, 99 UNKNOWN, 11
WESTERN HEMISPHERE. Every one holds at least one country of list_countries.
meta.retrieved_at is when the package fetched the list; meta.vintage is empty,
as upstream gives the list no release identifier. Takes no parameters.
Inputs: no named parameters.
usda_esr_list_units_of_measureARead-onlyIdempotent
List ESR's units of measure with their ids, the unit_id of every commodity and export.
Answered from ESRData_GetUnitsOfMeasure as packaged with this version
(reference/unitsOfMeasure.json), without an upstream call: 5 units when packaged,
in upstream order: 1 Metric Tons (grains, oilseeds and their products, rice, beef
and pork), 2 Running Bales (the cottons, 1301 to 1404), 3 Pieces (whole hides
and skins, 1601 to 1603), 4 NUMBER (1604, 1606, 1607) and 5 Pounds (1605,
1608). The name field is plural upstream, unit_names, and stays so; the names are
upstream's, unchanged. enums.UnitId names the same ids. meta.retrieved_at is
when the package fetched the list; meta.vintage is empty, as upstream gives the list
no release identifier. Takes no parameters.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Tools are split by source prefix and each has a distinct resource/action, so an agent can generally select correctly. Some FAOSTAT tools are variants of the same underlying query (count_data, get_data, get_series), and the two ESR export tools overlap in topic, but their intended uses are described well enough to distinguish.
All names use snake_case with a source namespace followed by a clear verb_noun pattern (faostat_get_data, usda_esr_list_countries). The two prefixes reflect real API boundaries rather than inconsistent conventions, and there are no mixed casing or vague naming outliers.
At 13 tools, the set is well within a reasonable range for covering two read-only data APIs. Each tool maps to a meaningful operation: reference-list lookups, row retrieval, counting, series retrieval, and release-date lookup.
The surface covers the core read-only lifecycle for both data sources: domain/dimension/code discovery, filtered data retrieval, counts, series, and ESS reference/data endpoints. Minor gaps remain, such as no obvious bulk cross-commodity ESR query, but agents can work around this by composing calls.
Maintenance
Related MCP Connectors
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Supabase Edge Functions MCP server with allowlisted tools and PostgreSQL RLS.
Streamable HTTP MCP gateway for NV oOS fleets — one API key, namespaced tools, quotas and policy.
Exposes FEDLIN's public security scanners as agent-callable tools over Streamable HTTP.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceThis server exposes local stdio MCP tools as HTTP/SSE endpoints, enabling remote clients like Claude Desktop to call them. It supports single-tool and aggregated modes with authentication, auto-restart, and hot reload.-
- AlicenseNot gradedqualityDmaintenanceEnables serving multiple MCP toolkits behind one server with capability-based access control, so different callers see and can call only the tools they are authorized for, over stdio or streamable HTTP with bearer-token auth.MIT
- AlicenseNot gradedqualityDmaintenanceEnables connecting multiple remote HTTP MCP servers through a single local stdio endpoint, handling OAuth authentication, token refresh, and namespace-scoped tools.MIT
- AlicenseNot gradedqualityCmaintenanceAggregates multiple MCP backend servers behind a single HTTP/SSE endpoint, exposing all tools and resources with name-prefixed routing, hot reload, and structured request logging.MIT