Model Context Protocol (MCP)

Connect your AI assistant to Pelcro's APIs through the Model Context Protocol (MCP). Pelcro exposes two MCP servers:

  • Core API — manage an account as a publisher or operator: customers, subscriptions, invoices, products, and more.
  • Open API — act on behalf of a single signed-in subscriber: their own subscriptions, addresses, payment methods, and more.
🚧

These MCP servers are under active development. Tool names, parameters, and behavior may change between releases without prior notice. MCP clients should always fetch the latest tool definitions from the server at the start of each session — do not cache or hardcode tool schemas. If you have feedback or want to see more tools, email us at [email protected].

Installation

Each client takes two entries — pelcro-api-core for the Core API and pelcro-api-open for the Open API.

Claude Code

claude mcp add --transport http pelcro-api-core https://mcp.pelcro.com/
claude mcp add --transport http pelcro-api-open https://mcp.pelcro.com/open

Start a new session with claude, type /mcp, select the server, and click Authenticate.

Cursor

Add to your project's .cursor/mcp.json:

{
  "mcpServers": {
    "pelcro-api-core": { "url": "https://mcp.pelcro.com/" },
    "pelcro-api-open": { "url": "https://mcp.pelcro.com/open" }
  }
}

VS Code

Add to your workspace's .vscode/mcp.json. See the VS Code MCP documentation for more details.

{
  "servers": {
    "pelcro-api-core": { "type": "http", "url": "https://mcp.pelcro.com/" },
    "pelcro-api-open": { "type": "http", "url": "https://mcp.pelcro.com/open" }
  }
}

Windsurf

Add to ~/.windsurf/mcp.json:

{
  "mcpServers": {
    "pelcro-api-core": { "url": "https://mcp.pelcro.com/" },
    "pelcro-api-open": { "url": "https://mcp.pelcro.com/open" }
  }
}

ChatGPT

ChatGPT supports remote MCP servers for Pro, Plus, Business, Enterprise, and Education accounts. Create a custom connector in Settings > Apps & Connectors for each server, selecting OAuth as the authentication method:

  • Core API: https://mcp.pelcro.com/
  • Open API: https://mcp.pelcro.com/open

See the OpenAI developer mode guide for detailed setup steps.

Other MCP clients

Any client that supports remote MCP servers over Streamable HTTP can connect to https://mcp.pelcro.com/ (Core API) or https://mcp.pelcro.com/open (Open API). The server handles OAuth discovery automatically via RFC 9728.

Authorize

After installing, your MCP client opens a browser window to complete authentication:

  1. Log into your Pelcro account
  2. Select which account to grant access to
  3. Click Authorize
  4. Return to your AI tool — the tools are now available

The token is scoped to a single account's API endpoints. Public Open API tools require no authentication; tools that act on a specific subscriber's data run under that subscriber's access token.

Manage your connection

Multi-account access

Each MCP server entry is scoped to one account. To access multiple accounts, add multiple entries with different names:

claude mcp add --transport http pelcro-acme https://mcp.pelcro.com/
claude mcp add --transport http pelcro-other https://mcp.pelcro.com/

Each entry triggers its own OAuth flow where you pick a different account on the consent screen.

Re-authenticate

If your token expires or you want to switch accounts, remove the server and re-add it:

claude mcp remove pelcro-api-core
claude mcp add --transport http pelcro-api-core https://mcp.pelcro.com/

Refreshing tools

MCP clients cache the list of available tools when they first connect. If new tools are added to a server, start a new session or reconnect to pick them up.

Environments

EnvironmentCore APIOpen API
Productionhttps://mcp.pelcro.com/https://mcp.pelcro.com/open
Staginghttps://mcp-staging.pelcro.com/https://mcp-staging.pelcro.com/open

Core API tools

Most tools require a site_id parameter. If you don't know your site ID, use get_account first to discover your available sites. List tools support page and limit for pagination.

Response size

Tool responses are capped at 25,000 characters to protect AI context windows. If a response is truncated, use a smaller limit value or add filters to narrow your results.

Error handling

API errors (400, 401, 404, 500, etc.) are returned as tool results with isError: true, not as protocol-level failures. This allows the AI to reason about the error and retry with different parameters.

ResourceToolAPI
Addresseslist_addressesList addresses
get_addressGet address
create_addressCreate address
update_addressUpdate address
delete_addressDelete address
Billslist_billsList bills
get_billGet bill
create_billCreate bill
update_billUpdate bill
delete_billDelete bill
finalize_billFinalize bill
mark_bill_as_paidMark bill as paid
export_billsExport bills
Chargeslist_chargesList charges
get_chargeGet charge
create_offline_chargeCreate offline charge
Couponslist_couponsList coupons
get_couponGet coupon
create_couponCreate coupon
update_couponUpdate coupon
delete_couponDelete coupon
Customerslist_customersList customers
get_customerGet customer
create_customerCreate customer
update_customerUpdate customer
delete_customerDelete customer
credit_from_payment_methodCredit from payment method
delete_customer_metadataDelete customer metadata
E-Commerce Orderslist_ordersList orders
get_orderGet order
create_orderCreate order
update_orderUpdate order
E-Commerce Productslist_ecommerce_productsList e-commerce products
get_ecommerce_productGet e-commerce product
create_ecommerce_productCreate e-commerce product
update_ecommerce_productUpdate e-commerce product
delete_ecommerce_productDelete e-commerce product
E-Commerce SKUslist_ecommerce_skusList SKUs
get_ecommerce_skuGet SKU
create_ecommerce_skuCreate SKU
update_ecommerce_skuUpdate SKU
delete_ecommerce_skuDelete SKU
Exportslist_exportsList exports
request_exportRequest export
download_exportDownload export
Invoiceslist_invoicesList invoices
get_invoiceGet invoice
create_invoiceCreate invoice
update_invoiceUpdate invoice
pay_invoice_offlinePay invoice
void_invoiceVoid invoice
mark_invoice_uncollectibleMark uncollectible
apply_balance_to_invoiceApply balance
Membershipslist_membershipsList members
get_membershipGet member
create_membershipCreate member
invite_memberInvite member
update_membershipUpdate member
delete_membershipDelete member
membership_ip_authorizationIP authorization
Newsletterslist_newslettersList newsletters
get_newsletterGet newsletter
create_newsletterCreate newsletter
update_newsletterUpdate newsletter
delete_newsletterDelete newsletter
Payment Methodslist_payment_methodsList payment methods
get_payment_methodGet payment method
create_payment_methodCreate payment method
delete_payment_methodDelete payment method
Refundslist_refundsList refunds
cancel_refundsCancel refunds
Planslist_plansList plans
get_planGet plan
create_planCreate plan
update_planUpdate plan
delete_planDelete plan
Productslist_productsList products
get_productGet product
create_productCreate product
update_productUpdate product
delete_productDelete product
Subscriptionslist_subscriptionsList subscriptions
get_subscriptionGet subscription
create_subscriptionCreate subscription
update_subscriptionUpdate subscription
cancel_subscriptionCancel subscription
renew_subscriptionRenew subscription
delete_subscription_phaseDelete phase
redeem_subscriptionRedeem gift
Vendorslist_vendorsList vendors
get_vendorGet vendor
create_vendorCreate vendor
update_vendorUpdate vendor
delete_vendorDelete vendor
export_vendorsExport vendors
Webhookslist_webhooksList webhooks
get_webhookGet webhook
create_webhookCreate webhook
update_webhookUpdate webhook
delete_webhookDelete webhook

Open API tools

Customer-facing tools served at https://mcp.pelcro.com/open. Public tools need no authentication; the rest act on the signed-in subscriber's own data.

ResourceToolAPI
Customerget_customerGet customer
update_customerUpdate customer
list_eligible_plansEligible plans
Subscriptionschange_subscriptionChange subscription
cancel_subscriptionCancel subscription
reactivate_subscriptionReactivate subscription
Addressescreate_addressCreate address
update_addressUpdate address
Discoveryopen_api_discoverSearch available endpoints by keyword
open_api_callExecute a curated endpoint

Additional customer-facing endpoints are reachable via open_api_discover (search) and open_api_call (execute), restricted to a curated allowlist.

Health check

curl https://mcp.pelcro.com/health
{ "status": "ok", "environment": "prd" }