AIMarket Oracle Gateway

Stdio MCP: 17 verifiable AIMarket oracles, 35 pay-per-call tools for AI agents.

AI & MLPythonv0.3.1

πŸ“– Read-only mirror. aimarket-oracle-gateway is published from the canonical AI-Factory monorepo. Pull requests are not accepted β€” any commit pushed here is overwritten by scripts/mirror_satellites.sh on the next sync. 🐞 Found a bug or have a request? Please open an issue.

aimarket-oracle-gateway β€” MCP server

One MCP server. Seventeen oracle families. Pay-per-call.

Transport: stdio (aimarket_oracle_gateway/stdio_server.py). Built with the official Model Context Protocol Python SDK (mcp, FastMCP). Compatible hosts: Claude Desktop, Cursor, Glama, and any MCP client that supports stdio servers.

ItemLocation
MCP entrypointaimarket_oracle_gateway/stdio_server.py
Tool routing coreaimarket_oracle_gateway/gateway_core.py
Extended tool surfaceaimarket_oracle_gateway/mcp_tool_surface.py
Glama / Docker runDockerfile, glama.json

A passthrough MCP server β€” the discovery + consumption storefront for the entire oracle-as-a-service specs. One server, 35 tools, every result independently verifiable (signatures, VDF proofs, classical certificates, deterministic replay).

Tools (35)

CategoryMCP toolcapabilityIdprice
Randomnessget_randomplaton.random@v1$0.004
get_randomness_beaconplaton.beacon@v1$0.004
ask_oracleplaton.ask@v1$0.003
verify_randomplaton.verify@v1$0.001
Delaycompute_vdfchronos.eval@v1$0.01
verify_vdfchronos.verify@v1$0.001
Reputationget_reputation_scoreslumen.reputation@v1$0.005
get_agent_trustlumen.score@v1$0.003
verify_reputationlumen.verify@v1$0.002
Consensusaggregate_valuesmurmuration.aggregate@v1$0.002
Thermodynamicsaudit_compute_costlandauer.audit@v1$0.01
verify_compute_costlandauer.verify@v1$0.001
Routingcompute_least_time_routefermat.route@v1$0.01
verify_least_time_routefermat.verify@v1$0.001
Cascade riskanalyze_cascade_riskablation.cascade@v1$0.01
verify_cascade_riskablation.verify@v1$0.001
Samplingget_quasirandom_sequencelattice.sequence@v1$0.002
get_blue_noiseturing.bluenoise@v1$0.002
Optimizationoptimize_routecolony.optimize@v1$0.005
Resilienceanalyze_network_resiliencepercola.threshold@v1$0.01
verify_network_resiliencepercola.verify@v1$0.001
Randomnesssortes_drawsortes.draw@v1$0.006
sortes_verifysortes.verify@v1$0.001
Learninggauss_fieldgauss.field@v1$0.006
gauss_suggestgauss.suggest@v1$0.006
gauss_verifygauss.verify@v1$0.001
Time-lockaestus_sealaestus.seal@v1$0.006
aestus_openaestus.open@v1$0.01
aestus_verifyaestus.verify@v1$0.001
Topologybetti_homologybetti.homology@v1$0.008
betti_distancebetti.distance@v1$0.004
Transportkantor_transportkantor.transport@v1$0.006
kantor_verifykantor.verify@v1$0.001
Spectralfourier_spectrumfourier.spectrum@v1$0.005
fourier_verifyfourier.verify@v1$0.001
Discoverylist_oracle_capabilitiesβ€”free

Subscription tiers (optional Hub bundles)

High-volume tools also advertise monthly bundles in list_oracle_capabilities:

ToolStarterPro
aggregate_values10k calls / $10100k / $50
get_reputation_scores5k / $2050k / $100
audit_compute_cost10k / $15100k / $75
compute_least_time_route10k / $25100k / $120
analyze_cascade_risk5k / $5050k / $250

Pay-per-call remains the default; bundles are Hub-side packaging.

Configure (env)

varmeaning
AIMARKET_HUB_URLAIMarket Hub base URL β€” recommended: metered + paid
AIMARKET_ORACLE_URLdirect oracle-family URL (if no hub) β€” demo/free path
AIMARKET_PAYMENT_CHANNELoptional pre-opened payment channel id
AIMARKET_PAYMENT_CHANNEL_SECRETper-channel debit secret
AIMARKET_API_TOKENoptional bearer token
AIMARKET_MAX_PER_CALL_USDhard cap per call (default 0.10)
AIMARKET_MAX_SPEND_USDhard cumulative budget (default 5.0)
AIMARKET_PRICE_TOLERANCEreject overcharge vs advertised (default 0.10)

If neither URL is set the server fails closed with a clear message.

Payment safety (spec 03): spending caps are enforced client-side and cannot be overridden by a prompt-injected agent. See docs/specs/03-mcp-payment-and-security.md.

Run

pip install -r requirements-mcp.txt && pip install --no-deps -e .
AIMARKET_HUB_URL=https://modelmarket.dev python -m aimarket_oracle_gateway.stdio_server

Claude Desktop (mcpServers entry):

{ "mcpServers": { "aimarket-oracle-gateway": {
  "command": "python", "args": ["-m", "aimarket_oracle_gateway.stdio_server"],
  "env": { "AIMARKET_HUB_URL": "https://modelmarket.dev" } } } }

Publish on Glama

Listing: glama.ai/mcp/servers/alexar76/aimarket-oracle-gateway

Verifiability

  • Platon β€” Ed25519 signature over (random_hex β€– proof)
  • Chronos β€” Wesolowski VDF proof, cheap verify_vdf
  • LUMEN β€” re-derive PageRank from committed graph
  • Murmuration β€” deterministic re-aggregation from input values
  • Landauer β€” bit-for-bit erasure count from ops DAG + circuit_commitment
  • Fermat β€” dual certificate T(v) checked in O(E)
  • Ablation β€” sandpile replay, order-independent topple_total + tau
  • Lattice / Turing β€” deterministic from (count, dim, skip) / seed
  • Colony β€” admissible lower_bound + gap certificate
  • Percola β€” recomputable percolation sweep + f_c
  • Sortes β€” ECVRF 80-byte proof, verifiable offline by anyone (RFC 9381)
  • Gauss β€” deterministic replay of GP posterior + Expected-Improvement suggestion
  • Aestus β€” RSW time-lock puzzle re-derivable; modulus factorization burned each seal
  • Betti β€” recomputable Vietoris-Rips persistence diagram + bottleneck distance
  • Kantor β€” Kantorovich dual potentials checked in O(m*n) without re-solving
  • Fourier β€” recomputable Laplacian spectrum + Fiedler value lambda-2

Tests

PYTHONPATH=. pytest tests/

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx aimarket-oracle-gateway

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-alexar76-aimarket-oracle-gateway": {
      "command": "uvx",
      "args": [
        "aimarket-oracle-gateway"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

aimarket-oracle-gatewaypypi

Compatible MCP Clients

AIMarket Oracle Gateway works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More