Baremetrics MCP by usefulapi
Read MRR, churn, customers, plans and events; add chart annotations in Baremetrics.
使うべきか
品質と安全性
検出事項(3)
- LOWbaremetrics_get_metrics_summary 内
- LOWbaremetrics_get_metric_customers 内
- LOWbaremetrics_list_customer_events 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"baremetrics": {
"url": "https://baremetrics.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://baremetrics.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(20)
🟢baremetrics_get_account
Get the Baremetrics account: company name, default currency and creation date. Baremetrics API: GET /v1/account.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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"
}コミュニティ
エビデンス