Usgs Mineral Commodities MCP Server
USGS Mineral Commodity Summaries (MCS) — U.S. production, imports, exports, consumption, price…
Usgs Mineral Commodities scores 70 (Good), licensed MIT and written in JavaScript. It can be reached as a remote MCP endpoint. It declares 2 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 84 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
71/100 for listing completeness. Lost points: 2 of 2 tools barely described, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "pipeworx-io-mcp-usgs-mineral-commodities": { "command": "npx", "args": [ "-y", "@pipeworx/mcp-usgs-mineral-commodities@0.2.1" ], "env": { "PIPEWORX_API_KEY": "YOUR_PIPEWORX_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PIPEWORX_API_KEYSecret | Optional | Optional Pipeworx API key. Without it calls are anonymous and capped daily; a free key raises the cap. |
Tools2Tool docs quality grade F
All capabilitiesone
one MCS2025WorldData.csv, world
About
@pipeworx/usgs-mineral-commodities
USGS Mineral Commodity Summaries (MCS) — U.S. production, imports, exports, consumption, price, employment and net import reliance for 85 nonfuel mineral commodities (lithium, copper, cobalt, rare earths, gold, aluminum, nickel, platinum-group metals, and dozens of industrial minerals), plus world mine/plant production and reserves by country for 75 of them.
Part of Pipeworx — an MCP gateway connecting AI agents to 1866+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
mcs_list_commodities(query?, limit?)— browse the 85 commodities this release covers; each entry names its own stat columns (every commodity's MCS chapter defines its own table) and whether a world comparison table (mcs_country_comparison) is available for it.mcs_commodity_data(commodity)— one commodity's U.S. salient statistics: the most recent 5 years of production, imports, exports, consumption, price, employment, and NET IMPORT RELIANCE — the share of U.S. consumption that comes from imports. Accepts a common name ("lithium", "rare earths", "platinum group metals") or the MCS code.mcs_country_comparison(commodity, countries?, limit?)— world mine/plant production (prior-year actual + current-year estimate) and reserves, by country, for one commodity — "which countries hold lithium reserves", "China vs. Australia rare-earth production". Covers 75 of 85 commodities (see "Known gaps" below for the other 10).
Auth
Keyless.
Data sources
USGS's National Minerals Information Center publishes MCS once a year as a
file-only ScienceBase data release — verified live 2026-10-07:
ScienceBase item 677eaf95d34e760b392c4970
("U.S. Geological Survey Mineral Commodity Summaries 2025 Data Release, ver.
2.0, April 2025") carries two ZIPs of CSV tables and a revision-notes .txt
— no JSON/REST endpoint of any kind:
Salient_Commodity_Data_Release_Grouped_MCS_2025.zip— onemcs2025-<code>_salient.csvper commodity (85 commodities), U.S. salient statistics for the most recent 5 years. Column names vary per commodity.World_Data_Release_MCS_2025.zip— oneMCS2025_World_Data.csv, world mine/plant production (2023 actual + 2024 estimate in this release) and 2024 reserves, by country, for ~79 commodity groupings (coarser than the 85 salient codes).
scripts/bake-index.mjs downloads both, parses every CSV, matches salient
commodities to world-table rows by name (with a short hand-checked alias
list for naming differences between the two publications — see the
script's own comments, including one USGS typo: "Germanium" vs. the world
table's "Gemanium"), and writes src/mcs-index-data.ts.
Why this bakes a table in rather than calling a live endpoint
The MCS data release is file-only — there is no API to proxy. Root
CLAUDE.md's standing guidance covers exactly this shape (a source that only
publishes bulk files), and US federal data (USGS) is public domain, so
baking the release's own published numbers into this pack needs no reuse
grant. Refresh path: USGS publishes a new MCS release every January
(sometimes revised again in spring, as 2025's "ver. 2.0" was) — re-run
node scripts/bake-index.mjs > src/mcs-index-data.ts against the new
release's ScienceBase item id when one is published.
Why the baked table isn't a static import
The table is ~430 salient rows + 1,250 world rows (~509KB as JSON). A static
import would put the whole thing into every gateway isolate's heap
whether or not that isolate ever serves this pack — exactly the failure six
state-code packs caused on 2026-10-07 (fleet #2754: ~48MB of retained heap
and about one gateway call in four dying as a Cloudflare 1102). Instead the
table is uploaded to KV at deploy
(workers/gateway/src/pack-baked-indexes.json registers it;
scripts/sync-gateway-static-json.mjs uploads it) and the gateway injects
the parsed object as args._bakedIndex on the first call into this pack —
adopted once per isolate. A missing or malformed injection throws loudly
(see src/index.test.ts) rather than answering as if a commodity or
country were simply not found.
Known gaps
- 10 of the 85 commodities have no row in the MCS world production/reserves
table in this release — mostly scrap/slag/crushed-stone categories USGS
tracks only domestically, plus a few rare elements (scandium, thallium,
thorium) with no global reserve estimate published: Iron and Steel Scrap,
Iron and Steel Slag, Quartz Crystal (Industrial), Sand and Gravel
(Construction), Scandium, Stone (Crushed), Stone (Dimension), Thallium,
Thorium, Yttrium.
mcs_country_comparisonreturnsfound: false, reason: "no_world_data"for these rather than an empty row list. - Raw USGS footnote codes (
W= withheld to avoid disclosing company proprietary data,E= estimated,NA= not available,">50"on net import reliance, free-text notes like"Less than 1/2 unit.") are passed through verbatim, never coerced to numbers or nulled out — every tool's response includes afootnote_legendfield. - This is a point-in-time annual release, not a live feed. Every response
carries
data_as_of(the bake's capture timestamp) andrelease_year.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"usgs-mineral-commodities": {
"url": "https://gateway.pipeworx.io/usgs-mineral-commodities/mcp"
}
}
}
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/usgs-mineral-commodities/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1866+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
No MCP client? Call it over HTTP
curl -X POST https://gateway.pipeworx.io/v1/tools/mcs_list_commodities \
-H 'Content-Type: application/json' \
-d '{"query":"lithium"}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/mcs_list_commodities. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Run it from npm
@pipeworx/mcp-usgs-mineral-commodities is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with npx, and it forwards every call to the same
https://gateway.pipeworx.io/usgs-mineral-commodities/mcp endpoint shown above. It needs network access;
there is no offline mode.
{
"mcpServers": {
"usgs-mineral-commodities": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-usgs-mineral-commodities"]
}
}
}
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
"env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to
also list ask_pipeworx and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by
default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check
your Node version's documentation.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Usgs Mineral Commodities data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
Frequently asked questions
What is Usgs Mineral Commodities MCP Server?
USGS Mineral Commodity Summaries (MCS) — U.S. production, imports, exports, consumption, price…
How do I install Usgs Mineral Commodities MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Usgs Mineral Commodities MCP Server runs locally from the npm package @pipeworx/mcp-usgs-mineral-commodities with the command npx -y @pipeworx/mcp-usgs-mineral-commodities@0.2.1.
Is Usgs Mineral Commodities MCP Server free and open source?
Yes. Usgs Mineral Commodities MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Usgs Mineral Commodities MCP Server support remote (HTTP) connections?
Yes. Usgs Mineral Commodities MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Usgs Mineral Commodities MCP Server provide?
Usgs Mineral Commodities MCP Server provides 2 tools: Salient_Commodity_Data_Release_Grouped_MCS_2025.zip and World_Data_Release_MCS_2025.zip. See the full tool list for descriptions and parameters.
How is Usgs Mineral Commodities MCP Server's trust score calculated?
Usgs Mineral Commodities MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.