Baremetrics MCP by usefulapi
Read MRR, churn, customers, plans and events; add chart annotations in Baremetrics.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (3)
- LOWin baremetrics_get_metrics_summary
- LOWin baremetrics_get_metric_customers
- LOWin baremetrics_list_customer_events
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"baremetrics": {
"url": "https://baremetrics.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://baremetrics.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (20)
🟢baremetrics_get_account
Get the Baremetrics account: company name, default currency and creation date. Baremetrics API: GET /v1/account.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_sources
List the connected data sources (for example Stripe, Recurly, or Baremetrics-managed data). Each source id scopes the customer, plan, subscription, charge and event tools. Baremetrics API: GET /v1/sources.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_metrics_summary(start_date, end_date)
Get all key SaaS metrics (MRR, ARR, ARPU, LTV, churn, new customers and more) per day for a date range. Baremetrics API: GET /v1/metrics.
Eingabe-Schema
{
"type": "object",
"properties": {
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start date, yyyy-mm-dd."
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End date, yyyy-mm-dd."
}
},
"required": [
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_metric(metric, start_date, end_date, compare_to)
Get the daily time series of one metric for a date range, with an optional comparison to N days earlier. Baremetrics API: GET /v1/metrics/{metric}.
Eingabe-Schema
{
"type": "object",
"properties": {
"metric": {
"type": "string",
"minLength": 1,
"description": "Metric name, e.g. mrr, arr, active_customers, churn (see Baremetrics 'Available Metrics')."
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start date, yyyy-mm-dd."
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End date, yyyy-mm-dd."
},
"compare_to": {
"description": "Days ago to compare with, e.g. 30.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"metric",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_metric_customers(metric, start_date, end_date)
List the customers that contribute to one metric for a date range (for example who drove MRR changes). Baremetrics API: GET /v1/metrics/{metric}/customers.
Eingabe-Schema
{
"type": "object",
"properties": {
"metric": {
"type": "string",
"minLength": 1,
"description": "Metric name, e.g. mrr, arr, active_customers, churn (see Baremetrics 'Available Metrics')."
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start date, yyyy-mm-dd."
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End date, yyyy-mm-dd."
}
},
"required": [
"metric",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_metric_plans(metric, start_date, end_date)
Break one metric down by plan for a date range (for example MRR per plan). Baremetrics API: GET /v1/metrics/{metric}/plans.
Eingabe-Schema
{
"type": "object",
"properties": {
"metric": {
"type": "string",
"minLength": 1,
"description": "Metric name, e.g. mrr, arr, active_customers, churn (see Baremetrics 'Available Metrics')."
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start date, yyyy-mm-dd."
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End date, yyyy-mm-dd."
}
},
"required": [
"metric",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_cohorts
Get cohort analysis (customer retention by signup month). Baremetrics API: GET /v1/metrics/cohorts.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_customers(source_id, search, sort, order)
List or search the customers of one source. Baremetrics API: GET /v1/{source_id}/customers.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"search": {
"description": "Search text.",
"type": "string"
},
"sort": {
"type": "string"
},
"order": {
"description": "Sort direction, e.g. asc or desc.",
"type": "string"
}
},
"required": [
"source_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_customer(source_id, customer_oid)
Get one customer by id. Baremetrics API: GET /v1/{source_id}/customers/{oid}.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"customer_oid": {
"type": "string",
"minLength": 1,
"description": "Customer id (oid)."
}
},
"required": [
"source_id",
"customer_oid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_customer_events(source_id, customer_oid)
List the event history of one customer (signups, upgrades, cancellations). Baremetrics API: GET /v1/{source_id}/customers/{oid}/events.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"customer_oid": {
"type": "string",
"minLength": 1,
"description": "Customer id (oid)."
}
},
"required": [
"source_id",
"customer_oid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_subscriptions(source_id, customer_oid, order)
List subscriptions of one source, optionally for one customer. Baremetrics API: GET /v1/{source_id}/subscriptions.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"customer_oid": {
"description": "Only subscriptions of this customer (oid).",
"type": "string"
},
"order": {
"description": "Sort direction, e.g. asc or desc.",
"type": "string"
}
},
"required": [
"source_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_subscription(source_id, subscription_oid)
Get one subscription by id. Baremetrics API: GET /v1/{source_id}/subscriptions/{oid}.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"subscription_oid": {
"type": "string",
"minLength": 1,
"description": "Subscription id (oid)."
}
},
"required": [
"source_id",
"subscription_oid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_plans(source_id, search)
List or search the plans of one source. Baremetrics API: GET /v1/{source_id}/plans.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"search": {
"description": "Search text.",
"type": "string"
}
},
"required": [
"source_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_plan(source_id, plan_oid)
Get one plan by id. Baremetrics API: GET /v1/{source_id}/plans/{oid}.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"plan_oid": {
"type": "string",
"minLength": 1,
"description": "Plan id (oid)."
}
},
"required": [
"source_id",
"plan_oid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_charges(source_id, start, end, subscription_oid, customer_oid)
List charges of one source, optionally filtered by date range, subscription or customer. Baremetrics API: GET /v1/{source_id}/charges.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"start": {
"description": "Charges from this date, yyyy-mm-dd.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"end": {
"description": "Charges up to this date, yyyy-mm-dd.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"subscription_oid": {
"type": "string"
},
"customer_oid": {
"type": "string"
}
},
"required": [
"source_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_get_charge(source_id, charge_oid)
Get one charge by id. Baremetrics API: GET /v1/{source_id}/charges/{oid}.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"charge_oid": {
"type": "string",
"minLength": 1,
"description": "Charge id (oid)."
}
},
"required": [
"source_id",
"charge_oid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_events(source_id, live_stream, start, end)
List subscription events of one source (new, upgrade, downgrade, cancel and more), optionally by date range. Baremetrics API: GET /v1/{source_id}/events.
Eingabe-Schema
{
"type": "object",
"properties": {
"source_id": {
"type": "string",
"minLength": 1,
"description": "Source id from baremetrics_list_sources."
},
"live_stream": {
"description": "Live stream filter, as the API documents it.",
"type": "string"
},
"start": {
"description": "Events from this date, yyyy-mm-dd.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"end": {
"description": "Events up to this date, yyyy-mm-dd.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"required": [
"source_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_annotations
List the chart annotations (notes on metric dates). Baremetrics API: GET /v1/annotations.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢baremetrics_list_users
List the users of the Baremetrics account (use an id from here as user_id for an annotation). Baremetrics API: GET /v1/users.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴baremetrics_create_annotation(metric, annotation, date, global, user_id)
Add a note to a metric on one date, shown on the Baremetrics charts (for example 'Price change'). Adds one record; it does not change metrics or customers. Baremetrics API: POST /v1/annotations.
Eingabe-Schema
{
"type": "object",
"properties": {
"metric": {
"type": "string",
"minLength": 1,
"description": "Metric name, e.g. mrr, arr, active_customers, churn (see Baremetrics 'Available Metrics')."
},
"annotation": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "The note text."
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date of the note, yyyy-mm-dd."
},
"global": {
"type": "boolean",
"description": "true = show on all graphs; false = only on the metric's graph."
},
"user_id": {
"type": "string",
"minLength": 1,
"description": "Id of the user who adds the note (from baremetrics_list_users)."
}
},
"required": [
"metric",
"annotation",
"date",
"global",
"user_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis