Infiterra Billing MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Infiterra Billing MCPshow my recent orders that are still pending payment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Infiterra Billing MCP (Cloudflare Worker)
A remote MCP server, hosted on a Cloudflare Worker, that exposes the Infiterra Billing (Leader Cloud reseller) API to MCP clients such as Claude. Tools are generated from spec/swagger.json.
Transport: stateless Streamable HTTP at
/mcpTools: 56 total, 41 read and 15 write (create or patch accounts, create orders, checkout, cancel subscriptions, change quantities, and so on)
Health check:
GET /health
How authentication works
There are two separate layers.
MCP client to Worker: clients send
Authorization: Bearer <MCP_AUTH_TOKEN>. You choose this value.Worker to Leader Cloud: the Worker requests an OAuth token from
https://bss.leadercloud.com.au/oauth/tokenusing the password grant. The client ID and secret are sent as an HTTP Basic header, and the username and password go in the form body. The token is cached and refreshed when it expires or when the API returns 401.
Related MCP server: Sierra Navigator Cloud
Secrets
Set each one with npx wrangler secret put <NAME>. Never commit these values to the repository.
Secret | Value | Where to get it |
| A long random string of your choosing | Generate it yourself, for example |
|
| Fixed value, no trailing slash |
| API client ID | Leader Cloud Storefront, Settings, API Credentials |
| API client secret | Leader Cloud Storefront, Settings, API Credentials |
| API username | Supplied by your Leader Cloud account manager |
| API password | Supplied by your Leader Cloud account manager |
Optional: INFITERRA_TOKEN_URL overrides the token endpoint. It defaults to {INFITERRA_BASE_URL}/oauth/token.
Deploy
Run these from the project folder. Deploying creates a new Worker named infiterra-mcp (the name in wrangler.jsonc). If a Worker with that name already exists in the target account, it will be overwritten, so change the name first if that is not what you want.
Install dependencies:
npm installLog in:
npx wrangler login(or setCLOUDFLARE_API_TOKEN)Pick the Cloudflare account, either with
export CLOUDFLARE_ACCOUNT_ID=<account id>or by adding"account_id": "<account id>"towrangler.jsoncDeploy:
npm run deploySet the six secrets from the table above
Check it is up:
curl https://infiterra-mcp.<your-subdomain>.workers.dev/healthshould return{"ok":true,"tools":56}
Connect a client
Use the URL https://infiterra-mcp.<your-subdomain>.workers.dev/mcp and add the header Authorization: Bearer <MCP_AUTH_TOKEN>.
The workers.dev URL is public, but every /mcp request needs the bearer token. For tighter control, attach a custom domain route or place the Worker behind Cloudflare Access.
Notes on tool behaviour
Request bodies are passed in a
bodyargument.$filterand$orderByare exposed asfilterandorderBy. Their values are OData-style expressions.List endpoints are paged:
pageIndexstarts at 1 andpageSizeis 1 to 500.The account PATCH tool sends
application/json-patch+json, sobodymust be a JSON Patch array.Write tools are labelled WRITE in their descriptions, and cancel and delete tools are marked destructive. Confirm with the user before calling them.
Responses over roughly 100,000 characters are truncated with a note to narrow the query.
The Worker cannot skip TLS verification, so the Leader Cloud host must present a valid, publicly trusted certificate.
Local development
Copy
.dev.vars.exampleto.dev.varsand fill in the valuesRun
npm run devThe server listens on
http://localhost:8787/mcp
.dev.vars is git-ignored.
Regenerating tools
Replace spec/swagger.json and run npm run generate. This rewrites src/tools.generated.ts, which should not be edited by hand. npm run typecheck runs the TypeScript checks.
Project layout
src/index.ts: MCP JSON-RPC handler, bearer auth, Leader Cloud token handling, request proxyingsrc/tools.generated.ts: generated tool definitionsscripts/generate.mjs: generator that reads the swagger specspec/swagger.json: Infiterra Billing API v3 specificationwrangler.jsonc: Worker configuration
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Autumn — read customers, plans, balances & invoices; track usage and attach plans.
Billing proxy for MCP servers. Adds Stripe and x402 crypto payments without writing billing code.
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenancePer-call billing and metering proxy for MCP tool servers. Providers set pricing via the open MCP Billing Spec (MIT), consumers pay through Stripe Connect with signed receipts and SLA monitoring.MIT
- FlicenseNot gradedqualityCmaintenanceHosted, OAuth-secured MCP server that drives the Sierra Interactive real-estate admin backend, enabling reads, guarded writes, and identity-locked deletes over HTTP without a browser.-
- FlicenseNot gradedqualityBmaintenanceMCP server that exposes IPBX PABX data (branches, users, groups, trunks, queues) as typed tools via Streamable HTTP, with OAuth and static bearer authentication.-
- FlicenseNot gradedqualityCmaintenanceStreamable HTTP MCP server that exposes user and billing management tools, resources, and prompts through a REST API, enabling natural language interaction with user profiles, bills, and sharing features.-