Kody MCP Servers API

User-added MCP servers.

GitHub OpenAPI

Operations 7

GET /v1/mcp-servers List the signed-in user's saved MCP servers with live connection status… #
POST /v1/mcp-servers Add a remote MCP server for the signed-in user and connect to it #
DELETE /v1/mcp-servers/{server} Remove a saved MCP server: disconnects it, deletes stored OAuth tokens and… #
PUT /v1/mcp-servers/{server}/enabled Enable or disable a saved MCP server #
POST /v1/mcp-servers/{server}/reconnect Retry connecting to a saved MCP server that is failed or disconnected #
POST /v1/mcp-servers/{server}/refresh Re-discover the tools exposed by a connected MCP server (for example after the… #
POST /v1/mcp-servers/{server}/lock Deprecated: use `resourceLock` (POST /v1/resource-locks) with kind "mcp_server"… #

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/kody-codes:kody-codes-mcp-servers-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

kody-codes-mcp-servers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kody MCP Servers API
  version: 1.0.0
  description: 'HTTP API for a Kody account. Versioned under `/v1`; changes within v1 are additive. See https://kody.codes/docs/api-versioning.md for deprecation windows and migration policy (we do not break users; phased migration with codemods when needed). Authenticate with `Authorization: Bearer kody_at_…`. Tokens are minted by the MCP `api` tool (`tokenCreate`) or by another token, and each carries explicit org-permission scopes. There is no write-implies-read hierarchy. Tokens require an explicit lifetime: lifetime "short" (3600s idle / 86400s max) or "long" (1209600s idle / 7776000s max), or both idle_ttl_seconds (60-1209600) and max_lifetime_seconds (up to 7776000). Each successful request slides expires_at forward, never past max_expires_at. At most 500 active tokens per account; a new mint reclaims the active token(s) with the least remaining life (sooner of idle deadline and absolute expiry), never the caller''s own token. Errors use `{ "error": { "code", "message", "details"? } }` (see components.schemas.Error). Documented 4xx/5xx responses reference that schema. Requests are rate limited per IP (600/min) and per token (300/min); HTTP 429 includes `Retry-After`. Edge-generated 429 responses also include a `RateLimit-Policy` advertisement; entitlement 429s send `Retry-After` only. `operationId` values match Kody capability names, except deprecated forwarders, which keep their old ids and forward to the capability their description names. Every id, deprecated ones included, works with the MCP `api` tool (`{ operationId, params }`, where params hold path, query, and body fields flat). Interactive docs: https://api-docs.kody.codes


    Scopes:

    - `file:read`: Granted `file:read` in this org. - `file:comment`: Granted `file:comment` in this org. - `file:write`: Granted `file:write` in this org. - `file:delete`: Granted `file:delete` in this org. - `file:manage_access`: Granted `file:manage_access` in this org. - `package:read`: Read saved packages and package-backed resources. - `package:execute`: Execute saved packages. - `package:write`: Change saved packages and package-backed resources. - `package:delete`: Delete saved packages. - `package:publish`: Publish packages to the community catalog. - `package:manage_access`: Manage package access grants. - `app:read`: Read package apps. - `app:execute`: Run package apps. - `app:write`: Granted `app:write` in this org. - `app:delete`: Granted `app:delete` in this org. - `app:manage_access`: Granted `app:manage_access` in this org. - `job:read`: Read package jobs and workflow runs. - `job:execute`: Run package jobs. - `job:write`: Granted `job:write` in this org. - `job:manage_access`: Granted `job:manage_access` in this org. - `secret:use`: Use secrets without reading plaintext. - `secret:read`: Granted `secret:read` in this org. - `secret:read_local`: Read secret values on this machine with the Kody CLI, only for secrets a person turned on local reads for. - `secret:write`: Change existing secrets (plaintext is never returned). - `secret:delete`: Granted `secret:delete` in this org. - `secret:manage_access`: Granted `secret:manage_access` in this org. - `integration:use`: Use connected integrations. - `integration:read`: Read OAuth integrations and connected MCP servers. - `integration:write`: Granted `integration:write` in this org. - `integration:delete`: Granted `integration:delete` in this org. - `integration:manage_access`: Granted `integration:manage_access` in this org. - `memory:read`: Read memories and MCP server instructions. - `memory:write`: Change existing memories. - `memory:delete`: Granted `memory:delete` in this org. - `memory:manage_access`: Granted `memory:manage_access` in this org. - `email:read`: Read inboxes and messages. - `email:send`: Send email. - `email:write`: Granted `email:write` in this org. - `email:delete`: Granted `email:delete` in this org. - `email:manage_access`: Granted `email:manage_access` in this org.'
servers:
- url: https://api.kody.codes
security:
- apiToken: []
tags:
- name: mcp-servers
  description: User-added MCP servers.
paths:
  /v1/mcp-servers:
    get:
      operationId: mcpServerList
      summary: List the signed-in user's saved MCP servers with live connection status…
      description: 'List the signed-in user''s saved MCP servers with live connection status, pending OAuth authUrls (Kody consent pages the user opens to approve access), whether stored tokens include a refresh token, discovered tool names, durable lastError when post-IdP settle or token refresh did not reach ready, and package usage (any context vs locked to listed packages).


        Org permission: `integration:read`.'
      tags:
      - mcp-servers
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  oauthClientOrigin:
                    type: string
                  oauthCallbackUrl:
                    type: string
                  oauthClientMetadataUrl:
                    type:
                    - string
                    - 'null'
                  servers:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        url:
                          type: string
                        enabled:
                          type: boolean
                        state:
                          type: string
                        connected:
                          type: boolean
                        toolCount:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        authUrl:
                          type:
                          - string
                          - 'null'
                        error:
                          type:
                          - string
                          - 'null'
                        hasRefreshToken:
                          type: boolean
                        tools:
                          type: array
                          items:
                            type: string
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                        usageMode:
                          type: string
                          enum:
                          - any
                          - packages
                        allowedPackageIds:
                          type: array
                          items:
                            type: string
                      required:
                      - id
                      - name
                      - url
                      - enabled
                      - state
                      - connected
                      - toolCount
                      - authUrl
                      - error
                      - hasRefreshToken
                      - tools
                      - createdAt
                      - updatedAt
                      - usageMode
                      - allowedPackageIds
                      additionalProperties: false
                required:
                - oauthClientOrigin
                - oauthCallbackUrl
                - oauthClientMetadataUrl
                - servers
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:read
      x-kody-read-only: true
    post:
      operationId: mcpServerAdd
      summary: Add a remote MCP server for the signed-in user and connect to it
      description: 'Add a remote MCP server for the signed-in user and connect to it. Servers that require OAuth return an authUrl: a signed-in Kody consent page the user opens and confirms before Kody sends them to the provider; other servers connect immediately. Pass bearerToken for servers that authenticate with a static Authorization header instead of (or in addition to) OAuth. Connected server tools become kody.mcp["server-name"].tool_name(...) capabilities. When OAuth fails with origin or redirect URI errors, the remote authorization server must allow Kody''s oauthClientOrigin, oauthCallbackUrl, and oauthClientMetadataUrl (CIMD client_id) when present.


        Org permission: `integration:create`.'
      tags:
      - mcp-servers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  minLength: 1
                  description: Short kebab-case name for the server (lowercase letters, numbers, dashes). Used as kody.mcp["name"] in execute code.
                url:
                  type: string
                  minLength: 1
                  description: The remote MCP server endpoint URL. Must be https (http is only allowed for localhost during development).
                bearerToken:
                  description: Optional static credential for Authorization. Bare tokens are sent as Bearer <token>; values that already include an auth scheme (Bearer, token, etc.) are sent as-is. Stored only in the per-user MCP client hub, never returned later.
                  type: string
                  minLength: 1
              required:
              - name
              - url
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  url:
                    type: string
                  state:
                    type: string
                  toolCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  authUrl:
                    type:
                    - string
                    - 'null'
                  error:
                    type:
                    - string
                    - 'null'
                  oauthClientOrigin:
                    type: string
                  oauthCallbackUrl:
                    type: string
                  oauthClientMetadataUrl:
                    type:
                    - string
                    - 'null'
                  nextStep:
                    type: string
                required:
                - id
                - name
                - url
                - state
                - toolCount
                - authUrl
                - error
                - oauthClientOrigin
                - oauthCallbackUrl
                - oauthClientMetadataUrl
                - nextStep
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:create
      x-kody-read-only: false
  /v1/mcp-servers/{server}:
    delete:
      operationId: mcpServerRemove
      summary: 'Remove a saved MCP server: disconnects it, deletes stored OAuth tokens and…'
      description: 'Remove a saved MCP server: disconnects it, deletes stored OAuth tokens and client registrations, and removes its kody.mcp capabilities.


        Org permission: `integration:delete`.'
      tags:
      - mcp-servers
      parameters:
      - name: server
        in: path
        required: true
        description: The saved MCP server id or name.
        schema:
          type: string
          minLength: 1
          description: The saved MCP server id or name.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  removed:
                    type: boolean
                  id:
                    type: string
                  name:
                    type: string
                required:
                - removed
                - id
                - name
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:delete
      x-kody-read-only: false
  /v1/mcp-servers/{server}/enabled:
    put:
      operationId: mcpServerSetEnabled
      summary: Enable or disable a saved MCP server
      description: 'Enable or disable a saved MCP server. Disabled servers keep their stored connection and OAuth state but their tools are hidden from search, execute, and package code until re-enabled.


        Org permission: `integration:write`.'
      tags:
      - mcp-servers
      parameters:
      - name: server
        in: path
        required: true
        description: The saved MCP server id or name.
        schema:
          type: string
          minLength: 1
          description: The saved MCP server id or name.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                enabled:
                  type: boolean
                  description: Whether the server should be enabled.
              required:
              - enabled
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  enabled:
                    type: boolean
                required:
                - id
                - name
                - enabled
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:write
      x-kody-read-only: false
  /v1/mcp-servers/{server}/reconnect:
    post:
      operationId: mcpServerReconnect
      summary: Retry connecting to a saved MCP server that is failed or disconnected
      description: 'Retry connecting to a saved MCP server that is failed or disconnected. Tries stored OAuth refresh first; an authUrl is the Kody consent page the user opens to re-authorize. Surfaces a durable lastError when refresh failed.


        Org permission: `integration:write`.'
      tags:
      - mcp-servers
      parameters:
      - name: server
        in: path
        required: true
        description: The saved MCP server id or name.
        schema:
          type: string
          minLength: 1
          description: The saved MCP server id or name.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties: {}
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  state:
                    type: string
                  toolCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  authUrl:
                    type:
                    - string
                    - 'null'
                  error:
                    type:
                    - string
                    - 'null'
                  oauthClientOrigin:
                    type: string
                  oauthCallbackUrl:
                    type: string
                  oauthClientMetadataUrl:
                    type:
                    - string
                    - 'null'
                required:
                - id
                - name
                - state
                - toolCount
                - authUrl
                - error
                - oauthClientOrigin
                - oauthCallbackUrl
                - oauthClientMetadataUrl
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:write
      x-kody-read-only: false
  /v1/mcp-servers/{server}/refresh:
    post:
      operationId: mcpServerRefresh
      summary: Re-discover the tools exposed by a connected MCP server (for example after the…
      description: 'Re-discover the tools exposed by a connected MCP server (for example after the server ships new tools).


        Org permission: `integration:write`.'
      tags:
      - mcp-servers
      parameters:
      - name: server
        in: path
        required: true
        description: The saved MCP server id or name.
        schema:
          type: string
          minLength: 1
          description: The saved MCP server id or name.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties: {}
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  state:
                    type: string
                  toolCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  error:
                    type:
                    - string
                    - 'null'
                required:
                - id
                - name
                - state
                - toolCount
                - error
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:write
      x-kody-read-only: false
  /v1/mcp-servers/{server}/lock:
    post:
      operationId: mcpServerLock
      summary: 'Deprecated: use `resourceLock` (POST /v1/resource-locks) with kind "mcp_server"…'
      description: 'Deprecated: use `resourceLock` (POST /v1/resource-locks) with kind "mcp_server" instead; this route is removed after 2027-01-22.


        Narrow a credential-like resource to a saved package; unlock or removal is website-only, and this capability can never loosen usage. For kind secret, requires secret:use and returns only an approval_url that the owner must click; never treat it as a grant. The secret page is /@/-/secrets/approve. For kind secret_provider, requires secret:use and likewise returns only an owner-clicked approval_url; ad hoc execute does not need provider grants, but saved packages do. For kind integration, requires integration:use and immediately switches to packages mode and adds the package id; unlock at /account/integrations/:name, and integrationSave cannot change usageMode. For kind mcp_server, requires integration:use and immediately switches to packages mode and adds the package id; unlock at /account/mcp-servers/:serverId. secretSet cannot change allowed_packages.


        Org permission: `integration:use`.'
      deprecated: true
      tags:
      - mcp-servers
      parameters:
      - name: server
        in: path
        required: true
        description: The saved MCP server id or name.
        schema:
          type: string
          minLength: 1
          description: The saved MCP server id or name.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                package_id:
                  type: string
                  minLength: 1
                  description: Saved package id that may call this MCP server.
              required:
              - package_id
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  usage_mode:
                    type: string
                    const: packages
                  allowed_package_ids:
                    type: array
                    items:
                      type: string
                  usage_url:
                    type: string
                required:
                - id
                - name
                - usage_mode
                - allowed_package_ids
                - usage_url
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: integration:use
      x-kody-read-only: false
components:
  responses:
    Error:
      description: 'Error envelope `{ "error": { "code", "message", "details"? } }`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            minimum: 1
        RateLimit-Policy:
          description: 'Edge-generated 429s only: advertised policies (`ip` 600/min, `token` 300/min). Remaining counts are not exposed. Entitlement 429s omit this header.'
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - invalid_request
              - unauthorized
              - insufficient_scope
              - profile_grant
              - profile_inactive
              - email_verification_required
              - account_suspended
              - guest_not_allowed
              - guest_claim_required
              - feature_unavailable
              - feature_disabled
              - not_found
              - method_not_allowed
              - account_deleting
              - payload_too_large
              - unsupported_media_type
              - rate_limited
              - entitlement_limit
              - capability_error
              - quarantined_inbound_reply
              - package_import_unresolved
              - package_import_unpublished
              - unsupported_dynamic_package_import
              - package_graph_resource_limit
              - publish_not_applied
              - internal_error
              - not_granted
              - context_revoked
              - chain_changed
              - chain_too_long
              - context_not_usable
              - no_execution_context_available
              - execution_context_unavailable
              - execution_context_binding_unavailable
              - execution_context_lease_invalid
              - execution_context_access_lost
              - context_not_revoked
              - commands_opt_in_local
              - commands_operator_only
              - execution_context_commands_off
              - execution_context_command_not_granted
              - execution_context_command_requires_context
              - context_paused
              - context_offline
              - not_service_managed
              - daemon_busy
              - daemon_outdated
              - daemon_timeout
              - daemon_control_failed
            message:
              type: string
            details: {}
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer
      bearerFormat: kody_at_<id>_<secret>
      description: Scoped Kody API token. Each operation lists its required org permission in `x-kody-permission`. Credential scopes narrow that permission.
externalDocs:
  description: Interactive Kody API docs (Scalar)
  url: https://api-docs.kody.codes