Skip to content

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

Closed as not planned

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!

Activity

  1. maxisbey commented on Aug 11, 2026

    @maxisbey
    Contributor

    No we won't do this. If you want some sort of payment tracking as part of MCP then please suggest it for the Protocol itself: https://github.com/modelcontextprotocol/modelcontextprotocol/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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