Rokha Gateway API

One MCP endpoint for all your servers

GitHub OpenAPI

Operations 4

POST /api/gateway/mcp The gateway MCP door — aggregated tools from all your servers #
GET /api/gateway/servers List servers registered behind your Rokha gateway #
POST /api/gateway/servers Register an external MCP server behind the gateway #
DELETE /api/gateway/servers/{id} Remove a server from your gateway #

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-gateway-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-gateway-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 Gateway 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: One MCP endpoint for all your servers
  name: Gateway
paths:
  /api/gateway/mcp:
    post:
      description: 'MCP JSON-RPC over one endpoint. `initialize` answers as

        `rokha-gateway`; `tools/list` fans out to every registered server

        (credentials injected server-side, just-in-time OAuth refresh) and

        returns the union namespaced `_` (partial fan-out reports

        `_meta.unavailable`); `tools/call` de-namespaces and forwards with the

        credential injected. The client holds ONLY its Rokha JWT — real keys

        never leave the platform. Point any MCP client (Claude Code, Cursor,

        an agent) here to reach all your servers through one connection.'
      operationId: gatewayMcp
      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
      security:
      - bearerAuth: []
      summary: The gateway MCP door — aggregated tools from all your servers
      tags:
      - Gateway
  /api/gateway/servers:
    get:
      operationId: gatewayList
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: '{ servers: [...], gateway_url }'
      security:
      - bearerAuth: []
      summary: List servers registered behind your Rokha gateway
      tags:
      - Gateway
    post:
      description: 'Bundle an external MCP server behind your ONE gateway endpoint.

        `secret_alias` names the vault key/OAuth grant that authenticates it

        (omit for open servers); `header_name`/`header_prefix` shape the

        injected auth header (default `Authorization: Bearer `). Its tools

        then appear at the gateway namespaced `_`. Cap 20.'
      operationId: gatewayRegister
      requestBody:
        content:
          application/json:
            schema:
              properties:
                header_name:
                  type: string
                header_prefix:
                  type: string
                name:
                  type: string
                secret_alias:
                  type: string
                server_url:
                  type: string
              required:
              - name
              - server_url
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: '{ id, slug, gateway_url }'
      security:
      - bearerAuth: []
      summary: Register an external MCP server behind the gateway
      tags:
      - Gateway
  /api/gateway/servers/{id}:
    delete:
      operationId: gatewayRemove
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: uuid
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: '{ ok }'
      security:
      - bearerAuth: []
      summary: Remove a server from your gateway
      tags:
      - Gateway
components:
  schemas:
    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
  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