Skip to main content

What is an MCP Server?

MCP is an open protocol that standardizes how applications provide context to LLMs. Among other benefits, it provides LLMs tools to act on your behalf.

What can Commet’s MCP Server do?

Commet’s MCP server gives your AI agent native access to the full Commet platform through a single integration. You can manage all aspects of your billing infrastructure using natural language.
  • Organization — See the live or sandbox organization fixed to the connection
  • Commet API — Use every operation in the current public OpenAPI document
  • Docs — Search the live Commet documentation
As an example, you could use this to create a full billing setup, manage plans and features, inspect customer subscriptions, or review invoices and usage data.

Prerequisites

The MCP endpoint is the same for sandbox and live data:
OAuth opens Commet in the browser and asks you to choose one organization for the connection. The connection stays fixed to that organization even if you later switch organizations in the dashboard; reconnect to choose another one. API key authentication uses the exact sandbox or live organization that created the key. OAuth currently exposes the same API tools to owners, admins, and members. To use it, you’ll need to:
Browser-based clients can use OAuth with no API key. If your client runs in CI, on a server, or anywhere browser login is not possible, pass a Commet API key in the x-api-key header.
Switch to a sandbox organization when experimenting or setting up billing for the first time. Operations on a live organization affect real customers immediately.

How to use the MCP Server

Choose your preferred client below.
Open the command palette and choose “Cursor Settings” > “MCP” > “Add new global MCP server”.

API key authentication

For clients that cannot open browser login, add an x-api-key header:
For JSON-based clients:
API-key sessions authenticate as the user who created the key and use the exact organization that created the key. A sandbox key can only act on its sandbox organization; a live key can only act on its live organization. Create the key from a sandbox organization when experimenting.

Available Tools

MCP v2 exposes one generated tool for every operation in the current Commet OpenAPI document. The generated names use api_ plus the operation ID in snake case:
Each generated tool groups its input the same way:
  • path for URL parameters
  • query for filters, cursors, and pagination
  • body for the endpoint’s exact OpenAPI request body
  • idempotencyKey for optional POST, PUT, and PATCH idempotency
Generated tools always execute the latest API version published by Commet. They do not read or change an older API version pinned for the organization’s SDKs. The following Commet-specific tools remain available: The previous endpoint, https://commet.co/mcp, is retired. It no longer exposes tools: it tells the connected agent to reconnect at https://commet.co/mcp/v2. Replace the URL in your client configuration and sign in again.
Before calling a write or delete tool, check get_current_organization. Operations on a live organization affect real customers and money immediately.