aimarket-oracle-gateway
Provides access to LUMEN reputation scores (PageRank/EigenTrust trust scores) over a supplied graph.
Click on "Install 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., "@aimarket-oracle-gatewayGenerate a provably random number for my raffle."
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.
📖 Read-only mirror.
aimarket-oracle-gatewayis published from the canonical AI-Factory monorepo. Pull requests are not accepted — any commit pushed here is overwritten byscripts/mirror_satellites.shon the next sync. 🐞 Found a bug or have a request? Please open an issue.
aimarket-oracle-gateway — MCP server
This repository ships a Model Context Protocol (MCP) server that exposes the AIMarket ecosystem's verifiable oracle capabilities — Platon VRF (signed randomness), Chronos VDF (verifiable delay / proof-of-elapsed-time), and LUMEN reputation — as agent-callable tools, pay-per-call over the AIMarket protocol.
Transport: stdio (mcp_stdio_server.py). Built with the official
MCP Python SDK (mcp package, FastMCP).
Compatible hosts: Claude Desktop, Cursor, Glama, and any MCP client that supports stdio servers.
Item | Location |
MCP entrypoint | |
MCP SDK dependency |
|
Glama / Docker run |
A passthrough MCP server that puts the ecosystem's oracle capabilities in front of any AI agent. It is the discovery + consumption storefront for the oracle-as-a-service specs: an agent adds this server, sees the tools, and calls them — pay-per-call over the AIMarket protocol, no signup. Every result is independently verifiable (verify the signature / VDF proof rather than trusting the service).
Tools
MCP tool | capabilityId | price | what it returns |
|
| ~$0.004 | Ed25519-signed unbiasable randomness + proof |
|
| ~$0.004 | the round's public beacon |
|
| ~$0.003 | entropy-derived read-only answer |
|
| ~$0.01 | VDF |
|
| ~$0.001 |
|
|
| ~$0.005 | PageRank/EigenTrust trust scores over a graph you supply |
| — | free | the tool/capability/price table |
Related MCP server: agentfolio-mcp-server
Configure (env)
var | meaning |
| AIMarket Hub base URL — recommended: metered + paid, the routing fee funds the ecosystem |
| direct oracle-family URL (used if no hub) — demo/free path |
| optional pre-opened payment channel id (sent as |
| optional bearer token (dev/prod auth) |
| hard cap per call (default |
| hard cumulative budget this process (default |
| reject if the hub charges > advertised × (1 + this) (default |
If neither URL is set the server fails closed with a clear message (never silently fakes a result).
Payment safety (spec 03): the caps above are enforced client-side and a prompt-injected / runaway agent cannot override them — the gateway refuses to spend past them (fail-closed). It also rejects a hub that charges more than the advertised price. See docs/specs/03-mcp-payment-and-security.md.
Run
# stdio (local / Claude Desktop)
pip install -r requirements-mcp.txt && pip install --no-deps -e .
AIMARKET_HUB_URL=https://modelmarket.dev python mcp_stdio_server.py
# Docker
docker build -t aimarket-oracle-gateway .
docker run -i -e AIMARKET_HUB_URL=https://modelmarket.dev aimarket-oracle-gatewayClaude Desktop (mcpServers entry):
{ "mcpServers": { "aimarket-oracle-gateway": {
"command": "python", "args": ["mcp_stdio_server.py"],
"env": { "AIMARKET_HUB_URL": "https://modelmarket.dev" } } } }Publish on Glama (maintainer)
This repo ships glama.json + Dockerfile at the root. Listing: glama.ai/mcp/servers/alexar76/aimarket-oracle-gateway — claim with Login with GitHub (maintainers: alexar76). Glama builds the Docker image and indexes the tools so agents discover get_random / compute_vdf / … directly.
Verifiability (the point)
Randomness carries an Ed25519
signatureover(random_hex ‖ proof); verify against the signer key in the Hub's signed manifest. The result includes averifiablesummary (signed,has_proof).VDF output
y=g^(2^T) mod Nis checkable in one exponentiation viaverify_vdf(and on-chain viaChronosVDF.sol).
Notes
This is the storefront; the live oracles + escrow settlement already exist (see docs/onchain-journal.md).
Shipped:
platon.verify/lumen.verify/lumen.score,chronos modulus_hex, the hub's signed.well-known+/pricesendpoint, and the gateway spending-cap/overcharge security core.Roadmap (per the specs): the full channel lifecycle (auto open/sign/settle/refund, nonce-sync, receipt-signature + TLS pinning), the remote pre-signed-voucher path, and OS-keychain key storage.
Tests:
PYTHONPATH=. pytest tests/(routing/parse logic, no network).
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexar76/aimarket-oracle-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server