</>MCP Agents Market
MCP Server

lago

by getlago10.4kGoUpdated 2026-08-25

Open Source Metering and Usage Based Billing API ⭐️ Consumption tracking, Subscription management, Pricing iterations, Payment orchestration & Revenue analytics

Claude DesktopClaude Code

Lago is an open-source monetization infrastructure platform that provides an MCP server for exposing billing and usage-based pricing capabilities to AI agents. The platform enables developers to meter consumption (tokens, API calls, compute resources), model pricing strategies, manage subscriptions and credits, generate invoices, and collect payments through a programmable API. The Lago MCP server gives MCP-compatible agents structured tools to read and write invoices, customer records, usage data, payments, credit notes, and coupons without requiring custom integrations. It's designed for teams building AI products that need flexible usage-based billing, prepaid credits, and revenue operations accessible to both human teams and autonomous agents.

Key Features

MCP server exposing billing primitives (invoices, usage, customers, payments, credit notes, coupons) as agent tools
Real-time usage event ingestion with idempotent deduplication by transaction_id to prevent duplicate billing
Flexible pricing models including usage-based, graduated, volume, package, prepaid credits, and minimum commitments
Agent SDKs for Python and JavaScript/TypeScript that wrap LLM clients and normalize token usage tracking
Multi-provider payment orchestration supporting Stripe, Adyen, GoCardless with retries and dunning
Embedded billing mode for platforms to offer white-label metering and invoicing to their customers
Self-hosted deployment with Docker Compose or Helm charts, plus managed Lago Cloud option
Production-ready architecture with asynchronous workers, Prometheus metrics, and SOC 2 Type II certification

Use Cases

  • 01Metering AI token consumption by model, input/output type, cache, reasoning, or tool calls for LLM API billing
  • 02Building usage-based billing for developer tools tracking API calls, transactions, compute, or storage
  • 03Implementing prepaid credit systems with automatic top-ups and usage alerts for SaaS products
  • 04Enabling agents to query billing data, generate invoices, or apply credits through natural language
  • 05Offering embedded billing capabilities to platform customers through white-label APIs
  • 06Managing hybrid pricing models combining subscriptions, allowances, overages, and enterprise contracts

Related MCP Servers

View more

lago — FAQ

What is the Lago MCP server?+

The Lago MCP server is an open-source tool that exposes billing and revenue operations as structured interfaces for MCP-compatible agents. It provides read and write access to invoices, usage metrics, customer records, payments, credit notes, and coupons through the Model Context Protocol.

How do I install and connect the Lago MCP server?+

The Lago MCP server is available in a separate repository (lago-agent-toolkit) under the MIT license. You configure it in your MCP client by providing your Lago instance URL and API key, then the server exposes billing tools to your agent.

Which AI clients work with the Lago MCP server?+

The Lago MCP server works with any MCP-compatible client, including Claude Desktop, Claude Code, and other tools that support the Model Context Protocol. The Agent SDKs separately support OpenAI, Anthropic, Mistral, Gemini, and AWS Bedrock clients.

Do I need a Lago API key to use the MCP server?+

Yes, the MCP server requires a Lago API key with appropriate permissions. You can run Lago locally using Docker Compose for development, or use Lago Cloud for a managed instance. The API key inherits the permissions of the user that created it.

Is Lago free and open source?+

The core Lago platform is open source under AGPLv3, and the Agent SDK and MCP server are MIT licensed. You can self-host Lago for free, or use Lago Cloud (managed hosting) with commercial support and premium features.

What are the prerequisites for running Lago locally?+

To run Lago locally, you need Docker and Docker Compose. The included demo also requires curl and jq. For production deployments, you'll need infrastructure for PostgreSQL, Redis, and optionally object storage.

How do I install lago?+

Open the source repository on GitHub and follow its README. lago is a mcp server — MCP Agents Market links you directly to the official repo.

Is lago free?+

lago is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches