Build with AI (MCP)
Let your AI coding assistant integrate Paylo for you. The Paylo MCP server gives Claude Code, Cursor, Claude Desktop or VS Code accurate docs and code for your platform, checks your account setup, and runs safe test-mode actions.
Install#
You need Node.js 18+. The docs tools work without a key; for the account tools, use your test secret key (sk_test_…, Settings → API keys).
Claude Code
claude mcp add paylo -e PAYLO_SECRET_KEY=sk_test_... -- npx -y github:ssid131133-star/paylo-mcpCursor — .cursor/mcp.json (Claude Desktop: same block in claude_desktop_config.json)
{
"mcpServers": {
"paylo": {
"command": "npx",
"args": ["-y", "github:ssid131133-star/paylo-mcp"],
"env": { "PAYLO_SECRET_KEY": "sk_test_..." }
}
}
}Then ask: “Add Paylo subscriptions to my Flutter app”, “Is my Paylo account ready for a first checkout?”, or “Why doesn't user_42 see the paywall?”. Keep the key in your client's user-level config, not in a committed file.
What it can do#
| Field | Type | Description |
|---|---|---|
paylo_get_started | docs | Full integration guide for flutter, swift, kotlin or web — dashboard setup, keys, install, code, API, webhooks |
paylo_docs / paylo_search_docs | docs | Any docs topic, or a keyword search across them |
paylo_webhook_handler | docs | Webhook endpoint with signature verification in node, python, go, php or ruby |
paylo_check_setup | read | What's configured and what's missing: redirect URLs, plans, published paywall, webhook, Developer ID |
paylo_list_plans / paylo_list_subscriptions / paylo_customer_status | read | Inspect your test data like the app sees it |
paylo_recent_webhook_deliveries | read | Delivery log to debug your webhook endpoint |
paylo_resolve_paywall | debug | Which paywall a customer gets, and why (the resolve reason) |
paylo_create_plan / paylo_set_redirect_urls / paylo_set_webhook_url | test write | Set up your test account |
paylo_create_test_checkout | test write | A checkout URL to pay with 4242 4242 4242 4242 |
Safety#
Only secret keys are accepted (a publishable
pk_ key is refused with an explanation). Live keys are refused unless you set PAYLO_ALLOW_LIVE=1, which only enables the read tools on live data — anything that creates or changes something requires a test key. No tool can refund, cancel or delete.Source and full README: github.com/ssid131133-star/paylo-mcp.