Mensageiro MCP API

The organization MCP gateway: your MCP servers behind one endpoint, on your API key.

GitHub OpenAPI

Operations 7

GET /v1/mcp-servers The organization's MCP servers #
POST /v1/mcp-servers Register an MCP server #
GET /v1/mcp-servers/calls Recent /mcp/org tool calls #
GET /v1/mcp-servers/{server_id} One MCP server #
PATCH /v1/mcp-servers/{server_id} Change an MCP server #
DELETE /v1/mcp-servers/{server_id} Remove an MCP server #
POST /mcp/org Organization MCP gateway (Streamable HTTP) #

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/mensageiro-ai:mensageiro-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

mensageiro-ai-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mensageiro MCP API
  version: '2026-10-19'
  summary: One key and one base URL for Claude, GPT, Gemini and the open-weight models in the OpenAI, Anthropic and Gemini wire formats, plus image, video, speech and 3D models.
  description: 'Send the request your SDK already sends, to `https://api.mensageiro.ai/v1` instead of the developer''s URL. The proxy changes only the credential, `stream_options.include_usage` on OpenAI-format streams that did not set it, a `top_k` of 0 or less (off) which it leaves out, and the model id when the request named one of your aliases. Authentication: `Authorization: Bearer sk-msg-live-...`, or the header your SDK sends (`x-api-key` for the Anthropic SDK, `x-goog-api-key` for the Gemini SDK). Exactly one key per request, never in the URL. Model ids are enumerated by GET /v1/catalog (chat, embedding, moderation, rerank and transcription models; each entry''s `type` and `endpoints` say which route takes it) and GET /v1/catalog/media (media), with prices, and by GET /v1/models for what a given key may call. They are not listed in this document. Errors: every error is a JSON object whose `error` carries a `code` and a `message`. OpenAI-format routes and every route outside the chat formats add `type` and `param` (the `Error` schema); the Anthropic format answers in Anthropic''s error shape with the code appended to the message, and the Gemini format in Google''s. Every error carries `x-uplink-request-id`. Fallbacks: `models: ["a", "b"]` in an OpenAI- or Anthropic-format body names up to 5 models tried in order after `model` (or alone, its first entry being the model). The next model is tried only once every route of the one before has failed before a byte reached you, so a stream falls back only before its first byte. The answer''s `model` and `x-uplink-model` name the model that answered, which is the one billed, at its own price. Every entry obeys the key''s allowlist. A key''s `fallback_models` is used when a request names no `models`. Presets: `model: "@preset/"` (also `@`, `@preset/`, or `preset: "@preset/"` beside a model) runs one of your organization''s presets, managed at /v1/presets: its model, fallbacks, default params, system prompt (prepended to yours, or replacing it) and tools. Your request''s own fields win; your tools replace the preset''s tools of the same name and the rest are appended. Every response carries `x-uplink-request-id`; quote it when you write in. Chat responses add `x-uplink-model` and, when they apply, the headers under `components.headers`. Paying per request without a key (x402): POST /v1/chat/completions, /v1/messages, /v1/responses, /v1/embeddings or /v1/search with no credential header and `X-PAYMENT: new` answers 402 with an x402 PaymentRequired object (protocol version 2) as the body and base64 in the PAYMENT-REQUIRED header. `accepts[0]` is scheme `checkout`: `payTo` is a one-time crypto checkout link (USDT, USDC, BTC, ETH, SOL and 13 more), `amount` the dollars to pay (the hold a key would be held for this request, rounded up to whole dollars, at least $1; the hold itself is `extra.request_usd`: the input at 4 bytes a token plus `max_tokens`, 16,384 when the request sets none, at the model''s catalog price, or one search''s fee on /v1/search), `extra.payment_id` the id of the payment. Pay there, then send the same request again with `X-PAYMENT: ` (or PAYMENT-SIGNATURE carrying a base64 x402 PaymentPayload whose `payload.payment_id` is the id). A request with no credential and no X-PAYMENT or PAYMENT-SIGNATURE header is not paying per request: it answers 401 invalid_api_key. Until the payment confirms the answer is 402 x402_payment_pending with the same quote; once it has, the request runs with the payment id as its end user and its own rate limit, and the answer adds PAYMENT-RESPONSE (base64 `{ success, transaction, network, payer }`) beside x-uplink-charge and the signed receipt. Every request sent with the id spends the payment down at the catalog price, and what the last one leaves stays with the service; a request the remainder cannot hold is a 402 x402_payment_spent with a fresh checkout. `stream` must be false. The model must be one id from GET /v1/catalog (no aliases, presets or `auto`).'
  contact:
    url: https://mensageiro.ai/contact
    email: contato@mensageiro.ai
servers:
- url: https://api.mensageiro.ai
  description: Production
security:
- bearer: []
- apiKey: []
- googleApiKey: []
tags:
- name: MCP
  description: 'The organization MCP gateway: your MCP servers behind one endpoint, on your API key.'
paths:
  /v1/mcp-servers:
    get:
      operationId: listMcpServers
      summary: The organization's MCP servers
      description: The servers /mcp/org aggregates. Header values are never returned; `header_names` says which are stored.
      tags:
      - MCP
      security:
      - adminKey: []
      responses:
        '200':
          description: The servers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpServerList'
        '401':
          description: invalid_api_key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: createMcpServer
      summary: Register an MCP server
      description: A Streamable HTTP MCP server at a public https URL (no private, loopback, link-local or reserved address, checked again before every call; redirects are not followed), with headers sent on every call (sealed at rest) and an optional tool allowlist. Its tools appear on /mcp/org as `name__tool`. Up to 20 per organization.
      tags:
      - MCP
      security:
      - adminKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpServerCreate'
      responses:
        '201':
          description: The server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpServerEnvelope'
        '400':
          description: 'invalid_url: not a public https URL. invalid_request.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: invalid_api_key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: name_taken, or limit_reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/mcp-servers/calls:
    get:
      operationId: listMcpCalls
      summary: Recent /mcp/org tool calls
      description: 'Newest first: time, server, tool, status (ok, tool_error, failed, denied by the server''s allowlist, blocked by the key''s tool policy), latency. Arguments only for calls made with a key that keeps bodies. `limit` up to 200, `server_id` to filter.'
      tags:
      - MCP
      security:
      - adminKey: []
      parameters:
      - name: limit
        in: query
        description: 1 to 200; 50 unless set.
        schema:
          type: integer
          minimum: 1
          maximum: 200
      - name: server_id
        in: query
        description: One server's calls.
        schema:
          type: string
      responses:
        '200':
          description: The calls.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpCallList'
        '401':
          description: invalid_api_key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/mcp-servers/{server_id}:
    get:
      operationId: getMcpServer
      summary: One MCP server
      tags:
      - MCP
      security:
      - adminKey: []
      parameters:
      - $ref: '#/components/parameters/server_id'
      responses:
        '200':
          description: The server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpServerEnvelope'
        '401':
          description: invalid_api_key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: updateMcpServer
      summary: Change an MCP server
      description: Any subset of the fields. `headers` replaces every stored header; null clears them.
      tags:
      - MCP
      security:
      - adminKey: []
      parameters:
      - $ref: '#/components/parameters/server_id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpServerPatch'
      responses:
        '200':
          description: The server as it now is.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpServerEnvelope'
        '400':
          description: invalid_url, invalid_request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: deleteMcpServer
      summary: Remove an MCP server
      tags:
      - MCP
      security:
      - adminKey: []
      parameters:
      - $ref: '#/components/parameters/server_id'
      responses:
        '200':
          description: Removed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: string
        '404':
          description: not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /mcp/org:
    post:
      operationId: orgMcp
      summary: Organization MCP gateway (Streamable HTTP)
      description: 'One MCP endpoint for every server registered under /v1/mcp-servers: tools/list returns their tools named `server__tool` (each server''s allowlist and the key''s tool_policy applied), tools/call goes to the right server with its stored headers and is logged. Needs an API key (not an admin key). Stateless JSON-RPC over POST.'
      tags:
      - MCP
      security:
      - bearer: []
      - apiKey: []
      requestBody:
        required: true
        description: A JSON-RPC 2.0 request, notification or batch.
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The JSON-RPC response.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '202':
          description: A notification was accepted.
        '401':
          description: invalid_api_key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'admin_key: use an API key. app_key: a key issued to an app through sign-in is for model requests only.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    McpServerPatch:
      type: object
      properties:
        name:
          type: string
        url:
          type: string
        headers:
          type:
          - object
          - 'null'
          additionalProperties:
            type: string
        tool_allowlist:
          type:
          - array
          - 'null'
          items:
            type: string
        enabled:
          type: boolean
    McpServer:
      type: object
      required:
      - id
      - name
      - url
      - header_names
      - tool_allowlist
      - enabled
      - prefix
      - created_at
      - updated_at
      properties:
        id:
          type: string
          description: mcp_ and 24 hex characters.
        name:
          type: string
          description: 'The namespace: its tools are `name__tool` on /mcp/org.'
        url:
          type: string
          description: The server's https Streamable HTTP endpoint.
        header_names:
          type: array
          items:
            type: string
          description: The names of the stored headers. Values are never returned.
        tool_allowlist:
          type:
          - array
          - 'null'
          items:
            type: string
          description: The tools /mcp/org exposes, by the server's own names; null for all.
        enabled:
          type: boolean
        prefix:
          type: string
          description: name followed by __.
        created_at:
          type: integer
          description: Unix milliseconds.
        updated_at:
          type: integer
          description: Unix milliseconds.
    McpServerCreate:
      type: object
      required:
      - name
      - url
      properties:
        name:
          type: string
          pattern: ^[a-z0-9][a-z0-9_-]{0,31}$
          description: No double underscore, not ending in _.
        url:
          type: string
          description: A public https URL.
        headers:
          type:
          - object
          - 'null'
          additionalProperties:
            type: string
          description: Up to 20, sent on every call, for example Authorization. Stored sealed.
        tool_allowlist:
          type:
          - array
          - 'null'
          items:
            type: string
        enabled:
          type: boolean
    McpServerList:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/McpServer'
    Error:
      type: object
      description: The error envelope on OpenAI-format routes and on every route outside the chat formats.
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          - type
          - code
          properties:
            message:
              type: string
              description: What went wrong, in plain words. Never names a host.
            type:
              type: string
              description: 'OpenAI''s error class for the status: invalid_request_error, authentication_error, insufficient_quota, permission_error, not_found_error, rate_limit_error or api_error.'
            param:
              type:
              - string
              - 'null'
              description: Always null.
            code:
              type: string
              description: 'A stable code, the ones named on each response: invalid_request, invalid_api_key, insufficient_balance, model_not_found, rate_limited, upstream_error and so on.'
    McpCallList:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              ts:
                type: integer
                description: Unix milliseconds.
              server:
                type: string
              tool:
                type: string
              status:
                type: string
                enum:
                - ok
                - tool_error
                - failed
                - denied
                - blocked
              http_status:
                type:
                - integer
                - 'null'
              latency_ms:
                type: integer
              error:
                type:
                - string
                - 'null'
              key_id:
                type:
                - string
                - 'null'
              arguments:
                description: The call's arguments, only when the key keeps bodies; else null.
    McpServerEnvelope:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/McpServer'
  parameters:
    server_id:
      name: server_id
      in: path
      required: true
      description: An MCP server's `id`, as GET /v1/mcp-servers lists it.
      schema:
        type: string
        pattern: ^mcp_[0-9a-f]{24}$
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer sk-msg-live-...`. The OpenAI SDK sends this.'
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: The same key in `x-api-key`, as the Anthropic SDK sends it. On GET /v1/models it selects Anthropic's list shape.
    googleApiKey:
      type: apiKey
      in: header
      name: x-goog-api-key
      description: The same key in `x-goog-api-key`, as the Gemini SDK sends it. On GET /v1/models it selects Google's list shape.
    adminKey:
      type: http
      scheme: bearer
      description: 'An admin key, created in the console: `Authorization: Bearer sk-msg-live-...`. It manages keys (/v1/keys) and log exports (/v1/exports), reads sessions and the usage CSV, and cannot call models.'