Overview
UniBee exposes a Model Context Protocol (MCP) service over HTTPS so agents and integrators can discover and understand the UniBee OpenAPI surface. It helps you search endpoints, inspect schemas, generate examplecurl commands, and follow scenario playbooks.
| Item | Value |
|---|---|
| Production endpoint | https://api.unibee.dev/mcp |
| Protocol | JSON-RPC 2.0 |
| Purpose | OpenAPI documentation retrieval and examples |
Agent configuration
Add a remote MCP server in your agent or IDE and set the URL to:Service boundaries
- The MCP endpoint returns OpenAPI metadata (paths, parameters, schemas, example curls, integration hints). It does not substitute for calling UniBee production or sandbox APIs from your own systems.
- Tools such as
generate_example_requestoutput example HTTP requests you copy and run yourself after filling real credentials and business fields. - You do not need Node.js or a local checkout of this docs repo to use the MCP server.
Authentication
Connecting to the MCP server does not require a UniBee merchant Bearer token. The MCP layer is intended for public documentation access. Keep two concepts separate:| Concern | Behavior |
|---|---|
| MCP connection | No business API token required to call https://api.unibee.dev/mcp. |
| Real UniBee API calls | Use the authentication required by each business endpoint (typically Authorization: Bearer <API_KEY>). |
authToken argument on generate_example_request is only used to embed a token inside the generated example curl for convenience. It is not the MCP server’s own auth parameter. If omitted, examples use a placeholder such as Authorization: Bearer <YOUR_TOKEN>.
JSON-RPC methods
Supported methods:initializetools/listtools/call
Available tools
| Tool | Purpose |
|---|---|
list_specs | List available OpenAPI document sources. |
search_endpoints | Search endpoints by keyword, tag, or path prefix. |
get_endpoint | Return full detail for one path + HTTP method. |
generate_example_request | Build an example curl for a given path and method. |
integration_playbook | Return step-by-step guidance for common scenarios. |
search_endpoints
query(optional): keyword across path, summary, descriptiontag(optional): filter by OpenAPI tagpathPrefix(optional): filter by URL prefixlimit(optional): default 20, max 100
get_endpoint
path(required), e.g./merchant/plan/listmethod(required), e.g.GETorPOST
generate_example_request
path(required)method(required)authToken(optional): inserted into the generated exampleAuthorizationheader only
integration_playbook
scenario(required), one of:merchant_subscriptioncheckout_paymentsystem_refund
Example requests
Initialize
List tools
Call search_endpoints
Call generate_example_request
Recommended workflow
- Call
integration_playbookwith your scenario. - Use
search_endpointsto find relevant routes. - Use
get_endpointto read request/response schemas and security requirements. - Use
generate_example_requestto draft a curl, then add real auth and body fields. - Execute the business API from your own application or API client.

