---
title: "Handle MCP JSON-RPC request"
method: POST
path: "/v2/x402/discovery/mcp"
tags: ["x402 Facilitator"]
---

# Handle MCP JSON-RPC request

`POST /v2/x402/discovery/mcp`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/x402/discovery/mcp`
- Auth: HTTP none

Handles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools.

## Request body

- X402McpRequest: A JSON-RPC 2.0 request for the Model Context Protocol.
  - `jsonrpc` '2.0', required: JSON-RPC version, must be "2.0".
  - `id` union: Request identifier.
    - string
    - integer
  - `method` string, required: The MCP method to invoke.
  - `params` object: Optional parameters for the method.

## Response `200`

MCP response.

- X402McpResponse: A JSON-RPC 2.0 response for the Model Context Protocol.
  - `jsonrpc` '2.0', required: JSON-RPC version.
  - `id` union: Request identifier (matches the request ID, null for notifications).
    - string
    - integer
  - `result` object: The result of the method call (present on success).
  - `error` X402McpError: JSON-RPC 2.0 error object.
    - `code` integer, required: Error code.
    - `message` string, required: Error message.
    - `data` object: Additional error data.

## Other responses

- `400`: Invalid request.
- `500`: Internal server error.

## Changes

- **2026-12-01** `06cb41a4fb57`: 2 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
- **2026-10-16** `ff3c1fdef902`: 2 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
- **2026-10-06** `156440e9f8df`: 20 warning
  - added the new `incompatible_event_types` enum value to the `errorType` response property for the response status `400`
  - added the new `incompatible_event_types` enum value to the `errorType` response property for the response status `500`
  - added the new `invalid_webhook_headers` enum value to the `errorType` response property for the response status `400`
  - added the new `invalid_webhook_headers` enum value to the `errorType` response property for the response status `500`
  - …16 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/x402/discovery/mcp/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
