ContextDB MCP API

Model Context Protocol discovery and tool calls

Operations 1

POST /mcp Model Context Protocol endpoint (JSON-RPC 2.0, stateless) #

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/contextdb-ai:contextdb-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

contextdb-ai-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ContextDB Cloud data-plane MCP API
  version: 1.0.0-alpha.1
  description: 'The ContextDB Cloud data plane (hosted alpha). Managed, decision-safe

    agent memory: remember with provenance, recall for grounding, and

    recall_for_action before consequential actions.


    Authentication: `Authorization: Bearer cdb_…` is a project-wide server

    credential. The key determines org and project; requests supply only

    `user_id`, which is a partition key, not end-user authentication.


    This surface is the complete alpha allowlist. Shipped `/v1/forget`

    supports scoped deletion of one memory, one stable entity-and-attribute

    slot, or one verified user partition. Partition erasure requires

    `erase_partition=true`, typed `confirmation` equal to `user_id`, and an

    `Idempotency-Key`. Scoped ID checks make a foreign memory ID

    indistinguishable from a missing one.


    `/mcp` is a Hosted Alpha stateless JSON-RPC 2.0 endpoint over Streamable

    HTTP. Trusted backends may use a project key. Marketplace clients use

    OAuth 2.1 authorization code with S256 PKCE, refresh-token rotation, and a

    server-bound user partition. It exposes tools only, with no sessions, SSE,

    resumability, or server-initiated messages.


    Not production-ready. No SLA.'
  contact:
    name: Atoms AI
    email: gaurav@saaslabs.co
  license:
    name: Proprietary, hosted alpha
    identifier: LicenseRef-Proprietary
servers:
- url: https://api.contextdb.ai
  description: Hosted alpha
security:
- ProjectKey: []
tags:
- name: MCP
  description: Model Context Protocol discovery and tool calls
paths:
  /mcp:
    post:
      tags:
      - MCP
      summary: Model Context Protocol endpoint (JSON-RPC 2.0, stateless)
      description: 'Single JSON-RPC 2.0 objects over POST; responses are JSON. Tools:

        `remember`, `recall`, `recall_for_action`, `pending_confirmations`,

        `confirm`, and scoped `forget`, with the same contract and scoping as the

        plain HTTP routes. Whole-partition erasure remains on the idempotent

        HTTP and console flows. Trusted backends use a `cdb_` bearer key and

        explicit `user_id`. Marketplace clients use a revocable `cmo_` OAuth

        token; their tool schemas omit `user_id` because the server derives it

        from the grant. Notifications return 202 with no body.'
      operationId: mcp
      security:
      - ProjectKey: []
      - McpOAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JsonRpcRequest'
      responses:
        '200':
          description: JSON-RPC result or error object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonRpcResponse'
        '202':
          description: Notification accepted (no body)
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/NotEntitled'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    Unauthenticated:
      description: Missing, malformed, unknown, or revoked API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 'The client IP/project exceeded its request rate, or the project''s

        idempotency retention capacity is full until older keys expire.

        '
      headers:
        Retry-After:
          description: Seconds until a request is likely to be accepted
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          description: Sustained requests allowed per minute
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Remaining:
          description: Requests remaining in the current burst bucket
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Scope:
          description: Limiting identity (`ip` or `project`)
          schema:
            type: string
            enum:
            - ip
            - project
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotEntitled:
      description: Authenticated but not allowed (entitlement or billing state)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Machine-readable error code
        message:
          type: string
          description: Human-readable message; never a stack trace
        request_id:
          type:
          - string
          - 'null'
      additionalProperties: false
    JsonRpcRequest:
      type: object
      required:
      - jsonrpc
      - method
      properties:
        jsonrpc:
          type: string
          const: '2.0'
        id: {}
        method:
          type: string
        params:
          type: object
      additionalProperties: false
    JsonRpcResponse:
      type: object
      required:
      - jsonrpc
      properties:
        jsonrpc:
          type: string
          const: '2.0'
        id: {}
        result:
          type: object
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: integer
            message:
              type: string
          additionalProperties: false
      additionalProperties: false
  securitySchemes:
    ProjectKey:
      type: http
      scheme: bearer
      description: Project-wide server credential (`cdb_…`). Never in browsers.
    McpOAuth:
      type: oauth2
      description: User-bound marketplace connector grant (`cmo_…`).
      flows:
        authorizationCode:
          authorizationUrl: https://app.contextdb.ai/oauth/authorize
          tokenUrl: https://api.contextdb.ai/oauth/token
          refreshUrl: https://api.contextdb.ai/oauth/token
          scopes:
            memory:read: Recall memory and evaluate evidence before actions
            memory:write: Remember, confirm, and forget memory
            offline_access: Rotate a refresh token for continued access