Idea: Monetization layer for FastAPI-MCP endpoints #263
nicofains1
started this conversation in
Ideas
Replies: 1 comment
-
|
I would keep something like this clearly optional and probably outside the core package. The framework value of fastapi_mcp is that it is a thin, predictable bridge from FastAPI routes into MCP tools. Once monetization logic becomes part of the default surface, the simplicity story gets harder to preserve. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey team,
I've been looking at fastapi_mcp and love the approach — communicating directly through FastAPI's ASGI interface instead of HTTP overhead is really clean. The zero-config setup with
FastApiMCP(app)+mount()makes it genuinely easy to expose existing endpoints as MCP tools.One problem I keep hearing from MCP server developers: there's no easy way to make money from MCP tools. SaaS pricing is awkward because there's no UI or login screen. Usage-based billing requires auth infrastructure, payment processing, usage tracking — it's a lot of work on top of what's already complex.
I built an open-source project called agentic-ads that tries to solve this. It's a contextual ad SDK for MCP servers — the tool returns its normal response plus an optional text suggestion (like "Planning a trip? Japan Rail Pass is $299" from a travel tool). The AI agent can include it naturally or ignore it. No tracking pixels, no cookies, just keyword + context matching.
Integration is ~20 lines of code. Revenue split: 70% to the developer, 30% to the platform.
I think there could be a natural integration point with fastapi_mcp — imagine adding a
monetize=Trueoption toFastApiMCP()that attaches contextual ads to tool responses. It would give your users a dead-simple way to earn from their endpoints without any billing infrastructure.Honest state: early stage. The platform is live at https://agentic-ads.fly.dev, the SDK works, but we have zero paying advertisers today. Chicken-and-egg is real and I'm not pretending otherwise. I wrote about the architecture and the state of MCP monetization if you want more context.
Would love to hear what you think — is monetization something your community asks about? Would an integration like this be interesting, or do you see a different approach winning?
Beta Was this translation helpful? Give feedback.
All reactions