lago
Open Source Metering and Usage Based Billing API ⭐️ Consumption tracking, Subscription management, Pricing iterations, Payment orchestration & Revenue analytics
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
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 moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
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.