Skip to main content
Glama

A.GRID Earth Physical Infrastructure Risk MCP Server (geo-oracle-x402 v3.0.0)

Model Context Protocol (MCP) Server & Real-Time Earth Physical Infrastructure Risk Hub (x402 Multi-Chain & Solana). Exposes 5 MCP tools over both Streamable HTTP (POST /mcp) and Stdio (mcp_server.py) combining 10 live Tier-1 Earth & Digital Infrastructure feeds (USGS ComCat, NASA EONET, Copernicus 5-pt DEM, Open-Meteo & Stull Wet-Bulb, ECMWF GloFAS Flood, PeeringDB DC/IXP, TeleGeography subsea cables, Starlink orbital physics) for AI Data Centers, Ports, Mines, Power Grids, Subsea Cables, Farms, and Logistics Hubs.

Glama score CI License: MIT MCP Python 3.11+ FastAPI x402 Protocol


1. Model Context Protocol (MCP) Server

geo-oracle-x402 implements the Model Context Protocol (MCP JSON-RPC 2.0, 2024-11-05) via:

  • Hosted Streamable HTTP MCP Endpoint: POST https://geo-oracle-x402-212942243360.asia-northeast3.run.app/mcp (initialize, ping, tools/list, tools/call)

  • MCP Tool Discovery: GET https://geo-oracle-x402-212942243360.asia-northeast3.run.app/mcp/tools

  • Local Stdio MCP Server (mcp_server.py): Thin JSON-RPC 2.0 stdio transport compatible with Claude Desktop, Cursor, Windsurf, and Glama.ai.

MCP Tools Catalog

MCP Tool Name

Fee

Description

preview_infrastructure_risk

Free

Multi-layer physical & digital infrastructure risk preview for any WGS84 coordinate combining 10 live Tier-1 feeds (USGS, NASA EONET, Copernicus 5-pt DEM, Open-Meteo & Stull Wet-Bulb, ECMWF GloFAS Flood, PeeringDB, TeleGeography subsea cables).

assess_infrastructure_risk

0.015 USDC (x402)

Verified physical infrastructure risk assessment returning deterministic SHA-256 proof_hash, BCBS resilience flags, and full data_provenance.

get_geo_brain_status

Free

Live telemetry, sequential Brier score, episodic memory stats, and GCS persistence status of the 24/7 geo-oracle-elizaos-brain.

get_federation_mesh_status

Free

Live health and routing directory across A.GRID sister MCP/x402 servers (security-gate, cleanweb, eudr, minerals).

get_security_gate_status

Free

4-tier Security Gate governance status, neutralized prompt-injection threats, EU AI Act Art. 50 watermark policy, and spend guardrails.

Claude Desktop / Cursor MCP Configuration (stdio)

{
  "mcpServers": {
    "geo-oracle-x402": {
      "command": "python",
      "args": ["mcp_server.py"],
      "env": {
        "GEO_ORACLE_URL": "https://geo-oracle-x402-212942243360.asia-northeast3.run.app"
      }
    }
  }
}

Remote Streamable HTTP MCP Test (cURL)

curl -X POST https://geo-oracle-x402-212942243360.asia-northeast3.run.app/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Related MCP server: DC Hub: Data Center and Energy Intelligence

2. REST API & Multi-Chain x402 Endpoints

Every paid oracle query supports multi-chain x402 settlement across Solana Mainnet-Beta (Ed25519 SPL USDC), Polygon PoS (137), Base L2 (8453), Arbitrum One (42161), and Ethereum Mainnet (1).

Endpoint

Method & Path

Fee

Key Outputs

MCP JSON-RPC 2.0

POST /mcp

Free / x402

Standard MCP initialize, tools/list, tools/call

MCP Tool Catalog

GET /mcp/tools

Free

Machine-readable MCP tool schemas

Infrastructure Catalog

GET /v1/infrastructure/catalog

Free

Supported asset classes & live sub-oracles

Infrastructure Risk Preview

POST /v1/infrastructure/preview

Free

10-layer live Tier-1 Earth & digital infrastructure risk preview

Infrastructure Risk Assess

POST /v1/infrastructure/assess

0.015 USDC

Verified assessment with X-402-Proof-Hash & data_provenance

Geo-Terrain & Elevation

POST /v1/terrain/analyze

0.005 USDC

Copernicus 5-point DEM elevation, 3D slope, aspect

Micro-Weather & Wind

POST /v1/weather/analyze

0.005 USDC

Live Open-Meteo weather, Stull wet-bulb, 3D wind vector

RF & Starlink Coverage

POST /v1/rf/coverage

0.005 USDC

Orbital-shell Starlink LoS + DEM horizon mask + GNSS PDOP

elizaOS Brain & Security Gate

GET /v1/brain/status, GET /v1/brain/federation, GET /v1/brain/security-gate/status

Free

24/7 Cloud Scheduler learning, GCS persistence, 4-tier Security Gate

Agent Discovery

GET /llms.txt, GET /.well-known/agent-card.json, GET /.well-known/x402.json

Free

A2A, x402, and LLM discovery manifests


3. Quick Start & Local Development

pip install -r requirements.txt
python -m uvicorn app.main:app --host 0.0.0.0 --port 8080 --reload

Run Tests (38 Tests)

python -m pytest -v

Run End-to-End Agent Quickstart

python examples/quickstart_agent.py --url https://geo-oracle-x402-212942243360.asia-northeast3.run.app

Docker (Cloud Run & Glama Ready)

docker build -t geo-oracle-x402:3.0.0 .
docker run -p 8080:8080 geo-oracle-x402:3.0.0
  • Live deployment verification: python scripts/smoke_test_live.py --url https://geo-oracle-x402-212942243360.asia-northeast3.run.app

  • CI/CD Cloud Run workflow: .github/workflows/deploy-cloudrun.yml

  • Operations & monitoring guide: docs/OPERATIONS_GUIDE.md

Available Tools

5 tools
assess_infrastructure_riskA
Read-only

Execute a PAID (0.015 USDC via x402 multi-chain or Solana) verified physical infrastructure risk assessment with a deterministic SHA-256 proof_hash, BCBS operational resilience flags, and an auditable data_provenance trail. Use this tool when downstream smart contracts, insurers, or compliance workflows require a cryptographically verifiable risk attestation; use preview_infrastructure_risk for free exploratory queries. Requires a valid X-402-Signature header (or X402_SIGNATURE environment variable in stdio mode); if omitted or invalid, returns a structured payment_required (HTTP 402) challenge describing the exact USDC amount, recipient, and supported settlement networks.

Inputs: asset_id (required), latitude (required), longitude (required), commodity, +2 more.

get_federation_mesh_statusA
Read-onlyIdempotent

Check live health, latency, and endpoint routing across all A.GRID federated sister oracle services (agent-security-gate-x402, x402-cleanweb-agent, eudr-compliance-agent, and minerals-oracle-x402). Use this tool to verify cross-oracle connectivity or discover specialized domain endpoints for mining (MINE), deforestation/agriculture (FARM), or security workflows. Takes no arguments and returns per-service health status, URLs, and federation mesh summary.

Inputs: no named parameters.

get_geo_brain_statusA
Read-onlyIdempotent

Retrieve live operational telemetry from the 24/7 geo-oracle-elizaos-brain autonomous learning engine. Use this tool to inspect model calibration and reliability before trusting risk forecasts. Takes no arguments and returns current learning cycle count, sequential live Brier score, verified prediction pairs, high-confidence ratio, episodic memory size, and Google Cloud Storage checkpoint persistence status.

Inputs: no named parameters.

get_security_gate_statusA
Read-onlyIdempotent

Inspect the 4-tier Security Gate governance and safety posture protecting geo-oracle-x402. Use this tool to audit prompt-injection defense metrics, autonomous x402 spend-cap guardrails, and EU AI Act Article 50 watermarking compliance before integrating this server into automated agent pipelines. Takes no arguments and returns active tier status, neutralized threat counters, and spend-cap policy thresholds.

Inputs: no named parameters.

preview_infrastructure_riskA
Read-onlyIdempotent

Compute a FREE, read-only multi-layer physical and digital infrastructure risk preview for any WGS84 coordinate worldwide. Use this tool first for site screening, hazard exploration, or cost-free risk checks before committing to a paid cryptographic audit (use assess_infrastructure_risk instead when a verifiable SHA-256 proof_hash and x402 payment receipt are required). Synthesizes 10 live Tier-1 feeds: Copernicus 5-point DEM slope/elevation, Open-Meteo weather & Stull wet-bulb cooling risk, ECMWF GloFAS river flood discharge, USGS ComCat seismic activity, NASA EONET wildfires/storms/volcanoes, PeeringDB data centers/IXPs, TeleGeography subsea cables, and Starlink orbital line-of-sight. Returns composite_risk_score (0-100), risk_grade, layer-by-layer sub-scores, confidence level, and full data_provenance metadata.

Inputs: asset_id (required), latitude (required), longitude (required), commodity, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    Most tools are clearly distinct: three status tools target separate operational domains (brain, federation, security), and the two risk tools are explicitly contrasted as free preview vs paid verifiable assessment. The only potential confusion is that preview_infrastructure_risk and assess_infrastructure_risk both compute risk for the same coordinate, but the descriptions strongly disambiguate by cost and proof requirements.

    Naming Consistency5/5

    All tool names use consistent snake_case with a clear verb_noun pattern: preview_infrastructure_risk, assess_infrastructure_risk, and get_*_status. The shared infrastructure_risk noun across the two risk tools is intentional and readable, while the get_*_status trio follows a predictable pattern.

    Tool Count5/5

    Five tools is well-scoped for a specialized geo-risk oracle: two risk-assessment modes plus three operational status checks. Each tool has a clear role and no tool feels redundant or superfluous.

    Completeness4/5

    The surface covers the core lifecycle: free exploratory risk preview, paid verifiable assessment, and operational trust/status checks. Minor gaps exist around retrieving or verifying a prior assessment by ID/proof_hash, and there is no explicit payment/settlement status tool, but these are workarounds rather than blocking omissions.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 25 geophysical intelligence tools for multi-hazard risk scoring, earthquake/volcano/tsunami/sinkhole prediction, weather intelligence, insurance underwriting, climate migration, and parametric triggers.
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      DC Hub is the orchestration layer for data center and energy intelligence. Start with execute_plan for data center site selection, data center capacity, colocation, energy, electricity prices, power grid, fiber and pocket listings. The Data Center Power Index (DCPI) scores grid power for data centers by market, with ISO energy data. Endpoint: https://dchub.cloud/mcp. DCHUB_API_KEY is optional.
      98
      1,056 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A powerful MCP server that connects AI assistants to authoritative natural hazard data sources, enabling monitoring of earthquakes, tsunamis, volcanoes, and solar events with configurable alerts and webhooks.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server wrapping worldmonitor global intelligence dashboard, exposing 140 tools across 32 services for live market, geopolitical, military, cyber, climate, and supply chain data.
      MIT