Compatible with every major AI agent and IDE
What is the Metronome MCP Server?
Connect your Metronome account to any AI agent to streamline your usage-based billing and revenue operations through natural conversation.
What you can do
- Usage Ingestion & Querying — Send usage events and retrieve aggregated usage data across customers and metrics using
ingest_eventsandget_usage. - Customer Management — Create, list, and archive customers, or manage their billing configurations via
list_customersandcreate_customer. - Billing & Invoicing — Fetch, void, or regenerate invoices and track net balances with
list_invoicesandget_net_balance. - Contract Lifecycle — Create and edit contracts, manage rate cards, and track commits using
create_contractandlist_contracts. - Alerts & Monitoring — Set up notifications, alerts, and access audit logs for billing transparency.
How it works
- Subscribe to this server
- Enter your Metronome API Token
- Start managing your billing operations from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Finance Teams — reconcile usage data and manage invoices without manual exports.
- Product Managers — analyze feature usage and billing impact in real-time.
- Engineering Teams — verify event ingestion and monitor billing services directly from the terminal.
Built-in capabilities (31)
Create a custom field key
Add a rate to a rate card
Voids invoices and archives contracts. Archive a customer
Create a threshold notification alert
Create a billable metric
Create a commit
Create a contract
Create a new customer
Create an offset lifecycle event notification
Products can be USAGE, FIXED, COMPOSITE, or SUBSCRIPTION. Create a product
Defines base prices for products. Create a rate card
). Edit a contract
Get audit logs
Get a specific customer
Get an invoice
Get net balance
Get services
Get batched usage data
Get usage data with paginated groupings
Supports up to 100,000 events per second. Ingest usage events into Metronome
List balances
List all billable metrics
List customer contracts
List pricing units
Supports filtering. List all customers
List invoices
List products
Regenerate an invoice
Designed for sampling-based testing. Search events by transaction ID
Set custom field values
Void an invoice
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Metronome tool infrastructure. Connect 31 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Metronome without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Metronome tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Metronome in Mastra AI
Metronome and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Metronome to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Metronome in Mastra AI
The Metronome MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 31 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Metronome for Mastra AI
Every tool call from Mastra AI to the Metronome MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I check the current net balance for a specific customer?
Yes! Use the get_net_balance tool with the specific customer_id to retrieve the real-time balance information.
How do I see usage broken down by specific dimensions?
You can use the get_usage_groups tool. It allows you to retrieve granular usage data for a specific customer and metric, broken down by your custom grouping dimensions.
Is it possible to list all invoices for a client to check their payment history?
Absolutely. Use the list_invoices tool and provide the customer_id to see a paginated list of all invoices associated with that account.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Upzelo
10 toolsReduce subscription churn with personalized retention offers that intercept cancellations and win back customers at the exit point.

Eventzilla
10 toolsEquip your AI agent to manage event registrations, track ticket orders, and monitor discount codes via the Eventzilla API.

Umeng / 友盟+
10 toolsLeading mobile analytics and push notification platform in China — manage campaigns and audit performance via AI.

Shoplazza / 店匠
10 toolsGlobal E-commerce platform — manage products, orders, and inventory via AI.
