mcphost Public Tool API

The public-tool API from mcphost — 4 operation(s) for public-tool.

GitHub OpenAPI

Operations 7

GET /d/{namespace}/{tool} Try-it demo page for a catalog tool #
GET /f/{token}/{tool} Argument form for a url-shared tool with ui.form #
POST /f/{token}/{tool} Submit the argument form #
GET /x/{token}/{tool} Run a url-shared tool; the query string is the arguments #
OPTIONS /x/{token}/{tool} CORS preflight #
POST /x/{token}/{tool} Run a url-shared tool; the JSON body is the arguments #
GET /x/{token}/{tool}/runs/{run_id} Poll a run started through this token #

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/mcphost-dev:mcphost-dev-public-tool-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

mcphost-dev-public-tool-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Every non-MCP HTTP route mcphost serves, generated from the router's own route table.
  title: mcphost HTTP Public Tool API
  version: 0.130.14
  x-contract-version: 1.6e4b44bae3e0
servers:
- url: https://mcphost.dev
tags:
- name: public-tool
paths:
  /d/{namespace}/{tool}:
    get:
      operationId: get_d_namespace_tool
      parameters:
      - in: path
        name: namespace
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            text/html:
              schema:
                type: string
          description: OK
        '404':
          description: Not Found
      summary: Try-it demo page for a catalog tool
      tags:
      - public-tool
      x-mcphost-auth: anonymous
  /f/{token}/{tool}:
    get:
      operationId: get_f_token_tool
      parameters:
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            text/html:
              schema:
                type: string
          description: OK
        '404':
          description: Not Found
      summary: Argument form for a url-shared tool with ui.form
      tags:
      - public-tool
      x-mcphost-auth: token
    post:
      operationId: post_f_token_tool
      parameters:
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            text/html:
              schema:
                type: string
          description: OK
        '404':
          description: Not Found
      summary: Submit the argument form
      tags:
      - public-tool
      x-mcphost-auth: token
  /x/{token}/{tool}:
    get:
      operationId: get_x_token_tool
      parameters:
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResult'
          description: OK
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunAccepted'
          description: Accepted
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '404':
          description: Not Found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      summary: Run a url-shared tool; the query string is the arguments
      tags:
      - public-tool
      x-mcphost-auth: token
    options:
      operationId: options_x_token_tool
      parameters:
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
      summary: CORS preflight
      tags:
      - public-tool
      x-mcphost-auth: anonymous
    post:
      operationId: post_x_token_tool
      parameters:
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolArgs'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResult'
          description: OK
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunAccepted'
          description: Accepted
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '404':
          description: Not Found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      summary: Run a url-shared tool; the JSON body is the arguments
      tags:
      - public-tool
      x-mcphost-auth: token
  /x/{token}/{tool}/runs/{run_id}:
    get:
      operationId: get_x_token_tool_runs_run_id
      parameters:
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: tool
        required: true
        schema:
          type: string
      - in: path
        name: run_id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResult'
          description: OK
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunAccepted'
          description: Accepted
        '404':
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      summary: Poll a run started through this token
      tags:
      - public-tool
      x-mcphost-auth: token
components:
  schemas:
    RunAccepted:
      properties:
        ok:
          const: true
          type: boolean
        poll:
          description: Absolute URL to `GET` until the run is terminal.
          type: string
        run_id:
          type: string
      required:
      - ok
      - run_id
      - poll
      type: object
    ToolArgs:
      description: Arguments to pass, validated against the tool's own args_schema.
      type: object
      x-mcphost-tool-schema: /contract.json
    ErrorEnvelope:
      properties:
        error:
          description: 'The error object inside every façade error envelope. `code` and `message`

            are the only required keys; `help_url` and the incident-banner fields ride

            along when present.'
          properties:
            code:
              description: Stable machine-readable code (`args_invalid`, `rate_limited`, ...).
              type: string
            help_url:
              type:
              - string
              - 'null'
            message:
              type: string
          required:
          - code
          - message
          type: object
        ok:
          const: false
          type: boolean
      required:
      - ok
      - error
      type: object
    RunResult:
      properties:
        ok:
          const: true
          type: boolean
        result:
          description: The tool's own result; shape is the tool's.
        run_id:
          type: string
      required:
      - ok
      - run_id
      - result
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http