MCP (Model Context Protocol) servers enable AI assistants like Claude to interact directly with the Measure API. With an MCP server, you can manage customers, subscriptions, invoices, and billing operations through natural language conversations with your AI assistant.Documentation Index
Fetch the complete documentation index at: https://docs.getmeasure.com/llms.txt
Use this file to discover all available pages before exploring further.
Official MCP Server - Beta
The Measure MCP server lets you interact with the Measure API through any MCP-compatible AI client (Claude Code, Cursor, etc.) using natural language. Under the hood it proxies your requests to the same Measure REST API, so all existing permissions and rate limits apply.Prerequisites
- An active Measure account
- A Measure API key - generate one from Settings → API Keys in the Measure dashboard. Note: Anyone access with access to the API token will be able to perform all actions via the Public APIs or MCP tools.
- Your company ID - found in Settings → API Keys in the Measure dashboard
- An MCP-compatible client (see Supported Clients)
Connection Details
| Property | Value |
|---|---|
| Server URL | https://mcp.getmeasure.com/mcp |
| Transport | Streamable HTTP |
MEASURE_API_TOKEN header | Your Measure API key |
MEASURE_COMPANY_ID header | Your Measure company ID |
Supported Clients
Claude Code
Run the following command in your terminal:Cursor
- Open Cursor Settings → MCP.
- Click Add new global MCP server and paste:
- Save and reload the window.
Other MCP Clients
Any client that supports the MCP Streamable HTTP transport can connect using:- Endpoint:
https://mcp.getmeasure.com/mcp MEASURE_API_TOKENheader: your Measure API keyMEASURE_COMPANY_IDheader: your Measure company ID
Giving your AI assistant context
For best results, load the Measure data model reference into your AI assistant’s context before starting a session. It explains how BillableItems, ProductPricings, BundlePricings, Subscriptions, and Customers relate to each other - which helps the assistant form correct queries and avoid common mistakes. In Claude Code, you can do this with:CLAUDE.md:
Available Tools
| Tool | Description |
|---|---|
find_billable_items | Search billable items by name, external name, or state |
find_billable_metrics | Search billable metrics by name, item, or state |
find_bundles | Search bundles by name or state |
find_contracts | Search contracts by customer, status, type, etc. |
find_credit_logs | Search credit logs by customer, invoice, action type, etc. |
find_credits | Search credits by customer, status, type, currency, etc. |
find_customers | Search customers by name, email, MRR, ARR, tags, etc. |
find_entitlements | Search entitlements by name, key, or type |
find_invoices | Search invoices by customer, status, date range, amount, etc. |
find_objects | Search billable objects by customer or item |
find_one-time_charges | Search one-time charges by customer, state, or type |
find_payment_transactions | Search payment transactions by customer, invoice, status, etc. |
find_product_pricing | Search product pricing by name, currency, type, tags, etc. |
find_products | Search products by name, state, or tags |
find_subscriptions | Search subscriptions by customer, status, MRR, dates, etc. |
get_bundle | Retrieve a bundle by ID |
get_contract | Retrieve a contract by ID |
get_credit | Retrieve a credit by ID |
get_customer | Retrieve a customer by ID or external identifier |
get_entitlement | Retrieve an entitlement by ID |
get_invoice | Retrieve an invoice by UUID |
get_invoice_link | Generate an authenticated link to an invoice |
get_payment_methods | Get all payment methods for a customer |
get_product | Retrieve a product by ID or external identifier |
get_product_pricing | Retrieve product pricing by ID or external identifier |
get_subscription | Retrieve a subscription by ID or external identifier |
next_invoice | Preview the upcoming invoice for a subscription (supports change/cancel simulation) |
Building your own MCP server
In the meantime, you can build a custom MCP server using our OpenAPI specification. The OpenAPI spec provides a complete definition of all Measure API endpoints, making it straightforward to generate an MCP server that works with any AI assistant that supports the Model Context Protocol.Options for building
There are several approaches you can take to build an MCP server for Measure: 1. Generate with AI assistants You can use Claude or other AI assistants to automatically generate an MCP server from the Measure OpenAPI specification. Simply provide the specification and ask the AI assistant to create an MCP server implementation in your preferred language. 2. Use MCP SDKs The Anthropic MCP SDK provides tools and libraries for building MCP servers in TypeScript and Python. You can use these SDKs to create a custom server that wraps the Measure API. 3. Use OpenAPI-to-MCP conversion tools Several community tools can automatically convert OpenAPI specifications into MCP servers, allowing you to generate a working server with minimal effort.Setting up your MCP server
To build and configure your own MCP server:- Download the Measure OpenAPI specification
- Create an API token from the Measure dashboard under Developers > API Token
- Use your preferred method to generate the MCP server from the OpenAPI specification
- Configure the server with your API token for authentication
Important considerations for bulk operations
Some operations that require extra care include:- Bulk subscription cancellations: Canceling multiple subscriptions at once will immediately stop billing for those customers
- Bulk pricing changes: Changing pricing for multiple subscriptions simultaneously will affect future invoices
- Bulk refunds: Processing refunds in bulk will immediately credit customer accounts and impact your revenue
- Bulk status changes: Changing subscription or customer status in bulk can affect access to your services
What you can do with an MCP server
With a Measure MCP server connected to your AI assistant, you can perform operations such as:- Create and manage customers
- Set up and modify subscriptions
- Generate and send one-off invoices
- Process payments and refunds
- Manage products, pricing, and plans
- Handle credits, discounts, and promotions

