Munim Technologies

MCP tools

Every tool the Munim Billing MCP server offers, with its inputs and the REST call it makes.

About the tools

The MCP server is at https://billing-sandbox-api.munimtech.com/mcp (sandbox) and https://billing-api.munimtech.com/mcp (live). Apart from the sign-in tools, each one is a REST call with the same inputs and the same errors. Tools marked Destructive move money or delete things; agents are told to confirm with the person first in live mode. Setup for Claude Code and Cursor is on Agents and MCP.

Getting a key

create_sandboxWriteNo key needed

Create a sandbox account

Creates a new Munim Billing TEST account instantly, with no sign-up, and returns its secret key (mb_test_sk_…, shown once), plus a claim_url to give the person you're working for. No real money moves in test mode. This MCP session then uses the new key for every other tool. Use it when the person doesn't have a Munim Billing account yet, or to prototype. Only on the sandbox server (billing-sandbox-api.munimtech.com/mcp).

Input
namestring
Business or app name shown on the checkout, e.g. 'Acme Notes'

sign_inWriteNo key needed

Sign in with an email

Emails a 6-digit code to the person's address, to get an API key for their account (it's created if they don't have one). Ask them for the code, then call verify_sign_in. On the live server this is how you get a live key (mb_live_sk_…), which takes real payments.

Input
emailstringrequired
The person's email address

verify_sign_inWriteNo key needed

Finish signing in

Checks the emailed code and returns a new secret API key for the account (shown once; on live, a test key too). This MCP session then uses that key. Viewers can't get keys.

Input
emailstringrequired
Same email as sign_in
codestringrequired
The 6-digit code from the email
accountstring
sel_… id, to pick one of several accounts this person belongs to (default: the one they used last)
key_namestring
A name for the key, e.g. 'Claude Code on acme-web'

get_integration_guideReadNo key needed

How to integrate Munim Billing

Returns the integration guide for writing code against Munim Billing: the SDK (npm munim-billing) on a server, opening checkouts on web and React Native, verifying webhooks, entitlements, and App Store / Google Play receipts. Read this before writing integration code.

Account

get_accountRead

Get the account and setup checklist

The account (name, mode, fee, payout status, checkout look) and setup.steps: what's done, what to do next, and which tool does it. Call this first, and again after each step.

Calls GET/v1/account

update_accountWrite

Update the account

Sets the business details shown on checkouts and card statements.

Calls POST/v1/account

Input
namestring
Business or app name
support_emailstring
Where customers can get help
websitestring
https://…
statement_namestring
Up to 22 letters, numbers, spaces, dots, dashes; shown after 'MUNIM* ' on card statements

claim_sandboxWrite

Hand the sandbox to a person

For a sandbox you created: emails a code to the person so the account becomes theirs (they can then use the dashboard). Ask them for the code and call verify_claim. Fails if that email already has a Munim Billing account; then use sign_in for their existing account instead.

Calls POST/v1/account/claim

Input
emailstringrequired
The person's email address

verify_claimWrite

Finish claiming the sandbox

Checks the emailed code; the sandbox then belongs to that email and no longer expires.

Calls POST/v1/account/claim/verify

Input
emailstringrequired
Same email as claim_sandbox
codestringrequired
The 6-digit code from the email

get_checkout_settingsRead

Get checkout look

The hosted checkout's template, brand color, logo, theme and corners.

Calls GET/v1/checkout_settings

update_checkout_settingsWrite

Brand the checkout

Changes how the hosted checkout looks. Preview: {api_base}/checkout/preview?template=…&brand_color=%23…

Calls POST/v1/checkout_settings

Input
templatestring
sheet (mobile sheet), split (desktop two-column) or compact (embeds)
brand_colorstring
#RRGGBB for buttons
logo_urlstring
https:// logo, shown when a product has no image (null clears)
themestring
auto, light or dark
cornersstring
rounded, sharp or pill

Products and prices

create_productWrite

Create a product

Something you sell. Then give it a price with create_price.

Calls POST/v1/products

Input
namestringrequired
Product name shown on the checkout
descriptionstring
Shown under the name
image_urlstring
https:// image
tax_codestring
Stripe Tax code (default txcd_10103001, SaaS for business; txcd_10103000 SaaS personal; txcd_10000000 digital downloads)
project_idstring
prj_… the app or website it belongs to (create_project)
metadataobject
Your own key/value strings (up to 20 keys)

list_productsRead

List products

Products, newest first.

Calls GET/v1/products

Input
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

update_productWrite

Update a product

Changes a product; status 'archived' hides it from new checkouts.

Calls POST/v1/products/:product_id

Input
product_idstringrequired
pro_…
namestring
New name
descriptionstring
New description
image_urlstring
https:// image
statusstring
active or archived
metadataobject
Your own key/value strings (up to 20 keys)

create_priceWrite

Create a price

A price for a product, in cents (USD only). type 'one_time' or 'recurring' (with interval). A price's amount can't change later; make a new price and archive the old one.

Calls POST/v1/prices

Input
product_idstringrequired
pro_…
unit_amountintegerrequired
Amount in cents, at least 50 (e.g. 999 = $9.99)
currencystring
Only 'usd'
typestringrequired
one_time or recurring
intervalstring
For recurring: day, week, month or year
interval_countinteger
Bill every N intervals (default 1)
trial_daysinteger
Free trial days for recurring prices
descriptionstring
e.g. 'Monthly'
metadataobject
Your own key/value strings (up to 20 keys)

list_pricesRead

List prices

Prices, newest first, optionally for one product.

Calls GET/v1/prices

Input
product_idstring
pro_… to filter by
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

update_priceWrite

Update a price

Changes a price's description, status or metadata (not its amount).

Calls POST/v1/prices/:price_id

Input
price_idstringrequired
pri_…
descriptionstring
New description
statusstring
active or archived
metadataobject
Your own key/value strings (up to 20 keys)

Checkouts

create_checkoutWrite

Create a checkout link

A hosted checkout page for one price; send the customer to its url (cards, Apple Pay, Google Pay, PayPal, Venmo). In test mode pay with 4242 4242 4242 4242. Your app normally makes these per customer on its server; this tool is handy for testing and one-off payment links.

Calls POST/v1/checkouts

Input
price_idstring
pri_… (or leave it out and pass pricing_quote_id)
pricing_quote_idstring
pq_… from get_pricing_quote: sells at the price Munim Autopilot Pricing picked
quantityinteger
Default 1
customer_emailstring
Prefills the email
customer_idstring
ctm_… of an existing customer
app_user_idstring
Your own user id, to link the purchase to entitlements
success_urlstring
https:// or myapp:// URL to go to after paying (checkout_id is appended)
cancel_urlstring
Where the back / cancel link goes
templatestring
sheet, split or compact (default: the account's)
metadataobject
Your own key/value strings (up to 20 keys)

get_checkoutRead

Get a checkout

A checkout's status (open, completed, expired) and the transaction or subscription it made.

Calls GET/v1/checkouts/:checkout_id

Input
checkout_idstringrequired
chk_…

list_checkoutsRead

List checkouts

Checkouts, newest first: open ones still waiting for a buyer, completed ones (with their transaction or subscription) and expired ones.

Calls GET/v1/checkouts

Input
statusstring
Only this status
project_idstring
prj_…
customer_idstring
ctm_…
app_user_idstring
Your user id, as passed to create_checkout
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

Customers, transactions and subscriptions

list_customersRead

List customers

Customers, newest first, optionally by email.

Calls GET/v1/customers

Input
emailstring
Exact email to look up
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

list_transactionsRead

List transactions

Payments, newest first, with Munim's fee and the seller's net for each.

Calls GET/v1/transactions

Input
customer_idstring
ctm_… to filter by
subscription_idstring
sub_… to filter by
project_idstring
prj_… to filter by
includestring
'customer_email' adds each one's customer email
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

get_transactionRead

Get a transaction

One payment.

Calls GET/v1/transactions/:transaction_id

Input
transaction_idstringrequired
txn_…

refund_transactionDestructive

Refund a transaction

Refunds a payment to the customer, all of it or `amount` cents. In live mode this returns real money: confirm with the person first.

Calls POST/v1/transactions/:transaction_id/refund

Input
transaction_idstringrequired
txn_…
amountinteger
Cents to refund (default: everything not yet refunded)

list_subscriptionsRead

List subscriptions

Subscriptions, newest first.

Calls GET/v1/subscriptions

Input
customer_idstring
ctm_… to filter by
statusstring
incomplete, trialing, active, past_due, paused or canceled
project_idstring
prj_… to filter by
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

get_subscriptionRead

Get a subscription

One subscription.

Calls GET/v1/subscriptions/:subscription_id

Input
subscription_idstringrequired
sub_…

cancel_subscriptionDestructive

Cancel a subscription

Cancels at the end of the paid period (default), or right away with at_period_end: false. Confirm with the person first in live mode.

Calls POST/v1/subscriptions/:subscription_id/cancel

Input
subscription_idstringrequired
sub_…
at_period_endboolean
false cancels now (default true)

get_subscription_manage_urlWrite

Customer's manage link

A Munim-hosted page where the customer can see and cancel their subscription.

Calls POST/v1/subscriptions/:subscription_id/manage_url

Input
subscription_idstringrequired
sub_…

Projects

list_projectsRead

List projects

The seller's apps and websites. Products, sales and store apps can belong to one, and lists, exports and webhooks filter by project_id.

Calls GET/v1/projects

create_projectWrite

Create a project

An app or website the seller sells through (one project can hold its website, iOS app and Android app).

Calls POST/v1/projects

Input
namestringrequired
Name, e.g. the app's name
kindstring
website, ios, android, desktop, game or other
urlstring
https:// address
colorstring
#rrggbb for charts

assign_to_projectWrite

Move products or store apps into a project

Their past sales move with them (in the background, about a minute).

Calls POST/v1/projects/:project_id/assign

Input
project_idstringrequired
prj_…
product_idsstring[]
pro_… ids
store_app_idsstring[]
app_… ids

Exports and events

create_reportRead

Build an export

A CSV / JSON / NDJSON file of transactions, subscriptions, customers, payouts, balance or products, built in the background. Poll get_report for its download_url (kept 7 days). Small exports can also be fetched directly: GET /v1/exports/{dataset}.csv.

Calls POST/v1/reports

Input
datasetstringrequired
transactions, subscriptions, customers, payouts, balance or products
formatstring
csv (default), json or ndjson
fromstring
YYYY-MM-DD (UTC), inclusive
tostring
YYYY-MM-DD (UTC), inclusive
project_idstring
prj_… to filter by
statusstring
Only rows with this status
sourcestring
web, store or all (transactions and subscriptions)
columnsstring[]
Column keys to include, in order (default: the standard set)

get_reportRead

Get an export

Its status, row count and (when ready) download_url.

Calls GET/v1/reports/:report_id

Input
report_idstringrequired
rpt_…

list_eventsRead

List events

Everything that happened (payments, refunds, subscription changes, payouts, reports ready), as the webhooks send it. after='start' or after=<last event id> gives the ones since, oldest first: the way to keep an internal tool in sync.

Calls GET/v1/events

Input
afterstring
'start', or the next_cursor / an event id from last time
typestring
Comma-separated event types to include
project_idstring
prj_… to filter by
limitinteger
1–100 (default 50)

Munim Autopilot Pricing

get_pricingRead

Pricing settings, autopilot and experiments

Whether Munim Autopilot Pricing is on, the autopilot's settings (on/off, max move, floor, ceiling) and what it's doing per product (testing, settled, its round and winner), and every experiment (created_by 'seller' or 'autopilot', arms, promotions per segment, the prior it started from).

Calls GET/v1/pricing

update_pricing_settingsWrite

Change the pricing autopilot's settings

The autopilot starts tests on products with enough sales, promotes clear winners per segment and climbs toward better prices, learning from every Autopilot Pricing seller's aggregated results. Turn it on or off, and set its guardrails: how far from the base price it may go, and a floor and ceiling (cents; null removes one), for every product or per product. Existing subscribers are never repriced.

Calls POST/v1/pricing/settings

Input
autopilotboolean
Autopilot on or off for the whole account
max_move_pctinteger
Furthest from the seller's base price, 5–50 (default 30)
floorinteger | null
Lowest price it may test, in cents, for every product (null removes it)
ceilinginteger | null
Highest price it may test, in cents, for every product (null removes it)
min_quotes_to_promoteinteger
Quotes a segment needs before a winner is promoted, 100–100000 (default 400)
productsobject
Per product, keyed by pro_…: { autopilot?: boolean, floor?: cents|null, ceiling?: cents|null }

list_pricing_activityRead

What the pricing autopilot did

The autopilot's activity feed, newest first: tests started (prices and segments), arms stopped for losing revenue, prices promoted per segment with their lift, products settled, settings changes.

Calls GET/v1/pricing/activity

Input
product_idstring
pro_… to show one product
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

run_pricing_autopilotWrite

Run the pricing autopilot now

Judges the autopilot's running tests and looks for products to start on now, instead of at the next hourly check. Returns the same as get_pricing.

Calls POST/v1/pricing/autopilot/run

get_pricing_quoteWrite

Get the price to show

Munim Autopilot Pricing picks which of a product's prices to show this buyer (by channel, platform, region and more, never protected traits). Pass the returned id as pricing_quote_id to create_checkout; in the app stores, sell its store_product_id. If disclosure.required, show disclosure.text next to the price.

Calls POST/v1/pricing/quote

Input
product_idstringrequired
pro_… with a running pricing experiment
app_user_idstring
Your user id (keeps their price the same)
anonymous_idstring
A stable id for a signed-out visitor
countrystring
Two-letter country code
platformstring
web, ios, android, desktop or other
channelstring
web or store (default: store for ios/android)
local_hourinteger
The buyer's local hour, 0–23

get_pricing_resultsRead

Pricing experiment results

Each price's quotes, sales, revenue per visitor and how likely it is the best, overall and per segment, with a plain-language recommendation.

Calls GET/v1/pricing/experiments/:experiment_id/results

Input
experiment_idstringrequired
pex_…

Balance and payouts

get_balanceRead

Get the balance

Earnings available to pay out, still in the 7-day hold, and paid out so far (cents).

Calls GET/v1/balance

list_payoutsRead

List payouts

Payouts to the seller: monthly, on the 1st, to their bank through Stripe (the owner connects it in the dashboard).

Calls GET/v1/payouts

Input
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

Webhooks

list_webhook_endpointsRead

List webhook endpoints

Webhook endpoints and their recent deliveries.

Calls GET/v1/webhook_endpoints

create_webhook_endpointWrite

Add a webhook endpoint

Munim POSTs signed events here (Munim-Signature header). Returns the signing secret (whsec_…) once: store it as MUNIM_BILLING_WEBHOOK_SECRET and verify with the SDK's verifyWebhook.

Calls POST/v1/webhook_endpoints

Input
urlstringrequired
https:// URL on the app's server
eventsstring[]
Event types to send (default: all)

delete_webhook_endpointDestructive

Delete a webhook endpoint

Stops sending events to an endpoint.

Calls POST/v1/webhook_endpoints/:endpoint_id/delete

Input
endpoint_idstringrequired
whk_…

send_test_webhookWrite

Send a test webhook

Sends a `ping` event to an endpoint; check list_webhook_endpoints for the delivery's result.

Calls POST/v1/webhook_endpoints/:endpoint_id/test

Input
endpoint_idstringrequired
whk_…

Entitlements and subscribers

list_entitlementsRead

List entitlements

Entitlements (like 'pro') and the products that grant them.

Calls GET/v1/entitlements

create_entitlementWrite

Create an entitlement

A feature a purchase unlocks, e.g. 'pro', granted by Munim products (pro_…) and/or App Store / Play product ids. Check access with get_subscriber.

Calls POST/v1/entitlements

Input
identifierstringrequired
Lowercase id, e.g. 'pro' (a–z, 0–9, _ - .; up to 40)
descriptionstring
What it unlocks
product_idsstring[]
pro_… ids and/or store product ids

update_entitlementWrite

Update an entitlement

Changes an entitlement's description or products (its identifier can't change).

Calls POST/v1/entitlements/:entitlement_id

Input
entitlement_idstringrequired
ent_…
descriptionstring
New description
product_idsstring[]
Replaces the list

delete_entitlementDestructive

Delete an entitlement

Removes an entitlement.

Calls POST/v1/entitlements/:entitlement_id/delete

Input
entitlement_idstringrequired
ent_…

get_subscriberRead

What a user is entitled to

One of your users (by your own app_user_id): active entitlements across web, App Store and Google Play.

Calls GET/v1/subscribers/:app_user_id

Input
app_user_idstringrequired
Your user id, as passed to create_checkout / receipts

App Store and Google Play

list_store_appsRead

List store apps

Your App Store and Google Play apps, each with its setup checklist: setup.ready, and setup.next_steps saying exactly what's left (in words to pass on to the person who has the store accounts).

Calls GET/v1/store_apps

connect_store_appWrite

Connect an App Store or Google Play app

Adds an iOS or Android app and sets it up in one go, like RevenueCat: checks the keys, imports the product ids into an entitlement (default 'pro'), and points the store's server notifications at Munim. Apple: app_identifier is the bundle id; apple_issuer_id, apple_key_id and apple_private_key are the In-App Purchase key (App Store Connect → Users and Access → Integrations → In-App Purchase; the key id is in the file name SubscriptionKey_<KEYID>.p8). Add asc_key_id + asc_private_key (an App Store Connect API key with the App Manager role, same issuer) and Munim also imports products and sets App Store Server Notifications itself; whatever URL was there keeps getting them through forward_url. Google: app_identifier is the package name; google_service_account_json is the key of a service account invited in Play Console (View financial data, Manage orders and subscriptions). With the Pub/Sub Admin role it also wires Real-time developer notifications; pass google_pubsub_topic to use the topic Play Console already has. Read the returned setup.next_steps for anything only a person can do.

Calls POST/v1/store_apps

Input
platformstringrequired
apple or google
app_identifierstringrequired
iOS bundle id or Android package name
apple_issuer_idstring
Apple: issuer ID (UUID above the keys in App Store Connect)
apple_key_idstring
Apple: In-App Purchase key ID (10 characters)
apple_private_keystring
Apple: the In-App Purchase key's .p8 file contents
asc_key_idstring
Apple, optional: App Store Connect API key ID (App Manager role)
asc_private_keystring
Apple, optional: that key's .p8 file contents
google_service_account_jsonstring
Google: the service account's JSON key file contents
google_pubsub_topicstring
Google, optional: projects/<project>/topics/<name> Play Console already publishes to
forward_urlstring
Optional https URL Munim passes each store notification on to (your own server)
app_namestring
Optional name to show (App Store Connect's is used when Munim can read it)
entitlementstring
Entitlement to add the imported products to (default 'pro')
notificationsstring
auto (default) sets the store's notifications up; manual leaves them alone
product_idsstring[]
Apple without an App Store Connect API key: the app's product ids

update_store_appWrite

Update a store app

Changes a store app's keys, App Store Connect API key or forward_url ("" stops forwarding). New keys are checked and setup runs again.

Calls POST/v1/store_apps/:app_id

Input
app_idstringrequired
app_…
apple_issuer_idstring
Apple: issuer ID
apple_key_idstring
Apple: In-App Purchase key ID
apple_private_keystring
Apple: .p8 contents
asc_key_idstring
Apple: App Store Connect API key ID
asc_private_keystring
Apple: App Store Connect API key .p8 contents
google_service_account_jsonstring
Google: service account JSON
forward_urlstring
https URL to pass notifications on to, or "" to stop
app_namestring
Name to show

run_store_app_setupWrite

Run a store app's setup again

Re-checks the keys, re-imports products and sets up notifications again, e.g. after the person invited the service account in Play Console or gave it Pub/Sub access. Returns the app with its updated setup checklist.

Calls POST/v1/store_apps/:app_id/setup

Input
app_idstringrequired
app_…
entitlementstring
Entitlement to add the products to (default 'pro')
notificationsstring
auto (default) or manual
google_pubsub_topicstring
Google, optional: existing topic Play Console publishes to

send_store_test_notificationWrite

Send a store test notification

Has the store (Apple) or the app's Pub/Sub topic (Google) send a test notification, waits a few seconds, and says whether it arrived.

Calls POST/v1/store_apps/:app_id/test_notification

Input
app_idstringrequired
app_…

delete_store_appDestructive

Remove a store app

Stops tracking an app (its store subscriptions stay). Doesn't change anything in App Store Connect or Play Console.

Calls POST/v1/store_apps/:app_id/delete

Input
app_idstringrequired
app_…

list_store_subscriptionsRead

List store subscriptions

App Store and Google Play subscriptions Munim tracks, newest first, optionally for one app_user_id.

Calls GET/v1/store_subscriptions

Input
app_user_idstring
Only this user's
limitinteger
Page size, 1–100 (default 25)
cursorstring
next_cursor from the previous page

get_store_feesRead

Store tracking fee

The App Store / Google Play tracking fee: this month's tracked revenue and fee estimate (free up to $2,500 a month, then 1%), and past months.

Calls GET/v1/store_fees

Your database

list_integrationsRead

List database syncs

The databases Munim keeps a copy of billing data in (transactions, subscriptions, and subscribers with their active entitlements), with status, counts and the last error. Also lists every provider and the credential fields it takes.

Calls GET/v1/integrations

get_integrationRead

Get a database sync

One sync: status (needs_setup, backfilling, active, paused, error), rows synced, pending changes, last error.

Calls GET/v1/integrations/:integration_id

Input
integration_idstringrequired
int_…

connect_integrationWrite

Sync billing data into a database

Keeps munim_transactions, munim_subscriptions and munim_subscribers up to date in the app's own database, so it checks entitlements with its own queries. Providers and credentials: convex {deploy_key, url?} (first add convex/munimBilling.ts and the tables from list_integrations' setup_files, then deploy); supabase {access_token, project_ref}; neon {connection_string}; turso {url, auth_token}; d1 {account_id, database_id, api_token}; endpoint {url}: any other backend, Munim POSTs signed JSON batches there and returns the signing secret (whsec_…) ONCE: store it as MUNIM_BILLING_SYNC_SECRET and verify with the SDK's verifyWebhook. A target that isn't ready yet is saved as needs_setup: finish it, then call test_integration.

Calls POST/v1/integrations

Input
providerstringrequired
Where to sync
credentialsobjectrequired
The provider's fields (see the tool description). Sealed at rest; never shown again.
project_idstring
Only this project's rows (prj_…); default: everything
namestring
A label for it

test_integrationWrite

Check a database sync

Checks Munim can reach the database (or endpoint) and that the tables / sync function are there; a needs_setup sync starts its backfill once this passes.

Calls POST/v1/integrations/:integration_id/test

Input
integration_idstringrequired
int_…

resync_integrationWrite

Resend everything to a database

Sends every row again from the start (after the tables were wiped, say). Rows are upserts, so nothing is duplicated.

Calls POST/v1/integrations/:integration_id/resync

Input
integration_idstringrequired
int_…

pause_integrationWrite

Pause a database sync

Stops writing; changes keep collecting and go out on resume_integration.

Calls POST/v1/integrations/:integration_id/pause

Input
integration_idstringrequired
int_…

resume_integrationWrite

Resume a database sync

Starts writing again, with everything that changed while paused.

Calls POST/v1/integrations/:integration_id/resume

Input
integration_idstringrequired
int_…

rotate_integration_secretDestructive

New signing secret for a custom endpoint

Custom endpoints only: a new whsec_… secret, returned once. The old one stops working at once, so update MUNIM_BILLING_SYNC_SECRET right away.

Calls POST/v1/integrations/:integration_id/rotate_secret

Input
integration_idstringrequired
int_…

delete_integrationDestructive

Disconnect a database

Stops syncing and forgets the credentials. The tables and rows already in the database stay.

Calls POST/v1/integrations/:integration_id/delete

Input
integration_idstringrequired
int_…