MCP Server
Overview
BillDog ships a Model Context Protocol server that exposes your integration status, catalog configuration, and analytics layer to LLM clients — Claude Code, Cursor, Windsurf, Claude Desktop, Perplexity, and ChatGPT (through the BillDog plugin in ChatGPT). Instead of manually inspecting multiple dashboard pages, your AI assistant can diagnose missing setup items, inspect paywall offerings, or run analytics queries.
Transport is plain JSON-RPC 2.0 over HTTP POST, accepting both single requests and batched arrays. It follows the MCP Streamable HTTP spec, returning a single JSON response where no streaming is required.
Availability
Sign in with BillDog works on every plan, Free included. Your plan sets the request ceiling that MCP calls share with the REST API (see Rate limits below); a plan without the Public Analytics API gets the lowest rung. Only AI Assistant (MCP) keys are plan-gated: if your plan does not include the Public Analytics API, key creation is refused rather than the server returning errors later.
1. Connect with Sign in with BillDog (recommended)
The server supports OAuth 2.1 sign-in, so a client needs only the server URL — no key to create or paste. Your browser opens BillDog: sign in, choose the one project the assistant may use (plus any it creates, if you allow “Create projects and SDK keys”), and choose whether it may only read or may also create, edit and publish configuration. You can disconnect it at any time.
https://api.billdog.io/mcpOne-click install
Claude Code
Install the BillDog plugin — the MCP server plus integration and migration skills:
/plugin marketplace add billdogai/billdog-mcp
/plugin install billdog@billdogOr add only the server, then run /mcp and choose Authenticate:
claude mcp add --transport http billdog https://api.billdog.io/mcpWatch:Connect your agent to BillDog (0:43)
Claude.ai and Claude Desktop
Settings → Connectors → Add custom connector, paste https://api.billdog.io/mcp, then click Connect.
Perplexity
Custom connectors need a Perplexity Pro, Max or Enterprise plan; on Enterprise, an admin may first need to allow custom connectors. Go to Settings → Connectors → + Custom connector → Remote, name it BillDog, paste https://api.billdog.io/mcp, choose OAuth as the authentication, and click Add. Perplexity registers itself with BillDog and opens Sign in with BillDog. Then turn the BillDog connector on in a thread to use its tools.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"billdog": { "serverUrl": "https://api.billdog.io/mcp" }
}
}Antigravity
Agent panel → ⋯ → MCP Servers → Manage MCP Servers → View raw config, then add (Antigravity uses serverUrl, not url):
{
"mcpServers": {
"billdog": { "serverUrl": "https://api.billdog.io/mcp" }
}
}Other clients
Any client that supports remote Streamable HTTP servers: add https://api.billdog.io/mcp. For clients that only launch local servers, bridge with npx -y mcp-remote https://api.billdog.io/mcp.
2. Or use an MCP key
For clients without OAuth, or for scripts, go to Dashboard → AI Assistant (MCP) Keys and create a key. MCP access is on by default. MCP keys start with bd_mcp_ and are read-only: the tools that create or change configuration need Sign in with BillDog.
Not an SDK key. Keys starting with bd_public_ or bd_secret_ belong to the mobile and web SDKs and are refused here with a message saying so. Older MCP keys that start with bd_secret_live_ keep working.
Claude Code CLI
claude mcp add --transport http billdog https://api.billdog.io/mcp --header "Authorization: Bearer bd_mcp_YOUR_KEY"Cursor / Claude Desktop / Windsurf
Add the server to your MCP configuration file:
{
"mcpServers": {
"billdog": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://api.billdog.io/mcp",
"--header", "Authorization: Bearer bd_mcp_YOUR_KEY"
]
}
}
}Project scope is bound to the credential. The server overrides any project value a client tries to inject into tool parameters. A key or sign-in for one project cannot read another, regardless of what the model asks for — the one exception is a project the agent created itself under the “Create projects and SDK keys” permission, which that sign-in may switch to with use_project.
Tools
The MCP server provides 63 tools: 30 read-only tools for onboarding, setup diagnostics, catalog configuration, experiments, feature flags and analytics (below), 2 for onboarding and support (recording where your app is, and asking BillDog support), and 31 tools that create or change configuration — apps, products, entitlements, offerings, placements, paywalls, experiments, feature flags, projects, surveys, campaigns, journeys and message templates. New items start inactive; going live needs the publish permission. With the “Create projects and SDK keys” permission, an agent that creates a project works in it straight away (use_project switches back); a connection never reaches a project it was not given or did not create.
Onboarding & Support
Every new account gets onboarding from the BillDog Onboarding Team by email; these tools bring the same guidance into the chat.
| Tool | What it does |
|---|---|
| get_onboarding | Where you are in setup (idea, building, live, web), what is done (events, paywall, store, purchases) and the next steps for your stage |
| set_onboarding_stage | Records where your app is today; the next steps for that stage follow by email |
| contact_support | Sends your question to BillDog support, which checks your own project and replies in the chat and by email. Reply “human” to that email to reach a person |
Setup & Integration Diagnostics
Watch:Check your setup in one question (0:29)
| Tool | What it does |
|---|---|
| get_setup_status | Audits your project setup for eng or full flavor, returning exact missing items, evidence, and dashboard deep links |
| resolve_placement_preview | Performs a dry-run resolution of a placement identifier to verify which offering, packages, and paywall will be served |
| get_recent_sdk_activity | Inspects recent client SDK event ingestion and session recordings to verify client SDK wiring |
Catalog & Paywall Reads
| Tool | What it does |
|---|---|
| get_project | Returns project metadata, application bundle IDs, Android package names, and web domains |
| list_products | Returns catalog products, product types, and store identifiers (Apple/Google) |
| list_entitlements | Returns defined entitlements and their mapped product identifiers |
| list_offerings | Returns offerings with their attached packages, package types, and default/current flags |
| list_paywalls | Returns registered paywalls with publication timestamps, active status, and wall types (excludes heavy UI JSON) |
| get_paywall | Returns full metadata and published layout configuration for a specific paywall by UUID or identifier |
| list_placements | Returns configured placements and their linked offering IDs |
Catalog Authoring & Setup (Writes)
Catalog writes require the mcp:write scope (and mcp:publish for go-live tools). All mutations are tenant-isolated, inactive by default, and fail-closed audited.
Watch:Claude Code adds a lifetime plan to your catalog (0:30) ·Add a placement and its offering with Claude Code (0:36)
| Tool | Scope | What it does |
|---|---|---|
| apply_setup_plan | mcp:write | Declarative engine. Evaluates full setup spec (products, entitlements, offerings, placements). Defaults to dry_run: true for safe inspection without mutating. Set dry_run: false to commit. |
| create_product | mcp:write | Creates a subscription or in-app product in the project catalog with validated durations and SKUs. |
| update_product | mcp:write | Updates metadata, store IDs, or display pricing for an existing product. |
| create_entitlement | mcp:write | Creates a new entitlement and optionally maps products that unlock it. |
| update_entitlement | mcp:write | Updates display name, description, or product mappings for an entitlement. On a live project a change to its products returns an approval URL instead: adding a product gives the entitlement to its buyers, removing one takes it away. |
| set_entitlement_products | mcp:write | Sets the explicit list of product IDs granting an entitlement. On a live project it returns an approval URL instead. |
| create_offering | mcp:write | Creates an offering with packages. Inactive by default (is_current: false). |
| manage_offering_packages | mcp:write | Adds or removes packages within an existing offering. |
| set_current_offering | mcp:publish | Promotes an offering to current. If the project has production traffic in the last 30 days, returns an approval URL for dashboard confirmation. |
| create_placement | mcp:write | Creates a placement in the project. Unlinked by default. |
| link_placement | mcp:publish | Links offerings to a placement with priority order. Gated by 30-day live traffic check. |
Paywalls & Templates
Design, preview, and publish paywalls. Newly created or designed paywalls are inactive drafts by default.
Watch:Claude Code builds your paywall (0:41) ·Edit your paywall in plain English (0:35) ·Start a paywall from a template with Claude Code (0:49) ·Go live with an owner’s approval (0:38)
| Tool | Scope | What it does |
|---|---|---|
| get_sdk_integration_guide | mcp (read) | Returns the code to add BillDog to an app on one platform, with this project's public SDK key. |
| get_paywall_recipe_guide | mcp (read) | Returns the full guide to writing a design_paywall recipe. |
| list_templates | mcp (read) | Lists available paywall and funnel templates from the BillDog template catalog with category, wall_type, and search filters. |
| create_paywall_from_template | mcp:write | Instantiates a new paywall in the project from an existing template. Created as an inactive draft by default. |
| design_paywall | mcp:write | Saves a new paywall as an inactive draft. Pass a recipe to design it yourself (no credit; schema in the tool, guide at billdog://docs/paywall-recipe), or a prompt for BillDog's AI designer, the same one as the dashboard, which uses one AI credit when a design compiles. |
| update_paywall | mcp:write | Edits a paywall's draft: copy by component id (or the headline, subtitle and CTA shortcuts), the brand colours, one button's or text's colours, which button starts a purchase, and the offering binding. A published paywall keeps serving its live version until you publish again. |
| preview_paywall | mcp (read) | Evaluates paywall publish gate (validating components, bindings, offerings) and generates a secure short-lived preview token and /wall-preview URL. |
| publish_paywall | mcp:publish | Publishes a draft paywall to make it live for SDK delivery. Validates the paywall first; if the project has live traffic in the last 30 days, returns an approval URL for dashboard confirmation. |
| unpublish_paywall | mcp:publish | Deactivates an active paywall. Gated by the 30-day live traffic check. |
Experiments & Feature Flags
A/B test paywalls and roll features out. Experiments are created as drafts and flags are created off; starting, stopping and turning a flag on change what users see, so they need the publish permission and, on a live project, an owner's or admin's approval.
Watch:Run an A/B test and add a flag with Claude Code (0:36) ·Should I ship the winner? (0:28)
| Tool | Scope | What it does |
|---|---|---|
| list_experiments | mcp (read) | Experiments with their status, what devices are served now, and each variant's paywall and traffic share. |
| create_experiment | mcp:write | Creates a paywall A/B experiment as a draft: one paywall per variant, a control, and a traffic split that adds up to 100 (even by default). |
| start_experiment | mcp:publish | Starts or resumes an experiment. Refused unless every variant's paywall is published and no other experiment runs on the same paywall. Gated by the 30-day live traffic check. |
| stop_experiment | mcp:publish | Pauses or ends an experiment (everyone sees the control), or ends it and ships the winning variant to everyone. Gated by the 30-day live traffic check. |
| get_experiment_results | mcp (read) | Per-variant users, conversions, revenue per user, lift vs control and significance, with a verdict: winner, loser, keep running, or no data. |
| list_feature_flags | mcp (read) | Feature flags with on/off, rollout percentage, variants, and whether release conditions apply. |
| create_feature_flag | mcp:write | Creates a flag, off. Optional rollout percentage and multivariate variants with JSON payloads. |
| update_feature_flag | mcp:publish | Turns a flag on or off, or changes its rollout or variants. A change to what users get is gated by the 30-day live traffic check; editing a flag that stays off needs only mcp:write. |
| get_feature_flag_results | mcp (read) | Users and evaluations per flag value over the last 1–90 days, from the SDKs' $feature_flag_called events. |
Experiment audiences and flag release conditions are edited in the dashboard.
Projects & SDK Keys
A connection never reaches a project it was not given or did not create.
| Tool | Scope | What it does |
|---|---|---|
| list_projects | mcp (read) | Projects you can access, with bundle ID and platform, marking which ones this connection can use. |
| create_project | projects:write | Creates a project. With the “Create projects and SDK keys” permission the connection then works in it straight away; otherwise it stays on its current project. |
| use_project | mcp | Switches the connection between the projects it may use: the one chosen when connecting, or one it created. |
| create_public_sdk_key | projects:write | Creates a client-safe public SDK key (bd_public_live_… or bd_public_test_…) for mobile and web apps. Never creates secret keys. |
| add_app | mcp:write | Records the project’s iOS bundle ID, Android package name or web domain, one per platform, exactly as the user gives it. An app already recorded is changed on the dashboard’s Apps tab. |
Surveys, Campaigns, Journeys & Messages
Everything is saved as a draft; nothing reaches users until it is activated. A journey can be activated with activate_journey, which on a live project (or one that requires approval for every agent change) files an approval request instead.
| Tool | Scope | What it does |
|---|---|---|
| list_surveys | mcp (read) | Multi-page surveys and micro-survey walls in the project. |
| create_survey | mcp:write | Saves a survey as a draft with its questions, checked the way the dashboard checks them. Activate it in the dashboard. |
| list_campaigns | mcp (read) | Marketing and engagement campaigns in the project. |
| create_campaign | mcp:write | Saves a campaign as a draft. It reaches no one until it has an audience and is activated in the dashboard. |
| list_journeys | mcp (read) | Onboarding and engagement journeys with their steps. |
| create_journey | mcp:write | Saves a linear journey as a draft, with an entry trigger such as signup, paywall_presented or trial_ending. Branches are built on the dashboard canvas. |
| activate_journey | mcp:publish | Activates a draft or paused journey so new matching events enroll customers. On a live project, or one that requires approval for every agent change, it returns an approval URL instead; once an owner or admin approves, BillDog activates it. |
| pause_journey | mcp:publish | Pauses an active journey: nobody new enters, and people already in it are held until it is activated again. On a live project it returns an approval URL instead; once an owner or admin approves, BillDog pauses it. |
| list_message_templates | mcp (read) | Push, in-app, email and SMS message templates with their title and body. |
| create_message_template | mcp:write | Saves a reusable push or in-app message template; use its id in a journey step. |
Analytics & Insights
Watch:Ask how your paywall is doing (0:28)
| Tool | What it does |
|---|---|
| run_analytics_query | Runs a report against the analytics engine. Accepts an optional segment_id to scope results to a cohort |
| discover_schema | Returns the source/metric matrix so the model knows what it can ask for |
| list_event_names | Distinct event names for the project |
| list_cohorts | Saved cohorts with their definitions and member counts |
| list_saved_views | Saved analytics views |
| get_saved_view_results | Replays a saved view's configuration and returns its results |
Pass a cohort id from list_cohorts as the segment_id on run_analytics_query to scope any report to that cohort.
The query surface
run_analytics_query is the workhorse. Every report is a (source, metric) pairing over a date range, returning an envelope of columns, rows and optional totals. There are 14 sources and 12 metrics:
| Axis | Values |
|---|---|
| Sources | events · revenue · cohorts · notifications · surveys · virtual_currency · subscriptions · paywalls · offerings · products · campaigns · experiments · journeys · customers |
| Metrics | totals · timeseries · breakdown · funnel · retention · distribution · top_n · flow · compare · mrr_movement · ab_results · stickiness |
Not every pairing is meaningful — discover_schema returns which combinations are supported along with a one-line hint for each, which is why an agent should call it before guessing.
Parameters
source,metric,range— requiredrangetakes ISO-8601startandend, an optionalgranularityofhour·day·week·month, andcompare_toofprevious_period·previous_year(used only bymetric=compare)dims— dimensions to break down by; empty for totalsfilters— source-specific column filterssegment_id— scope the whole report to a saved cohort
Because dashboard reports are themselves (source, metric) pairs — MRR is subscriptions/timeseries, refund rate is revenue/breakdown — anything you can see in the dashboard is reachable through this tool.
Resources
billdog://project/status— real-time project diagnostic and onboarding statebilldog://project/snippets/{platform}— SDK initialization snippet for swift, kotlin, react-native, web, or flutterbilldog://docs/integration/{platform}— SDK installation and setup guide for swift, kotlin, react-native, web, or flutterbilldog://schema— the source/metric matrixbilldog://docs/paywall-recipe— the paywall recipe language thatdesign_paywallcompilesbilldog://replays/recent— the last 20 session replaysbilldog://replays/<uuid>— a specific replaybilldog://surveys/recent— per-survey counts for the last 30 daysbilldog://customers/top— top 50 customers by LTV
Prompts
Eight prompt templates ship with the server:
Setup & Integration Prompts
setup_billdog_full— step-by-step guidance for catalog, IAP paywalls, and SDK wiringsetup_billdog_eng— step-by-step guidance for analytics SDK wiring and event ingestionverify_integration— verifies SDK events, placement paywall resolution, and setup checklistmigrate_from_revenuecat— maps RevenueCat API calls directly to BillDog equivalents
Analytics & Insights Prompts
weekly_revenue_recap— weekly MRR, totals, top products, and WoW deltafunnel_drop_off_analysis— takes afunnel_namechurn_root_cause— investigates customer churn in the past 30 dayserror_session_review— takes alimit
Rate limits
Each project has one budget of requests per minute and requests per day, set by its current plan (Free 60 and 10,000; Core 600 and 250,000; Pro 2,000 and 1,000,000; Max 6,000 and 5,000,000). Every connection to the project draws from it, whether it signed in with BillDog or uses a key, and so do Analytics REST API calls with the project’s keys. Creating more keys does not raise it.
Per minute is a sliding window: a call is accepted only if the project has had fewer than its limit in the current second and the 60 before it. Per day resets at 00:00 UTC. A JSON-RPC batch may carry at most 100 requests; a larger one is refused whole with error -32600. In a batch, each call that reads or changes data counts once; if only some fit, the first ones run and the rest are answered with error -32002, whose data carries limit (minute or day) and retry_after_ms. A refused call is not counted. Responses also carry the RateLimit-Policy, RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset HTTP headers, and Retry-After when something was refused.
Discovery calls are free. ping, initialize, server/discover, tools/list, resources/list, resources/templates/list, prompts/list and notifications/* do not count against either budget — so connecting a client and browsing its capabilities never consumes quota. Only calls that read or change data do.
Related
- Video Library: real Claude Code sessions using these tools
- API Reference
- Product Analytics
- Session Replay
Was this page helpful?
Or rate this page: