Metronome MCP server for AI agents

Live

BEARER TOKEN

USAGE BILLING

Accounting & Finance

Metronome gives your agent usage-based billing control in your Metronome account: read customers, contracts, invoices, and usage, ingest usage events, and create customers, rate cards, commits, credits, and alerts.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Metronome
agent · Acme Q3
Run
Show Acme's invoices for this billing period.
S
metronome_invoices_list
380ms
Usage billing agent
Acme has 1 draft invoice for this period, with usage line items totaling 18,420.00 USD so far.
Sources: Metronome invoices, 1 customer
metronome
1 invoice
18:29
Message Claude...

Tools your usage billing agent reaches for on Metronome, scoped per user.

CALL ANY TOOL
104 tools for usage billing in Metronome: read customers, contracts, invoices, balances, and usage, ingest usage events, and create customers, rate cards, commits, credits, and alerts.
metronome_alert_archive
Archive alert
Archive a threshold notification so it stops being evaluated for all customers, optionally releasing its uniqueness key. Returns data with the archived alert id. Use this to retire an alert. Use metronome_customer_alert_reset to only re-evaluate it.
Parameters
Name
Type
Required
Description
id
string
Required
The Metronome ID of the threshold notification. Example: 8deed800-1b7a-495d-a207-6c52bac54dc9
idempotency_key
string
Optional
Optional Idempotency-Key header value, unique per request. If the call times out or fails mid-way, retry with the same key and identical inputs to get the original result instead of applying the change twice. Reusing a key with different inputs returns 409 Conflict. Metronome keeps keys for at least 24 hours. Example: 3f1c2b9e-6a4d-4e1b-9c2a-7d8e5f4a1b2c
release_uniqueness_key
boolean
Optional
If true, resets the uniqueness key on this threshold notification so it can be re-used. Example: false
metronome_alert_create
Create alert
metronome_anrok_token_upsert
Upsert anrok token
metronome_audit_logs_list
List audit logs
metronome_billable_metric_get
Get billable metric
metronome_billable_metric_update
Update billable metric
metronome_billing_provider_set_up
Billing provider set up
metronome_commit_create
Create commit
metronome_commit_edit
Commit edit
metronome_commit_trueup_disable
Disable commit trueup
metronome_commits_list
List commits
metronome_contract_invoice_issue_date_update
Update contract invoice issue date
metronome_contract_rate_schedule_get
Get contract rate schedule
metronome_credit_archive
Archive credit
metronome_custom_field_key_delete
Delete custom field key
metronome_customer_billable_metrics_list
List customer billable metrics
metronome_customer_billing_configs_set
Set customer billing configs
metronome_customer_create
Create customer
metronome_customer_dashboard_url_get
Get customer dashboard url
metronome_customer_name_update
Update customer name
metronome_events_search
Search events
metronome_invoice_regenerate
Invoice regenerate
metronome_notification_get
Get notification
metronome_package_archive
Archive package
metronome_package_contracts_list
List package contracts
metronome_package_create
Create package
metronome_rate_card_get
Get rate card
metronome_rate_card_rate_add
Add rate card rate
metronome_seat_balances_list
List seat balances
metronome_subscription_quantity_history_get
Get subscription quantity history

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Metronome tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["metronome"], toolNames: [
    "metronome_customers_list",
    "metronome_invoices_list",
    "metronome_usage_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find Acme, show its invoices for this quarter, and compare them with last month's usage" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["metronome"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find Acme, show its invoices for this quarter, and compare them with last month's usage" }],
  tools,
});

// Execute the tool call with the user's vaulted Metronome access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["metronome"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find Acme, show its invoices for this quarter, and compare them with last month's usage" }],
  tools,
});

// Tool call runs with the user's vaulted Metronome access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["metronome"] }, pageSize: 100,
});

const agent = new Agent({
  name: "usage_billing_agent",
  model: "gemini-2.5-pro",
  instruction: "Metronome tools scoped to this user",
  tools,
});

await agent.run("Find Acme, show its invoices for this quarter, and compare them with last month's usage");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Metronome tool. Click to copy, paste into your agent, done.
Customers and contracts
Copy the prompt
Copied
List my Metronome customers.
Copy the prompt
Copied
Show the contract for Acme with its rate card and commits.
Copy the prompt
Copied
Show the net balance for Acme.
Usage and invoices
Copy the prompt
Copied
Show Acme's invoices for this quarter.
Copy the prompt
Copied
Get aggregated usage for the API calls metric last month.
Copy the prompt
Copied
Look up the usage event with transaction ID evt-1042.
Pricing and alerts
Copy the prompt
Copied
List my rate cards.
Copy the prompt
Copied
Add a rate for the API calls product to my standard rate card.
Copy the prompt
Copied
Create a threshold alert for Acme's prepaid balance.
SEE HOW AUTH WORKS
Each user connects their own Metronome access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Metronome
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Metronome
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Metronome
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Metronome
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Metronome access token looks fine in a demo. In production every contract edit and usage event looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Metronome today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Metronome as the user or through a shared token?
As the user. Each user connects their own Metronome access token once, and Scalekit sends it with every call. Every usage event, contract edit, and archive in your audit trail is attributed to that user, not a shared service account.
Where is the Metronome access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Metronome?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without metronome_invoice_void, metronome_contract_archive, or metronome_customer_archive. 15 of the 104 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Metronome access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent send usage events?
Yes. metronome_events_ingest sends up to 100 usage events per call, and metronome_events_search looks up events from the last 34 days by transaction ID. Leave metronome_events_ingest out of toolNames to keep usage data read-only.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""metronome"": {
""url"": ""https://mcp.scalekit.com/metronome"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.metronome]
url = ""https://mcp.scalekit.com/metronome""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""metronome"": {
""url"": ""https://mcp.scalekit.com/metronome"",
""type"": ""http""
}
}
}