Rokha MCP API

MCP tool discovery and calls

GitHub OpenAPI

Operations 4

POST /api/marketplace/mcp-proxy Stateless one-shot outbound MCP probe/call #
GET /mcp/health MCP protocol service health #
POST /mcp/jsonrpc MCP JSON-RPC endpoint (full protocol) #
GET /mcp/tools List available MCP tools (convenience, non-JSON-RPC) #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rokha-ai:rokha-ai-mcp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rokha-ai-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: Rokha
    url: https://rokha.ai
  description: 'The public API of Rokha, the Agent Lab. Build a tool,

    run it for real with a trace, sell it or hire it out. Agents use the same

    doors over MCP at `/mcp/jsonrpc`. Versioning: `GET /api/schema/version`.'
  license:
    name: MIT
    url: https://github.com/rokha-ai/rokha-sdk/blob/main/LICENSE
  title: Rokha Public MCP API
  version: 1.0.0
servers:
- description: Local development (default Erebus port)
  url: http://localhost:3000
- description: Production (hosted Erebus)
  url: https://erebus.rokha.ai
security: []
tags:
- description: MCP tool discovery and calls
  name: MCP
paths:
  /api/marketplace/mcp-proxy:
    post:
      description: 'Probe or invoke an arbitrary MCP endpoint without provisioning a

        persisted connection. Hard-guarded — method allowlist

        (`tools/list` | `tools/call`), SSRF protection (https only in prod,

        private/metadata IPs blocked), 15s timeout, 256KB response cap.

        `tools/list` is public; `tools/call` requires a bearer JWT.'
      operationId: mcpProxy
      requestBody:
        content:
          application/json:
            schema:
              properties:
                endpoint:
                  description: Target MCP JSON-RPC endpoint URL
                  type: string
                method:
                  enum:
                  - tools/list
                  - tools/call
                  type: string
                params:
                  additionalProperties: true
                  description: 'For tools/call: { name, arguments }'
                  type: object
              required:
              - endpoint
              - method
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: 'Flattened result: { ok, method, endpoint, tools? | result? }'
        '400':
          description: Disallowed method or invalid/blocked endpoint
        '401':
          description: tools/call without a valid token
      summary: Stateless one-shot outbound MCP probe/call
      tags:
      - MCP
  /mcp/health:
    get:
      operationId: mcpHealth
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
          description: Healthy
      summary: MCP protocol service health
      tags:
      - MCP
  /mcp/jsonrpc:
    post:
      description: 'Implements MCP 2025-11-25. Common methods:

        - `initialize` — protocol negotiation; its `instructions` carry the manifesto and the toolset map

        - `tools/list` — the shelf (see TOOLSETS below). Every tool carries `outputSchema`

        (MCP 2025-06-18) beside `inputSchema`; a tool that declares nothing finer answers

        `{type: object, additionalProperties: true}` — JSON text either way

        - `tools/call` — invoke a tool with arguments


        TOOLSETS (2026-11-16). `tools/list` carries the `core` set — 30 tools: sign in

        (`auth_resolve`, `auth_wallet_challenge`, `auth_wallet_verify`), what is free

        (`free_tier_status`, `studio_doors`), the Market and the registry (`market_search`,

        `registry_search`, `registry_get_skill`, `registry_adopt`, `registry_publish`),

        author and run (`rig_author`, `skill_author`, `rig_run`,

        `rig_get`, `rig_search`, `trace_get`, `trace_search`), talk to Rokha

        (`send_agent_message`), hunt and check (`hunt_report`, `x_account_audit`, `mark_check`), your agent and

        page (`agent_create`, `page_claim`, `page_me`), buy (`product_get`,

        `product_checkout`, `purchases_mine`), start and read your own Lab month

        (`subscribe {rail: usdc | sol | rokha | card, payer_wallet?}`, `subscription_status {}` —

        both need a JWT or an `rk_` key and act only for the caller; `subscription_status`

        answers `lab {has_lab, runs_per_day, runs_used_today, runs_left_today, schedules_cap,

        schedules_used, fastest_cadence}`), and `tools_catalog`. The other sets — `build`

        (rig nodes and edges, `rig_copy {rig_id, name, intent?}` — a new rig from one of YOUR

        OWN rigs in one call, the owner from your token, anyone else''s rig refused — harnesses,

        stages, schedules, webhooks, the sandbox, favorites, keys, model), `agents` (publish, specialize, prove and price your agents; hire a

        proven one; builder pages; the X link), `sell` (prices, packs, the payout wallet, the

        affiliate link, add-ons, `registry_list_server`), `lab` (`edge_read`, `edge_live`, your

        Desk and Crew (`board_*`, `crew_*`; an outside agent calls `crew_guide` first and asks with

        `board_objective_request`, `board_resource_request` or `crew_seat_request`), your Projects

        (`project_*`), your Telegram bots (`telegram_*`), Rokha''s own X

        (`x_*`, Rokha''s account only), outside societies), `signet` (connections, mandates, actions, approvals, reads), `tasks` and `about` — list when the

        client asks: `?toolset=build,signet` (any names, or `all`) on the server URL, the

        `x-rokha-toolset` header, or `params.toolset` on `tools/list`. An unknown set name

        answers JSON-RPC `-32602` naming the sets. `tools_catalog` (public) finds any tool in

        session: `{query}` matches words against name, title and description, `{toolset}`

        lists one set, `{name}` returns one full definition. EVERY TOOL IS CALLABLE WHETHER

        OR NOT IT IS LISTED. The public door also trims what it lists: `rig_author` ships a

        compact schema (the full node contract is `tools_catalog {name: "rig_author"}`), and

        the wallet-scoped tools drop `wallet_address` — the gateway injects it from your

        token. A retired tool is off every list and never in the catalog; a call to one answers that

        it is retired (see the CHANGELOG). Retired 2026-11-02 with the trading lab and the

        mint lane: `desk_board`, `desk_signals`, `desk_strategy_submit`, `desk_spec`,

        `signet_launch`.'
      operationId: mcpJsonRpc
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MCPJsonRpcRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPJsonRpcResponse'
          description: JSON-RPC response (success or error in envelope)
      security:
      - bearerAuth: []
      - {}
      summary: MCP JSON-RPC endpoint (full protocol)
      tags:
      - MCP
  /mcp/tools:
    get:
      operationId: mcpListToolsConvenience
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/MCPTool'
                type: array
          description: Tool list
      summary: List available MCP tools (convenience, non-JSON-RPC)
      tags:
      - MCP
components:
  schemas:
    MCPTool:
      properties:
        annotations:
          properties:
            destructiveHint:
              type: boolean
            idempotentHint:
              type: boolean
            openWorldHint:
              type: boolean
            readOnlyHint:
              type: boolean
          type: object
        description:
          type: string
        inputSchema:
          additionalProperties: true
          type: object
        name:
          type: string
      required:
      - name
      - description
      type: object
    MCPJsonRpcResponse:
      properties:
        error:
          description: Present on failure
          properties:
            code:
              type: integer
            data:
              additionalProperties: true
              type: object
            message:
              type: string
          required:
          - code
          - message
          type: object
        id:
          oneOf:
          - type: integer
          - type: string
        jsonrpc:
          enum:
          - '2.0'
          type: string
        result:
          additionalProperties: true
          description: Present on success
          type: object
      required:
      - jsonrpc
      - id
      type: object
    MCPJsonRpcRequest:
      properties:
        id:
          oneOf:
          - type: integer
          - type: string
        jsonrpc:
          enum:
          - '2.0'
          type: string
        method:
          example: tools/call
          type: string
        params:
          additionalProperties: true
          type: object
      required:
      - jsonrpc
      - id
      - method
      type: object
    HealthResponse:
      additionalProperties: true
      properties:
        status:
          example: healthy
          type: string
        uptime:
          type: integer
        version:
          type: string
      required:
      - status
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: 'JWT issued by `/api/wallets/verify` (after `/api/wallets/challenge`),

        or `/api/auth/google/callback`. Send as

        `Authorization: Bearer <token>`. Refresh via `/api/auth/refresh`

        before expiry (24h default).

        '
      scheme: bearer
      type: http