Skip to main content
Glama

@cortexcloud.org/mcp

MCP server for CortexCloud — pay-per-call on-chain data and intelligence for AI agents. Token, wallet, risk, whale, balance, NFT, transaction and cross-chain reads, settled in USDC on Base over x402. No API keys, no subscriptions, no signup.

Two ways to connect

1. Remote (recommended). The hosted server speaks Streamable HTTP and is always current:

{
  "mcpServers": {
    "cortexcloud": {
      "type": "http",
      "url": "https://api.cortexcloud.org/mcp"
    }
  }
}

2. stdio bridge. This package, for clients that can only launch a local process:

{
  "mcpServers": {
    "cortexcloud": {
      "command": "npx",
      "args": ["-y", "@cortexcloud.org/mcp"]
    }
  }
}

The bridge is a transport adapter, not a second implementation: it forwards tools/list and tools/call to the hosted server, so tools, schemas and prices can never drift from the API.

Related MCP server: x402farm-mcp

Tools

17 tools, served from the live registry:

  • Paid (15) — cortex_token_intel ($0.030), cortex_cross_chain_compare ($0.040), cortex_whale_alerts ($0.030), cortex_token_risk ($0.020), cortex_wallet_intel ($0.006), and the $0.004 data routes: cortex_token_price, cortex_token_balances, cortex_nft_ownership, cortex_tx_history, cortex_gas_oracle, cortex_block, plus the batch tools cortex_aggregate_balances, cortex_aggregate_nfts, cortex_aggregate_prices, cortex_aggregate_tx_history (up to 20 items per call).

  • Free (2) — cortex_capabilities (every route, chain and price) and cortex_prices (the price table).

The authoritative list is always GET https://api.cortexcloud.org/v1/capabilities, or cortex_capabilities over MCP.

How payment works

A paid tool call without payment returns the x402 challenge inside the tool result: price, payee, asset, network, and the endpoint to call. Nothing is charged and no wallet is needed to read it.

To settle, the caller signs an EIP-3009 USDC authorization and replays the request with the payment-signature header. Over MCP the server relays that header to the API unchanged; it holds no funds and never signs. Over stdio, forward an existing signature with:

CORTEXCLOUD_PAYMENT_SIGNATURE=<base64 header> npx -y @cortexcloud.org/mcp

For a complete paid flow from code, use the REST reference client — 402 -> sign -> 200 in one file:

https://api.cortexcloud.org/examples/paid_client.py

Env

Variable

Default

Meaning

CORTEXCLOUD_BASE

https://api.cortexcloud.org

API base; the bridge connects to <base>/mcp

CORTEXCLOUD_PAYMENT_SIGNATURE

—

Optional x402 payment header forwarded on every call

Verified behaviour

  • initialize advertises protocol 2025-06-18; the upstream server reports version 0.5.0.

  • tools/list returns 17 tools.

  • cortex_capabilities returns the live catalog with no payment.

  • cortex_token_price without payment returns the 402 challenge, not an error.

MIT licensed.

Available Tools

4 tools
cortex_estimate_optimizationAInspect

Analyze an optimization problem for free — returns a decision block: recommended mode/backend, estimated provider cost, USDC price, benchmark evidence. Always call this before paying for cortex_optimize.

Inputs: problem (required).

cortex_get_jobAInspect

Poll an optimization job by id. Free — returns status, solution, objective, error.

Inputs: job_id (required).

cortex_list_backendsAInspect

List solver backends (classical/hybrid/quantum) with availability, per-backend estimated provider cost, effective price, and sellable flag. Free — check this before choosing a quantum backend.

Inputs: no named parameters.

cortex_optimizeAInspect

Solve a QUBO/Ising optimization problem (x402-paid, USDC on Base). Returns a job_id to poll with cortex_get_job. Prices per run: classical $0.05, hybrid $0.10, quantum $0.85 (charged = max(list, provider cost x 2.0)). Use mode=auto unless you specifically need quantum.

Inputs: problem (required), mode.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a distinct role: estimate analyzes a problem, optimize submits a paid job, get_job polls results, and list_backends shows available solvers. The descriptions clearly separate them, reducing any chance of misselection.

    Naming Consistency5/5

    All tools share the 'cortex_' prefix and follow a consistent verb-first snake_case pattern (estimate_optimization, optimize, get_job, list_backends). This makes the toolset predictable and easy to navigate.

    Tool Count5/5

    With 4 tools, the server covers its core workflow (estimate, solve, poll, list backends) without bloat. The count is well within the ideal range and each tool serves a necessary function for the stated purpose.

    Completeness4/5

    The core lifecycle of estimating, starting, and retrieving optimization jobs is fully covered. A minor gap is the lack of job cancellation or history management, but for the intended use case this is not a critical omission.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers