Critical Raw Minerals & ESG Compliance Oracle(x402)
One-line summary: An autonomous M2M critical-minerals and ESG compliance oracle for provenance verification, trade logistics, regulatory checks, and settlement.
Verify origin and compliance for lithium, nickel, cobalt, copper, silver, rare earths, tungsten, niobium/scandium, black mass, and composite EV battery packs.
Run EUDR satellite mine audits, geofencing, mass-balance checks, FEOC/IRA/NDAA/CBAM/ASM/child-labor screening, and customs/eBL verification.
Simulate procurement RFQs, calculate tariffs and maritime freight/carbon, optimize trade routes, and query global trade flows and legal precedents.
Manage agent onboarding, vault balances, x402 payment challenges, multi-chain escrow calldata, and autonomous A2A trade deal lifecycle actions.
Generate zero-knowledge compliance proofs and submit or list agent evolution proposals and feedback.
Supports automated x402 Web3 micro-settlements in USDC on the Polygon network for oracle queries, including HTTP 402 payment challenges and EIP-712/EIP-191 signature verification.
EV Battery Critical Minerals & Provenance Oracle (minerals-oracle-x402)
๐ค 100% Pure Autonomous Agent-Native (M2M Exclusive) Critical Minerals Supply-Chain & Bilateral Trade Oracle.
Built strictly for autonomous AI agents, multi-agent swarms, and algorithmic trading execution. Humans and fiat credit cards are strictly prohibited. All settlements execute machine-to-machine via Native USDC across Solana (501), Polygon (137), Base (8453), and Arbitrum One (42161), backed by cryptographic on-chain transaction receipt RPC verification, anti-replay guards, and EIP-712 Dual-Attestation bound to the Security Gate x402 and EU AI Act (Article 50).
โก 3-Line AI Agent Quickstart (Python ยท TypeScript ยท LangChain ยท CrewAI)
1. TypeScript / Node.js (minerals-oracle-x402)
๐ npm ๊ณต์ ๋ ์ง์คํธ๋ฆฌ ๋ฐ๋ก๊ฐ๊ธฐ (npmjs.com/package/minerals-oracle-x402)
npm install minerals-oracle-x402
# or
pnpm add minerals-oracle-x402
# or
bun add minerals-oracle-x402import { MineralsOracleClient } from 'minerals-oracle-x402';
const client = new MineralsOracleClient();
const res = await client.verifyTungsten({
batch_id: 'W-APT-2026-T01', tenement_id: 'SANGDONG',
latitude: 37.150, longitude: 128.833, apt_wo3_grade_pct: 88.5
});
console.log(res.audit_verdict?.status, res.proof_hash); // 'FULLY_COMPLIANT' 0x...2. Python / LangChain Tool
import httpx
client = httpx.Client(base_url="https://minerals-oracle-x402-7qxtp3324q-du.a.run.app")
verdict = client.post("/api/v1/tungsten/verify-origin", json={
"batch_id": "W-APT-2026-T01", "tenement_id": "SANGDONG",
"latitude": 37.150, "longitude": 128.833, "apt_wo3_grade_pct": 88.5
}).json()["audit_verdict"]
print(f"Sangdong NDAA Sec 848: {verdict['status']}") # FULLY_COMPLIANT3. CrewAI / AI Agent Swarm Tool Call
from crewai.tools import tool
import httpx
@tool("Verify Defense Mineral Provenance")
def audit_mineral(batch_id: str, tenement_id: str, lat: float, lon: float) -> str:
"""Verifies critical defense mineral origin against US NDAA Sec 848 and EU CRM regulations."""
r = httpx.post("https://minerals-oracle-x402-7qxtp3324q-du.a.run.app/api/v1/tungsten/verify-origin",
json={"batch_id": batch_id, "tenement_id": tenement_id, "latitude": lat, "longitude": lon})
return r.text4. Claude Desktop / Cursor FastMCP (Model Context Protocol)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"minerals-oracle": {
"command": "python",
"args": ["-m", "app.mcp_stdio"],
"env": { "ORACLE_API_KEY": "YOUR_AGENT_KEY" }
}
}
}Related MCP server: hyperd-mcp
๐ Harmonious Collaborator Architecture & Fluid Pipeline ("Like Flowing Water")
The entire oracle system is orchestrated by the Collaborator Mediator (app/collaborator_mediator.py), unifying 5 domain subsystems into a single event-driven fluid pipeline with microsecond latency and zero human friction:
flowchart TD
subgraph Flow ["๐ Harmonized Fluid Trade Lifecycle (POST /api/v1/trade/harmonize-flow)"]
S1["๐ค Node 1: A2A Deal Engine<br/>Bilateral Spec Negotiation & Dual-Signature"]
S2["๐ข Node 2: Maritime Logistics & eBL<br/>Chokepoint Routing, MLETR Verification, Landed Cost"]
S3["๐ฐ๏ธ Node 3: Sentinel-1/2 SAR Radar<br/>EUDR Concession Screening (Cutoff: 2020-12-31)"]
S4["โ๏ธ Node 4: Multi-Chain Escrow<br/>Polygon (137) / Base (8453) / Arbitrum (42161) / Solana (501)"]
S5["โก Node 5: A.GRID Real-Time Clearing<br/>Zero-Polling Webhook Event Mesh & SSE Streaming"]
S1 --> S2 --> S3 --> S4 --> S5
end
subgraph Architecture ["๐๏ธ Decomposed Modular Domain APIRouters"]
R1["๐ฆ routers/minerals.py<br/>Provenance, Passport, ZK Proof"]
R2["๐ routers/logistics.py<br/>Corridors, Tariffs, Customs, eBL"]
R3["๐ค routers/a2a_trade.py<br/>Bilateral Deals, Vaults, SSE Stream"]
R4["๐ routers/oracle_pricing.py<br/>Pyth Consensus, Spreads, Precedents"]
R5["๐ค routers/mcp.py<br/>FastMCP Tooling & SSE Transport"]
end1. 5-Pillar End-to-End Fluid Lifecycle
POST /api/v1/trade/harmonize-flow: Single-call orchestration that takes trade intent from bilateral inception to on-chain escrow readiness and clearing in $<10\text{ms}$.GET /api/v1/trade/events/stream: Real-time Server-Sent Events (SSE) broadcasting live deal events and milestone releases.GET /api/v1/trade/events/recent: High-performance in-memory circular buffer for autonomous bot state recovery.
2. Pure Autonomous Agent-Native Architecture (M2M Exclusive)
Zero Human Gateways (No KYC, No Credit Cards, No Passwords):
Autonomous self-serve onboarding (
POST /api/v1/agent/onboard) instantly provisions an agent vault with free trial queries.Authentication is strictly cryptographic via
X-Agent-Vault-Keyor EIP-712 wallet signatures.
A2A (Agent-to-Agent) Bilateral Contract & Negotiation Engine (
app/a2a_deal_engine.py):Machine-readable deal lifecycle:
PROPOSED$\rightarrow$DUAL_SIGNED_CONFIRMED$\rightarrow$VERIFIED(orREJECTED/CANCELLED).Electronic Bill of Lading (eBL) cryptographic digest binding, IMO vessel tracking, and real-time sanctions screening.
Hybrid 2-Track Settlement: Combines micro-metered oracle queries ($0.005 USDC) with automated 10% Gain-Share on realized logistics & tariff savings ($10,000 cap).
Multi-Chain Real-Time RPC Receipt Verification & Replay Defense (
app/x402_verifier.py):Queries live EVM nodes on Polygon, Base, and Arbitrum with a strict 3.0-second timeout bound.
Decodes native USDC
Transferevents and enforces immutable replay attack caching (logs/redeemed_tx_hashes.json) with thread-safe atomic file replacement.
Agent Session Vault (
app/agent_session_vault.py):High-frequency trading agents can lock USDC once and execute dozens of queries gas-free at sub-millisecond latency.
Automatic refund of unused balances on session close with zero-reentrancy protection.
Security Gate x402 & ElizaOS Fail-Closed Integration (
app/security_gate_client.py):Zero-trust prompt injection pre-filtering, Agent FICO credit scoring, and EU AI Act Article 50 Dual-Attestations.
Enforces Fail-Closed safety when strict mode is active.
๐ Deployed & Verified Multi-Chain Smart Contracts
All contracts are deployed on live mainnets and registered across Polygon (137), Base (8453), Arbitrum One (42161), and Solana (501) from canonical creator wallet 0x356ECeA957b85120fef8cF5D89b85Cb3d4c13D5b (Solana: 411ksMz9...):
Network | Smart Contract | Mainnet Deployed Address | Explorer Status |
Polygon Mainnet (137) |
| โ Deployed (Gas Paid) | |
| โ Verified (exact_match) | ||
| โ Active | ||
| โ Active | ||
| โ Active | ||
Base Mainnet (8453) |
| โ Deployed (Gas Paid) | |
| โ Verified (exact_match) | ||
| โ Active | ||
| โ Active | ||
| โ Active | ||
Arbitrum One (42161) |
| โ Deployed (Gas Paid) | |
| โ Verified (exact_match) | ||
| โ Active | ||
| โ Active | ||
| โ Active | ||
Solana Mainnet (501) |
|
| โ Anchor IDL Registered |
|
| โ Anchor IDL Registered | |
|
| โ Active | |
|
| โ Active | |
|
| โ Active |
๐ Detailed Contract Verification & Multi-Chain Setup Guide (VERIFICATION_GUIDE.md)
1. Composite EV Battery Master Passport Orchestrator (app/composite_battery_pipeline.py)
Synthesizes the 3 primary battery critical minerals into a unified cell/pack compliance attestation:
Cathode Chemistries: NCM 811 (80% Ni, 10% Co, 10% Mn), NCM 622, NCM 523.
US IRA 30D Critical Minerals $3,750 Tax Credit Formula: $$\text{Procurement Value} = (\text{Li Tons} \times $18,500) + (\text{Ni Tons} \times $17,000) + (\text{Co Tons} \times $32,000)$$ $$\text{FTA Qualifying Ratio} = \frac{\text{Value}{\text{AUS (FTA)}}}{\text{Value}{\text{Total}}} \times 100% \ge 50.0%$$
Strict Zero-Tolerance FEOC Taint Propagation: If any mineral component carries $\ge 25%$ covered nation (China/Russia/Iran/North Korea) equity or operational control, the entire battery pack is disqualified (
FLAG_COMPOSITE_FEOC_TAINT).EU Battery Regulation (2023/1542) & CBAM Scope 1-3 Carbon Footprint:
Captive coal power smelting in Indonesian HPAL triggers
FLAG_EU_BATTERY_CBAM_SURCHARGE(+26.5 kg COโe/kWh penalty).
Cryptographic Merkle Tree & Polygon EIP-712 Master Signature: $$\text{Merkle Root} = \text{0x} + \text{SHA256}(\text{Leaf}{\text{Li}} + \text{Leaf}{\text{Ni}} + \text{Leaf}_{\text{Co}})$$ Signs typed structured data binding
battery_pack_id,chemistry,merkle_root, composite score, and legal disclaimer terms.
2. Dedicated Provenance Pipelines for Core Minerals
flowchart TD
subgraph Mining["1. Global Extraction & Geofencing"]
Li["๐ฆ๐บ Australia (Greenbushes / Pilgangoora)<br/>WA MINEDEX GIS Geofencing"]
Ni["๐ฎ๐ฉ Indonesia (IMIP Morowali / IWIP)<br/>Sulawesi/Halmahera Geofencing"]
Co["๐จ๐ฉ DRC (Kamoto KCC / Tenke / Mutanda)<br/>Katanga Copperbelt Geofencing"]
end
subgraph Processing["2. Stoichiometric Mass Balance & Traps"]
LiProc["Spodumene to LiOH (7.5:1 Yield)<br/>Anti-Transshipment Geofencing"]
NiProc["Limonite to MHP (31.34:1 Yield)<br/>ESDM SIMBARA NTPN Tax Clear<br/>EU CBAM Coal Smelting Audit"]
CoProc["Heterogenite to Hydroxide (23.53:1 Yield)<br/>CEEC Barcode Seal Verification<br/>ILO 138/182 Zero Child Labor Audit"]
end
subgraph Composite["3. Composite Battery Orchestrator"]
Master["NCM 811 Pack Synthesis<br/>IRA FTA Value Ratio (>= 50%)<br/>FEOC Taint Propagation (< 25%)<br/>EU Cradle-to-Gate Carbon Footprint"]
end
subgraph Attestation["4. Cryptographic Proof & Settlement"]
Merkle["Merkle Tree Synthesis<br/>sha256(Leaf_Li + Leaf_Ni + Leaf_Co)"]
Onchain["Polygon EIP-712 Master Signature<br/>x402 0.10 USDC Gasless Settlement"]
end
Li --> LiProc --> Master
Ni --> NiProc --> Master
Co --> CoProc --> Master
Master --> Merkle --> Onchain๐ฆ๐บ Australian Spodumene Lithium Pipeline (app/lithium_pipeline.py)
GIS Geofencing: Validates WA DMIRS MINEDEX tenement boundaries (e.g. Greenbushes
M01/03, PilgangooraM45/1256).Stoichiometric Mass Balance: Enforces strict theoretical yield ratio ($7.5 \pm 0.8\text{t}$ Spodumene concentrate $\rightarrow$ $1.0\text{t}$ Battery-Grade LiOHยทHโO).
Defenses: Defends against Trap 13 (Chinese transshipment relabeling) and Trap 14 (non-linear recovery exaggeration).
๐ฎ๐ฉ Indonesian Nickel MHP Pipeline (app/nickel_pipeline.py)
Concession Geofencing: Monitors Central Sulawesi (IMIP Morowali) and North Maluku (IWIP Weda Bay) mining polygons.
Fiscal Verification: Validates Ministry of Energy (ESDM) SIMBARA NTPN tax receipt codes and Bank Indonesia 30% forex export deposits (DHE BI).
EU CBAM & Carbon Duty: Detects captive coal power plant usage and flags European Carbon Border Adjustment liabilities.
๐จ๐ฉ DRC Cobalt Hydroxide Pipeline (app/cobalt_pipeline.py)
Artisanal Segregation (Trap 1): Blocks uncertified artisanal mining (ASM) co-mingling via Entreprise Gรฉnรฉrale du Cobalt (EGC) custody validation.
CEEC Security Seals: Cryptographically authenticates Centre d'Expertise (CEEC) tamper-proof barcode export seals.
ILO Human Rights Diligence: Enforces mandatory independent audits for ILO Convention 138 (Minimum Age) and 182 (Worst Forms of Child Labor).
๐จ๐ฑ Chilean Copper Cathode Pipeline (app/copper_pipeline.py)
Concession Geofencing: Monitors major porphyry operations (Codelco Chuquicamata, El Teniente, Andina, BHP Escondida, Antofagasta Los Pelambres, Cerro Verde).
Smelter Acid Balance (Trap 16): Validates sulfuric acid ($H_2SO_4$) reagent supply balance ($\le 5.0%$ deficit tolerance).
Grid & Purity Standard: Certifies ASTM B115 Grade 1 electrolytic cathode purity ($\ge 99.9935%$) for AI datacenter HVDC power grids and COCHILCO export clearances.
๐ฒ๐ฝ Mexican Silver Dorรฉ Pipeline (app/silver_pipeline.py)
Concession Geofencing: Monitors high-grade silver operations (Endeavour Silver Terronera, Fresnillo, Antamina, Uchucchacua, Los Pelambres).
N-Type TOPCon Solar Standard (Trap 16): Enforces ultra-pure $\ge 99.99%$ silver powder certification for next-gen solar PV metallization paste.
Security & LBMA Assurance: Defends against cartel-tainted artisanal extraction and validates LBMA Good Delivery refiner accreditation.
๐งฒ Western Rare Earths & MOFCOM 0.1% Defense (app/rare_earths_pipeline.py)
Non-China Geofencing: Validates primary Western NdPr producers (Lynas Mt Weld, MP Materials Mountain Pass, Vital Nechalacho, Pensana Longonjo).
China MOFCOM Notice 61 '0.1% Rule' (D-35 Nov 10 Rule): Enforces strict $<0.100%$ PRC input ratio threshold to prevent extraterritorial export embargoes.
High-Purity & Radiation Safety: Certifies $\ge 99.5%$ NdPr oxide assay purity and verifies Th+U radionuclide limits ($\le 500\text{ ppm}$).
๐ก๏ธ Western Tungsten & Defense NDAA Pipeline (app/tungsten_pipeline.py)
Western Geofencing: Validates key deposits (NATC Cantung, American Tungsten IMA Project, Almonty Panasqueira, Sangdong).
NDAA Sec 848 Defense Procurement: Certifies non-covered nation origin for US Department of Defense and semiconductor fabrication.
APT Grade Standard: Verifies ASTM B783/ISO 10386 Ammonium Paratungstate grade ($\text{WO}_3 \ge 88.5%$) and 3TG conflict-free status.
โป๏ธ Recycled Battery Black Mass Pipeline (app/black_mass_pipeline.py)
US BIS Export License Enforcement: Validates Department of Commerce export authorizations (ABTC, Redwood Materials, Li-Cycle, BASF).
EU Battery Reg 2023/1542: Verifies recycled mass content ratio ($\ge 85.0%$) and hazardous fluorine residue safety ($\le 500\text{ ppm}$).
2.5 Advanced 2026/2027 Regulatory, Logistics & ZK Privacy Upgrades
EU CBAM Statutory Mark-up Penalty Engine (
app/regulatory_advanced_engine.py):Calculates mandatory statutory default mark-up surcharges: 2026: +10%, 2027: +20%, 2028: +30%.
Quantifies exact EUR liability and immediate savings achieved with 3rd-party Scope 1/2 verified reports.
EU Industrial Accelerator Act (IAA) & W3C Battery Passport VC (
app/regulatory_advanced_engine.py):Evaluates $\ge 70%$ EU domestic content and $\ge 40%$ green steel content for clean vehicle subsidies.
Issues W3C-standard JSON-LD Digital Product Passport (DPP) Verifiable Credentials with on-chain ECDSA signatures.
Logistics Oracle Bridge (
app/logistics_bridge.py):Anchors multimodal Bill of Lading (B/L) and container numbers to mineral concessions.
Evaluates Port-of-Loading (POL) to Port-of-Discharge (POD) maritime speed/transit plausibility and inland mine-to-port spatial distance.
Issues Customs Clearance Proof Bundles for accelerated green-channel port clearance.
Pyth Dynamic Escrow Smart Contract (
contracts/DynamicTradeEscrow.sol):Dynamic real-time LTV mark-to-market valuation via Pyth price feeds with automated margin-call protection.
Tripartite conditional settlement: Oracle Proof Hash + Carrier B/L Arrival + Independent Laboratory Assay.
Zero-Knowledge Privacy Compliance Prover (
app/zk_compliance_prover.py):Shields exact mine coordinates, supplier IDs, and unit production costs.
Emits Groth16/Plonk zero-knowledge proofs mathematically proving concession Merkle inclusion and China origin $< 0.1%$.
3. Autonomous Agent Operations Terminal & Telemetry HUD
The built-in M2M console (app/static/index.html served at /dashboard) provides an agent-dedicated compliance cockpit (Pure English RFC-compliant):
Tab | Key Features |
๐ NCM 811 Composite Master Passport | Real-time IRA 30D eligibility, FTA value progress bar, EU Battery Passport approval status, Carbon Footprint gauge, on-chain Merkle Root & EIP-712 JSON terminal |
๐ฆ๐บ Australian Lithium Observatory | Hard-rock mine selection (Greenbushes, Pilgangoora, Mt Marion), ore feed vs LiOH yield calculation |
๐ฎ๐ฉ Indonesian Nickel MHP Observatory | IMIP/IWIP concession verification, ESDM SIMBARA tax receipt verification, captive coal power toggle |
๐จ๐ฉ DRC Cobalt Hydroxide Observatory | Kamoto KCC/Tenke concession check, CEEC barcode verification, ILO 138/182 child labor audit toggle |
One-Click Real-World Scenario Presets
โ Clean Baseline (
clean): Australia Greenbushes + Indonesia Clean IMIP + DRC Kamoto KCC $\rightarrow$ IRA Eligible ($3,750), EU Passport Approved, Low Carbon (51.5 kg COโe/kWh).โ ๏ธ FEOC Taint Trap (
feoc): Injects 80% Chinese state ownership into DRC Cobalt $\rightarrow$ Entire battery pack disqualified under FEOC 25% threshold.โ ๏ธ Captive Coal CBAM Trap (
cbam): Injects captive coal power smelting in Indonesia $\rightarrow$ EU CBAM carbon tariff liabilities triggered.โ Child Labor Trap (
child): Injects uncertified artisanal pit ore in DRC $\rightarrow$ EU Battery Passport immediate rejection.๐จ Trap 15 Tech Defense (
trap15): Evaluates Chinese Mineral Resources Law extraterritorial licensing taint ($>50%$ SX tech dependency without MOFCOM clearance).โก Copper HVDC Grid Ready (
copper): Codelco Chuquicamata copper cathode audit, $H_2SO_4$ acid balance, and ASTM B115 Grade 1 HVDC power grid certification.โ๏ธ Silver TOPCon Solar PV (
silver): Endeavour Silver Terronera dorรฉ audit, LBMA Good Delivery, and N-Type TOPCon $\ge 99.99%$ solar paste verification.
๐ค Model Context Protocol (FastMCP) Tools
Integrates natively with Claude Desktop, Cursor, Gemini, and autonomous AI agents:
{
"mcpServers": {
"minerals-oracle-x402": {
"command": "python",
"args": ["-m", "app.mcp_stdio"],
"env": {
"ORACLE_API_KEY": "YOUR_AGENT_KEY"
}
}
}
}Supported MCP Tools
verify_composite_battery_passport: Evaluates end-to-end NCM EV battery packs and generates Master Merkle EIP-712 attestations.verify_lithium_origin: Verifies Australian hard-rock spodumene extraction and conversion.verify_nickel_origin: Verifies Indonesian laterite limonite HPAL MHP provenance and SIMBARA tax clearance.verify_cobalt_origin: Verifies DRC Katanga heterogenite cobalt hydroxide provenance, CEEC seals, and child labor audits.verify_copper_origin: Verifies Chilean/South American copper cathode provenance, COCHILCO quotas, H2SO4 acid balance, and ASTM B115 HVDC compliance.verify_silver_origin: Verifies Mexican/South American silver dorรฉ provenance, LBMA certification, N-Type TOPCon solar PV 99.99% purity, and cartel defense.verify_mineral_compliance: Legacy 7-pillar compliance audit engine for individual mineral lots.minerals_submit_agent_feedback: Zero-fee protocol feedback submission for autonomous agent evolution.
๐ณ Autonomous x402 Web3 Settlement on Polygon
All M2M API invocations support micro-payments in USDC on Polygon (Chain ID 137):
Composite Battery Master Verification: 0.10 USDC (
PricingTier.STANDARD)Dedicated Mineral Lot Verification: 0.05 USDC (
PricingTier.LIGHT)Polygon USDC Address:
0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359Treasury Recipient:
0x356ECeA957b85120fef8cF5D89b85Cb3d4c13D5bAgent Vault Fast-Path: Zero-latency verification via pre-funded
X-Agent-Vault-Keyheaders.
๐ Quick Start & Local Execution
1. Clone & Install Dependencies
git clone https://github.com/nohosa001-pixel/minerals-oracle-x402.git
cd minerals-oracle-x402
python -m venv .venv
# Windows:
.venv\Scripts\activate
# Linux/macOS:
source .venv/bin/activate
pip install -e .2. Run Tests (424 Automated Tests - 100% Passing)
# Run full regression suite
pytest tests/3. Launch Local Server & Web Observatory
# Option A: Built-in CLI runner
minerals-oracle-x402
# Option B: Uvicorn development server
uvicorn app.main:app --host 127.0.0.1 --port 8000 --reloadNavigate to:
Autonomous Agent Observatory Console: http://localhost:8000/dashboard
Interactive OpenAPI Documentation: http://localhost:8000/docs
Model Context Protocol (MCP) Tools: http://localhost:8000/mcp/tools
OpenAI-Compatible Model Registry: http://localhost:8000/v1/models (Supports Cursor, AutoGen, LangChain)
Official EU 2023/1542 Battery Passport Sample: http://localhost:8000/sample-battery-passport.json
๐ Full Technical Specifications
For full mathematical formulations, threshold constants, legal citations, and EIP-712 type declarations, consult the Global Battery Minerals Compliance Specification v2.4.0.
๐ License
MIT License. Copyright (c) 2026 Minerals Oracle x402 Project Contributors.
Available Tools
39 toolscalculate_trade_tariffsC
Resolves WCO 6-digit Harmonized System (HS) Code, MFN base duty, applicable FTA preferential duty, US Section 301 punitive tariffs, and EU CBAM benchmarks.
Inputs: mineral_type (required), importer_jurisdiction.
cancel_a2a_trade_dealB
Seller AI agent revokes or cancels a pending trade deal proposal before buyer countersignature.
Inputs: deal_id (required), seller_agent_address (required), seller_signature, cancellation_reason.
close_agent_sessionB
Closes an active agent session, computes refund of unspent balance, and generates an immutable settlement receipt hash.
Inputs: agent_address (required), session_token (required).
dual_sign_trade_dealA
Buyer AI agent countersigns an existing trade proposal; Oracle mints an immutable 3-party deal attestation seal.
Inputs: deal_id (required), buyer_signature (required), buyer_agent_address (required).
estimate_maritime_freight_and_carbonC
Calculates maritime voyage distance (nautical miles), transit duration, freight charter costs ($/MT), chokepoint detour surcharges (Red Sea/Panama), IMO CII rating, and EU CBAM carbon costs.
Inputs: mineral_type (required), origin_country (required), destination_country (required), cii_rating, +2 more.
eudr_satellite_mine_auditA
Audits mining concession plot coordinates against EUDR (EU 2023/1115) deforestation cutoff (2020-12-31) and indigenous territory boundaries using multi-satellite radar (Sentinel-1/2 SAR) & Hansen GFC. Generates cryptographic evidence hash and official EU TRACES-NT DDS reference format.
Inputs: latitude (required), longitude (required), country_code, area_hectares, +1 more.
generate_zk_compliance_proofC
Generates a zero-knowledge compliance proof that shields exact extraction coordinates and unit production costs while mathematically proving concession validity and China content < 0.1%.
Inputs: batch_id (required), mineral_type (required), secret_supplier_id (required), secret_mine_latitude (required), +4 more.
get_a2a_trade_dealB
Retrieves the full specification, audit notes, and current status of an A2A trade agreement.
Inputs: deal_id (required).
get_agent_session_infoA
Queries real-time balance, query capacity, and status for an active session without debiting a fee.
Inputs: session_token (required).
get_agent_vault_balanceB
Retrieves pre-funded USDC vault balance, total consumed, query count, and remaining query capacity across tiers for an agent.
Inputs: session_key, agent_address.
get_battery_cell_passport_sampleB
Retrieves official EU 2023/1542 & US IRA Section 30D compliant EIP-712 dual-signed battery passport sample for any standard chemistry (NCM811, NCM9, NCA, NCMA, LFP, SOLID_STATE) with stoichiometric CAM ratios, energy densities, and Polygon Merkle Root.
Inputs: cell_chemistry, battery_pack_id, pack_capacity_kwh.
get_compliance_statusA
Check current regulatory monitoring status across 10 jurisdictions and 12-trap defenses.
Inputs: no named parameters.
get_global_trade_flowsC
Queries global critical mineral physical trade corridor flows, monthly bulk volumes, standard transit days, vessel classes, and maritime chokepoints.
Inputs: mineral_type, origin_country, destination_country.
get_trade_escrow_calldataA
Generates deterministic EVM calldata and transaction parameters for the buyer AI agent to lock USDC funds into the on-chain MineralTradeEscrow (Polygon/Base/Arbitrum) for a dual-signed trade agreement.
Inputs: deal_id (required), chain_name, escrow_contract_address.
list_a2a_trade_dealsB
Lists A2A bilateral trade deals, optionally filtered by agent EVM address or status (PROPOSED, DUAL_SIGNED_CONFIRMED, REJECTED, CANCELLED, EXPIRED).
Inputs: agent_address, status_filter.
list_trade_precedentsA
Query international trade jurisprudence precedents embedded in the oracle: WTO DS592 (Indonesia Raw Materials), WTO DS431 (China Rare Earths), ICSID ARB/15/31 (Gabriel Resources), and US CIT Superior Wire (Origin Laundering).
Inputs: no named parameters.
minerals_list_evolution_proposalsB
List active autonomous agent evolution proposals and improvement requests.
Inputs: limit, mineral_focus.
minerals_submit_agent_feedbackB
Allows an autonomous AI agent or bot operator to submit an evolution proposal, mineral dataset addition request, regulatory edge case, or protocol improvement to continuously evolve the Minerals Oracle engine.
Inputs: title (required), content (required), agent_id (required), caller_model, +4 more.
open_agent_sessionB
Opens a high-speed allowance session for autonomous AI agents, enabling <0.1ms micro-queries without per-query on-chain gas latency.
Inputs: agent_address (required), signature, deposit_amount_usdc, session_duration_hours.
optimize_mineral_trade_routeB
Autonomous trade route optimizer for AI procurement agents. Compares direct marine transit vs chokepoint detour corridors, computing landed cost arbitrage ($/MT), total freight and tariffs, and delivery timelines.
Inputs: mineral_type (required), origin_country (required), destination_country (required), cargo_weight_metric_tons (required), +2 more.
propose_a2a_trade_dealC
Seller AI agent proposes a canonical bilateral trade agreement for a critical mineral consignment with cryptographic signature.
Inputs: spec (required), seller_signature (required).
register_agent_accountB
Self-service onboarding for autonomous AI agents. Instantly returns a session key and seeds an initial free trial balance (e.g. 0.05 USDC).
Inputs: agent_name (required), agent_address, initial_trial_balance_usdc.
reject_a2a_trade_dealC
Buyer AI agent rejects an existing trade proposal with structured reasoning and optional cryptographic signature.
Inputs: deal_id (required), buyer_agent_address (required), buyer_signature, rejection_reason.
request_x402_payment_challengeC
Generates a fresh multi-chain payment challenge nonce with pricing tier details and gasless Permit2 contract address.
Inputs: chain, pricing_tier.
simulate_procurement_rfqC
Simulates multi-mineral consignment RFQ for battery manufacturing. Computes US IRA 50% FTA threshold and FEOC 25% taint propagation before placing contracts.
Inputs: rfq_id (required), cobalt_tons (required), nickel_tons (required), lithium_tons (required), +8 more.
verify_a2a_trade_dealB
Cryptographically audits a dual-signed A2A trade deal, verifying seller, buyer, and oracle signatures, along with FEOC and mass-balance compliance.
Inputs: deal_id (required).
verify_black_mass_originC
Verifies recycled battery black mass provenance, US Department of Commerce BIS export license validation, and EU Battery Regulation 2023/1542 recycled content thresholds.
Inputs: batch_id (required), latitude (required), longitude (required), facility_id (required), +7 more.
verify_cobalt_originA
Verifies DRC Katanga heterogenite-to-cobalt hydroxide supply-chain provenance. Evaluates Katanga Copperbelt concession geofencing (Tenke Fungurume, Kamoto KCC, Mutanda, Metalkol), CEEC tamper-proof barcode seal, ASM co-mingling segregation & EGC custody (Trap 1), ILO 138/182 zero child labor due diligence, RMI RMAP smelter certification, stoichiometric mass balance (~23.5t ore to 1t hydroxide <= 2.5% loss), and US IRA FEOC 25% screening.
Inputs: trace_id (required), coordinates (required), ceec_seal_id (required), refinery_name (required), +14 more.
verify_composite_battery_passportB
Evaluates end-to-end composite EV battery pack compliance and issues a Master Passport on Polygon. Orchestrates Australian Lithium, Indonesian Nickel, and DRC Cobalt streams; computes US IRA Section 30D critical mineral 50% FTA value-added ratio; enforces zero FEOC taint across all component streams; audits EU Battery Regulation 2023/1542 blended carbon footprint and CSDDD due diligence; and binds all proofs into a cryptographic Merkle Root EIP-712 Master Signature.
Inputs: cobalt_lot (required), nickel_lot (required), lithium_lot (required), battery_pack_id (required), +2 more.
verify_copper_originA
Verifies South American Copper-to-Cathode supply-chain provenance. Evaluates Codelco/Escondida/Cerro Verde GIS geofencing (Chuquicamata, El Teniente, Andina), stoichiometric flotation-to-cathode mass balance (loss discrepancy <= 2.0%), sulfuric acid (H2SO4) deficit screening (variance <= 5.0%), Chilean COCHILCO export clearance, and AI Data Center / HVDC Power Grid specifications (ASTM B115 Grade 1, 99.9935% Cu).
Inputs: lot_id (required), extraction_coordinates (required), sulfuric_acid_input_tons (required), feedstock_concentrate_tons (required), +7 more.
verify_customs_clearanceC
Anchors physical ocean carrier Bill of Lading (B/L) to mineral extraction, analyzes inland distance and nautical speed plausibility, and issues automated Customs Clearance Proof Bundle.
Inputs: arrival_date (required), carrier_code (required), departure_date (required), gross_weight_kg (required), +6 more.
verify_electronic_bill_of_ladingA
Cryptographically audits UNCITRAL MLETR / FIT Alliance electronic Bill of Lading (eBL). Validates 7-digit IMO checksum, UN/LOCODE port pairs, manifest weight, and screens for AIS dark fleet anomalies.
Inputs: vessel_name (required), mineral_type (required), shipper_name (required), consignee_name (required), +6 more.
verify_lithium_originB
Verifies Australian hard-rock Spodumene to Lithium Hydroxide supply-chain provenance. Evaluates WA MINEDEX GIS geofencing (Greenbushes, Pilgangoora, Mt Marion), stoichiometric mass balance (SC6.0 to LiOH <= 2.5% loss), and US IRA Section 30D FEOC 25% clean origin.
Inputs: trace_id (required), mine_name (required), coordinates (required), refinery_facility (required), +8 more.
verify_mineral_lot_complianceA
Fetches raw algorithmic indices derived from open satellite/market data and computes 12-trap regulatory rule heuristics for a critical mineral consignment. DO NOT use as an official regulatory legal filing or physical assay certification without independent manual verification.
Inputs: lot_id (required), mineral_type (required), source_country (required), net_weight_metric_tons (required), +1 more.
verify_nickel_originA
Verifies Indonesian laterite Limonite-to-Nickel MHP supply-chain provenance. Evaluates Sulawesi/Halmahera concession geofencing (IMIP Morowali, IWIP Weda Bay), SIMBARA NTPN & DHE BI tax validation, HPAL stoichiometric mass balance (~31t Limonite to 1t MHP <= 2.5% loss), Captive Coal EU CBAM screening, and US IRA 30D FEOC 25% compliance.
Inputs: trace_id (required), coordinates (required), simbara_ntpn (required), concession_name (required), +9 more.
verify_niobium_scandium_originB
Verifies Western/Allied Niobium (Ferroniobium FeNb 65%) and Scandium Oxide (Sc2O3 99.5%) provenance, ASTM A550 assay standards, US NDAA Sec 848 defense eligibility, and US DOE Title XVII & EXIM loan guarantee pre-qualification.
Inputs: batch_id (required), latitude (required), longitude (required), tenement_id (required), +6 more.
verify_rare_earths_originC
Verifies Rare Earth Elements (NdPr / Dy / Tb) provenance, Non-China GIS geofencing, IAEA radiation safety, and China MOFCOM Notice 61 '0.1% extraterritorial export control' compliance.
Inputs: batch_id (required), latitude (required), longitude (required), tenement_id (required), +4 more.
verify_silver_originB
Verifies Mexican & Global Silver supply-chain provenance. Evaluates Terronera/Fresnillo/Antamina GIS geofencing, Moebius/Thum electrolytic mass balance (loss discrepancy <= 2.0%), N-Type TOPCon High-Efficiency Solar PV paste assay purity (>= 99.99% Ag), anti-cartel conflict ASM screening, and LBMA Good Delivery audit.
Inputs: lot_id (required), extraction_coordinates (required), refined_solar_powder_kg (required), feedstock_dore_or_ore_kg (required), +7 more.
verify_tungsten_originB
Verifies Western Tungsten (APT) provenance, ASTM B783 WO3 grade (>= 88.5%), Dodd-Frank conflict-free status, and US NDAA Sec 848 defense procurement non-covered nation eligibility.
Inputs: batch_id (required), latitude (required), longitude (required), tenement_id (required), +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 39 tools
Most tools are distinct (per-mineral verify_*_origin, A2A deal lifecycle, session management), but several boundaries blur: verify_mineral_lot_compliance overlaps conceptually with the specific verify_*_origin tools, verify_customs_clearance vs verify_electronic_bill_of_lading both anchor bills of lading, and get_agent_vault_balance vs get_agent_session_info both report balances. Descriptions mitigate these overlaps but an agent must read carefully to pick correctly.
The dominant convention is a clear verb_noun snake_case pattern (verify_*_origin, get_*, list_*, propose_*/dual_sign_*/reject_*). Minor deviations exist: minerals_submit_agent_feedback and minerals_list_evolution_proposals carry an odd namespace prefix, and eudr_satellite_mine_audit lacks a leading verb. Still highly readable and predictable overall.
39 tools is heavy for a single oracle server and spans at least five sub-domains (mineral verification, A2A trade deals, payments/sessions, logistics/tariffs, evolution feedback). Each cluster is reasonable on its own, but the combined surface likely exceeds what an agent can navigate without a routing layer.
Coverage is broad and coherent: origin verification across seven-plus minerals, composite battery passport, eBL/customs, tariffs/freight/route optimization, ZK proofs, and a full A2A deal lifecycle plus session/onboarding flow. Minor gaps remain (e.g., no update/revoke or listing of issued verification proofs, and some minerals like graphite or manganese lack dedicated verifiers), but no dead ends in the core workflows.
Related MCP Connectors
38 x402 pay-per-call tools for AI agents (USDC/USDT on Base): web, crypto, on-chain, geo, packages
Pay-per-call onchain reads (Base, Ethereum, Gnosis), token verdicts and LLM chat over x402 USDC
Pay-per-call onchain reads (Base, Ethereum, Gnosis), token verdicts and LLM chat over x402 USDC
Pay-per-call AI infra for agents: DeFi market data, LLM inference, STT/TTS. x402 v2, USDC on Base.
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceTrust infrastructure for AI agents on Base. DEX Spread Oracle (live Uniswap V3 prices), on-chain escrow, insurance pool, and collective knowledge base. 7 smart contracts. Pay-per-query via x402 micropayments in USDC.6-

hyperd-mcpofficial
AlicenseAqualityDmaintenancePre-trade DeFi intelligence for AI agents. 20 paid x402 endpoints, USDC on Base.23122 npm1MIT- AlicenseAqualityDmaintenanceUSDA nutrition API optimized for AI agents. x402 + USDC on Base41MIT
- FlicenseNot gradedqualityDmaintenancePay-per-use AI security and research tools for autonomous agents on Base, enabling honeypot detection, risk assessment, wallet analysis, and yield optimization via the x402 protocol.1-