<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9" -->

---
title: MCP-Billing: OAuth 2.1 + usage-based Stripe billing for...
description: MCP-Billing is a self-hosted Next.js/TypeScript boilerplate that provides OAuth 2.1 with PKCE, API key management with zero-downtime rotation, usage-based...
canonical: https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: MCP-Billing: OAuth 2.1 + usage-based Stripe billing for MCP servers | daily.dev
og:description: MCP-Billing is a self-hosted Next.js/TypeScript boilerplate that provides OAuth 2.1 with PKCE, API key management with zero-downtime rotation, usage-based...
og:url: https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9
og:image: https://api.daily.dev/og/posts/P7vKc1Gr9.png
og:image:alt: MCP-Billing: OAuth 2.1 + usage-based Stripe billing for MCP servers
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP-Billing: OAuth 2.1 + usage-based Stripe billing for MCP servers

**[Product Hunt](https://daily.dev/sources/ph)** · 1 min read · 6 upvotes · 1 comments

## Summary

MCP-Billing is a self-hosted Next.js/TypeScript boilerplate that provides OAuth 2.1 with PKCE, API key management with zero-downtime rotation, usage-based Stripe billing, and Redis rate limiting for MCP servers. It ships as 7 modules with 300+ tests, available as a one-time €79 purchase with no revenue share or platform lock-in. The metering core is free and open source on npm.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.producthunt.com/products/mcp-billing>

## Community discussion

Top comments from developers on daily.dev.

**@ax\_prashant** · 0 upvotes

> ![GIF](https://static.klipy.com/ii/4493325008d34b7bf8cd6813cd5c1619/52/65/sZKdvfQ49vIZ.gif)

## Similar posts on daily.dev

- [How to Build a To-Do List MCP Server Using TypeScript – with Auth, Database, and Billing](https://daily.dev/posts/how-to-build-a-to-do-list-mcp-server-using-typescript-with-auth-database-and-billing-drgqjqrgb) · freeCodeCamp · 2 upvotes · 0 comments
- [Production MCP Server Architecture in TypeScript](https://daily.dev/posts/production-mcp-server-architecture-in-typescript-hs138y68c) · SitePoint · 0 upvotes · 0 comments
- [Building Custom MCP Servers with Next.js and mcp-handler](https://daily.dev/posts/building-custom-mcp-servers-with-next-js-and-mcp-handler-f6ddpnmik) · Trevor Lasn · 4 upvotes · 0 comments
- [Create new monetization opportunities with Stripe Billing’s recent upgrades](https://daily.dev/posts/create-new-monetization-opportunities-with-stripe-billing-s-recent-upgrades-kkoejiuby) · Stripe · 1 upvotes · 0 comments

---

Tags: [#nextjs](https://daily.dev/tags/nextjs), [#mcp](https://daily.dev/tags/mcp), [#oauth](https://daily.dev/tags/oauth), [#stripe](https://daily.dev/tags/stripe)

[View this post on daily.dev](https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"MCP-Billing: OAuth 2.1 + usage-based Stripe billing for MCP servers","url":"https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9"},"datePublished":"2026-07-28T07:57:26.641Z","dateModified":"2026-09-13T18:29:06.056Z","description":"MCP-Billing is a self-hosted Next.js/TypeScript boilerplate that provides OAuth 2.1 with PKCE, API key management with zero-downtime rotation, usage-based...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/275889df456740ae70730d84f74807ff?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/275889df456740ae70730d84f74807ff?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Product Hunt","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Product Hunt","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ph","url":"https://daily.dev/sources/ph"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"nextjs,mcp,oauth,stripe","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Product Hunt","item":"https://daily.dev/sources/ph"},{"@type":"ListItem","position":3,"name":"MCP-Billing: OAuth 2.1 + usage-based Stripe billing for MCP servers"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/mcp-billing-oauth-2-1-usage-based-stripe-billing-for-mcp-servers-p7vkc1gr9","comment":[{"@type":"Comment","text":"","datePublished":"2026-07-29T06:27:33.006Z","url":"https://daily.dev/posts/P7vKc1Gr9#c-QJzmM8vCI","author":{"@type":"Person","name":"Prashant Rijal","url":"https://daily.dev/ax_prashant","image":"https://media.daily.dev/image/upload/s--X33L4424--/f_auto/v1739440974/avatars/avatar_S5xYEu8jXmb2cDEBSs7Mn"}}]}
```

