Lago MCP by usefulapi

io.usefulapi由 usefulapi.io 發布官方發布者v1.36.5更新於 Nov 8, 2026

Read Lago customers, subscriptions, invoices, usage and revenue analytics; write events.

發布方自己的服務:Ably MCP by usefulapi

已驗證Streamable HTTP可網頁執行金融資料與分析商業與電商

概覽

AI 產生的概覽

託管的 Lago 帳務 MCP 伺服器:讀取客戶、訂閱、發票、用量與營收分析,並可寫入用量事件。

可以做什麼
  • 列出並查詢客戶、其訂閱、目前與歷史用量以及帳務入口連結
  • 列出並查詢訂閱、方案、計費指標、優惠券、附加項目、錢包與費用
  • 列出並查詢發票與貸項通知,可依客戶、狀態或日期篩選
  • 提供每月經常性營收與總營收分析
  • 建立客戶,並記錄會計入帳務的用量/計量事件
  • 查看每月呼叫額度、提出功能需求、升級或取消付費方案
適用情境
適合以自然語言查詢 Lago 帳務資料,例如營收趨勢、未付發票、某客戶目前用量,或不必開啟 Lago 後台就能記錄計量事件。
執行需求
遠端 streamable HTTP 端點,免本機安裝。只需填入伺服器網址,透過 OAuth 登入,首次連線時貼上 Lago API 金鑰,金鑰會經驗證並依使用者儲存。免費方案每月 50 次工具呼叫,另有付費方案。
安裝前請注意
需要提供 Lago API 金鑰,並由第三方託管業者依使用者儲存。有兩個寫入工具:建立客戶與記錄用量事件,後者會影響帳務,且僅在提供 transaction_id 時才具冪等性。付費方案透過 Stripe 結帳連結付款,取消後當期不退費。免費額度每月僅 50 次呼叫。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Lago MCP by usefulapi,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.usefulapi%2Flago/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "lago-by-usefulapi": {
      "type": "http",
      "url": "https://lago.usefulapi.io/mcp"
    }
  }
}

README

Lago MCP by usefulapi

Query your Lago billing — customers, subscriptions, invoices, usage, and revenue analytics — and log usage events, from Claude, Cursor, or any MCP client. Hosted, no local install — connect with your Lago API key.

Live endpoint: https://lago.usefulapi.io/mcp · Homepage: https://usefulapi.io/lago

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://lago.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http lago https://lago.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
json
{  "mcpServers": {    "lago": {      "url": "https://lago.usefulapi.io/mcp"    }  }}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your Lago credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/lago/

On first connect you'll paste your Lago API key. It's validated, stored per-user, and scoped to you.

Tools

ToolTypeWhat it does
lago_list_customersreadList customers
lago_get_customerreadGet customer
lago_get_customer_current_usagereadGet customer current usage
lago_get_customer_past_usagereadGet customer past usage
lago_list_customer_subscriptionsreadList customer subscriptions
lago_get_customer_portal_urlreadGet customer portal URL
lago_list_subscriptionsreadList subscriptions
lago_get_subscriptionreadGet subscription
lago_list_plansreadList plans
lago_get_planreadGet plan
lago_list_invoicesreadList invoices
lago_get_invoicereadGet invoice
lago_list_billable_metricsreadList billable metrics
lago_get_billable_metricreadGet billable metric
lago_list_couponsreadList coupons
lago_list_add_onsreadList add-ons
lago_list_walletsreadList wallets
lago_list_credit_notesreadList credit notes
lago_get_credit_notereadGet credit note
lago_list_feesreadList fees
lago_analytics_gross_revenuereadAnalytics: gross revenue
lago_analytics_mrrreadAnalytics: MRR
lago_create_customerwriteCreate customer
lago_create_eventwriteCreate usage event
lago_usage_statusmetaUsage status (free-tier meter)
lago_request_featuremetaRequest a missing feature
lago_upgrademetaUpgrade to Pro or Pro+
lago_cancel_subscriptionmetaCancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

PlanPriceLimit
Free$050 tool calls / month
Pro$9/mo or $90/yr (2 months free)Unlimited*

*Pro has a fair use limit of 10,000 tool calls a month on this server. For more, write to [email protected].

Pro covers this server only. Subscribe with lago_upgrade (it returns a Stripe Checkout link). Cancel any time with lago_cancel_subscription: Pro continues to the end of the paid period, with no refund for the current period, and running lago_upgrade before then undoes the cancel. Or write to [email protected].

License

MIT — see LICENSE. Documentation only; the server is hosted.

來源:servers/lago/README.md,提交 4046075

工具

24

lago_list_customers

List customers

List customers in Lago, paginated. Lago API: GET /customers.

輸入參數pageper_page

lago_get_customer

Get customer

Retrieve a single customer by external id. Lago API: GET /customers/{external_customer_id}.

輸入參數external_customer_id必填

lago_get_customer_current_usage

Get customer current usage

Retrieve a customer's usage-based billing data for the current period. Lago API: GET /customers/{external_customer_id}/current_usage.

輸入參數apply_taxesexternal_customer_id必填external_subscription_id必填

lago_get_customer_past_usage

Get customer past usage

Retrieve a customer's usage-based billing data for past periods. Lago API: GET /customers/{external_customer_id}/past_usage.

輸入參數periods_countbillable_metric_codeexternal_customer_id必填external_subscription_id必填

lago_list_customer_subscriptions

List customer subscriptions

List a customer's subscriptions. Lago API: GET /customers/{external_customer_id}/subscriptions.

輸入參數external_customer_id必填

lago_get_customer_portal_url

Get customer portal URL

Get a customer's billing portal URL. Lago API: GET /customers/{external_customer_id}/portal_url.

輸入參數external_customer_id必填

lago_list_subscriptions

List subscriptions

List subscriptions, optionally filtered by customer, plan, or status. Lago API: GET /subscriptions.

輸入參數pagestatusper_pageplan_codeexternal_customer_id

lago_get_subscription

Get subscription

Retrieve a single subscription by external id. Lago API: GET /subscriptions/{external_id}.

輸入參數external_id必填

lago_list_plans

List plans

List billing plans, paginated. Lago API: GET /plans.

輸入參數pageper_page

lago_get_plan

Get plan

Retrieve a single plan by code. Lago API: GET /plans/{code}.

輸入參數code必填

lago_list_invoices

List invoices

List invoices, optionally filtered by customer, status, payment status, or issuing date. Lago API: GET /invoices.

輸入參數pagestatusper_pagepayment_statusissuing_date_toissuing_date_fromexternal_customer_id

lago_get_invoice

Get invoice

Retrieve a single invoice by its Lago id. Lago API: GET /invoices/{lago_id}.

輸入參數lago_id必填

lago_list_billable_metrics

List billable metrics

List billable metrics, paginated. Lago API: GET /billable_metrics.

輸入參數pageper_page

lago_get_billable_metric

Get billable metric

Retrieve a single billable metric by code. Lago API: GET /billable_metrics/{code}.

輸入參數code必填

lago_list_coupons

List coupons

List coupons, paginated. Lago API: GET /coupons.

輸入參數pageper_page

lago_list_add_ons

List add-ons

List add-ons, paginated. Lago API: GET /add_ons.

輸入參數pageper_page

lago_list_wallets

List wallets

List a customer's prepaid credit wallets. Lago API: GET /customers/{external_customer_id}/wallets.

輸入參數pageper_pageexternal_customer_id必填

lago_list_credit_notes

List credit notes

List credit notes, optionally filtered by customer. Lago API: GET /credit_notes.

輸入參數pageper_pageexternal_customer_id

lago_get_credit_note

Get credit note

Retrieve a single credit note by its Lago id. Lago API: GET /credit_notes/{lago_id}.

輸入參數lago_id必填

lago_list_fees

List fees

List fees, optionally filtered by customer, subscription, or fee type. Lago API: GET /fees.

輸入參數pagefee_typeper_pageexternal_customer_idexternal_subscription_id

lago_analytics_gross_revenue

Analytics: gross revenue

Monthly gross revenue (finalized invoice payments + advance fees, net of tax/discounts). Lago API: GET /analytics/gross_revenue.

輸入參數monthscurrencyexternal_customer_id

lago_analytics_mrr

Analytics: MRR

Monthly recurring revenue (MRR) from subscription fees. Lago API: GET /analytics/mrr.

輸入參數monthscurrency

lago_create_customer

Create customer

Creates a customer in Lago (additive). Lago API: POST /customers with body { "customer": { ... } }.

輸入參數urlnameemailphonecountrycurrencymetadatatimezonelegal_nameexternal_id必填legal_numbertax_identification_number

lago_create_event

Create usage event

Records a usage/metering event in Lago. This WILL be counted toward the customer's usage and affects billing. Idempotent via transaction_id. Lago API: POST /events with body { "event": { ... } }.

輸入參數code必填timestamppropertiestransaction_id必填external_subscription_id必填precise_total_amount_cents

版本歷史

22
  1. v1.36.5最新Nov 8, 2026
  2. v1.36.4Nov 7, 2026
  3. v1.35.3Nov 5, 2026
  4. v1.35.2Nov 5, 2026
  5. v1.35.1Nov 4, 2026
  6. v1.35.0Nov 3, 2026
  7. v1.34.1Nov 3, 2026
  8. v1.33.0Nov 1, 2026
  9. v1.31.0Oct 31, 2026
  10. v1.30.0Oct 31, 2026
  11. v1.29.2Oct 30, 2026
  12. v1.29.0Oct 30, 2026
  13. v1.24.0Oct 26, 2026
  14. v1.21.3Oct 25, 2026
  15. v1.21.0Oct 25, 2026
  16. v1.20.0Oct 24, 2026
  17. v1.17.0Oct 23, 2026
  18. v1.16.4Oct 22, 2026
  19. v1.16.3Oct 21, 2026
  20. v1.11.1Oct 9, 2026
  21. v1.10.0Oct 9, 2026
  22. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Usefulapi 整合