Skip to content

Feature Suggestion: Optional token metering & paid API key support via neuforge-pay #3279

Description

@sophieamoure2026-ui

Hi @modelcontextprotocol,

Love the work on modelcontextprotocol/python-sdk! As usage grows across AI agent frameworks, server compute costs can start adding up quickly.

Would you be open to adding an optional usage metering & billing decorator using neuforge-pay? It allows developers hosting instance deployments of your MCP server to automatically meter tokens, track real-time LLM COGS, and attach paid Stripe keys in 3 lines of code.

Example Integration:

from neuforge_pay import meter_endpoint

@app.get("/v1/query")
@meter_endpoint(price_charged_usd=0.05, model_name="claude-3-5-sonnet")
async def query_endpoint():
    ...

Happy to submit a clean PR if this aligns with your roadmap!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions