Model Context Protocol (MCP)

Let your AI agents interact with the Pelcro's Core API by using our MCP server.

Connect your AI assistant to Pelcro's Core API through the Model Context Protocol (MCP). Manage customers, subscriptions, invoices, addresses, and more directly from your AI tools.

Authentication uses OAuth 2.0 — when you connect, you log into Pelcro, select which account to grant access to, and authorize the app. The token is scoped to a single account.

🚧

This MCP server is 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

Claude Code

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

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": {
      "url": "https://mcp.pelcro.com/"
    }
  }
}

VS Code

Add a pelcro entry to your workspace's .vscode/mcp.json file. See the VS Code MCP documentation for more details on configuring MCP servers.

{
  "servers": {
    "pelcro": {
      "type": "http",
      "url": "https://mcp.pelcro.com/"
    }
  }
}

Windsurf

Add to ~/.windsurf/mcp.json:

{
  "mcpServers": {
    "pelcro": {
      "url": "https://mcp.pelcro.com/"
    }
  }
}

ChatGPT

ChatGPT supports remote MCP servers for Pro, Plus, Business, Enterprise, and Education accounts. To connect Pelcro, create a custom connector in Settings > Apps & Connectors with the server URL https://mcp.pelcro.com/ and select OAuth as the authentication method. 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/. The server handles OAuth discovery automatically via RFC 9728.

Authorize your account

After installing, your MCP client will open 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 grants full read and write access to the selected account's Core API endpoints.

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
claude mcp add --transport http pelcro https://mcp.pelcro.com/

Refreshing tools

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

Environments

EnvironmentURL
Productionhttps://mcp.pelcro.com/
Staginghttps://mcp-staging.pelcro.com/

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

Health check

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