---
title: "MCP JSON-RPC"
method: POST
path: "/mcp"
tags: ["System"]
---

# MCP JSON-RPC

`POST /mcp`

## Request

- Base URL: `https://api.weblens.dev`
- URL: `https://api.weblens.dev/mcp`
- Auth: none required

Model Context Protocol endpoint for AI agents. Supports tools/list and tools/call methods.

## Request body

- object
  - `jsonrpc` string
  - `method` string
  - `params` object
  - `id` string

## Response `200`

JSON-RPC response

## Other responses

- `402`: Payment required — x402 v2 protocol. Parse the PAYMENT-REQUIRED response header (base64-encoded JSON), sign the payment with your wallet, then retry the request with the Payment-Signature request header.

---

[API](https://skmtc.dev/weblens/apis/weblens-api.md) · [All operations](https://skmtc.dev/weblens/apis/weblens-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weblens/apis/weblens-api/revisions/63a7e81b6921?raw)
