• Pricing
  • Blog
Log inBook a demo

Getting Started

AI Onboarding

AI Tools

MCP Server

Agent Skills

Commet SkillsBilling Best Practices SkillPricing Models SkillSubscription Patterns Skill
System status
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

MCP Server

Use the MCP Server to manage billing infrastructure.

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:

https://commet.co/mcp/v2

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:

  • Create a Commet account
  • Have an MCP-compatible client (Cursor, Claude Code, Claude Desktop, etc.)

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".

{
  "mcpServers": {
    "commet": {
      "url": "https://commet.co/mcp/v2"
    }
  }
}
claude mcp add --transport http commet https://commet.co/mcp/v2

Open Claude Desktop settings > "Developer" tab > "Edit Config".

{
  "mcpServers": {
    "commet": {
      "url": "https://commet.co/mcp/v2"
    }
  }
}
codex mcp add commet --url https://commet.co/mcp/v2

The command opens the browser for OAuth authentication. Once complete, verify with:

codex mcp list

Add the following to your VS Code settings.json:

{
  "mcp": {
    "servers": {
      "commet": {
        "type": "http",
        "url": "https://commet.co/mcp/v2"
      }
    }
  }
}

Add the following to ~/.gemini/settings.json:

{
  "mcpServers": {
    "commet": {
      "httpUrl": "https://commet.co/mcp/v2"
    }
  }
}

Add the following to opencode.json:

{
  "mcp": {
    "commet": {
      "type": "remote",
      "url": "https://commet.co/mcp/v2"
    }
  }
}
{
  "mcpServers": {
    "commet": {
      "serverUrl": "https://commet.co/mcp/v2"
    }
  }
}

API key authentication

For clients that cannot open browser login, add an x-api-key header:

claude mcp add --transport http commet https://commet.co/mcp/v2 --header "x-api-key: ck_xxxxxxxxx"

For JSON-based clients:

{
  "mcpServers": {
    "commet": {
      "url": "https://commet.co/mcp/v2",
      "headers": {
        "x-api-key": "ck_xxxxxxxxx"
      }
    }
  }
}

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:

list-plans   → api_list_plans
create-plan  → api_create_plan
track-usage  → api_track_usage

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:

ToolDescription
get_current_organizationGet the organization used by API tools
search_docsSearch the live Commet documentation by semantic query

The previous MCP endpoint remains available at https://commet.co/mcp with its original tools and behavior. New connections should use v2.

Before calling a write or delete tool, check get_current_organization. Operations on a live organization affect real customers and money immediately.

How is this guide?

AI Onboarding

Everything you need to onboard your AI agent to Commet.

Commet Skills

Give AI agents expert-level billing knowledge with Agent Skills.

On this page

What is an MCP Server?
What can Commet's MCP Server do?
Prerequisites
How to use the MCP Server
API key authentication
Available Tools