Skip to main content

mcp-monetize Python SDK

Drop-in billing, paywall & PASETO capability token middleware for Model Context Protocol (MCP) servers in Python.

Compatible with FastMCP and standard Python MCP architectures.

Installation

pip install mcp-monetize

Quickstart with FastMCP

from mcp_monetize import require_capability, PasetoCapabilityManager

# Initialize token manager with secret key
manager = PasetoCapabilityManager("your-32-byte-secret-key")

# Protect a FastMCP tool
@require_capability(scopes=["deep_analysis"], cost=5)
def deep_analysis(repo_url: str):
    return {"status": "analyzed", "repo": repo_url}

Metadata

Release files for mcp-monetize 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-monetize 0.1.3
File Size Uploaded Provenance Actions
mcp_monetize-0.1.3.tar.gz 4.4 kB Without provenance Details for mcp_monetize-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-monetize 0.1.3
File Interpreter ABI Platform Actions
mcp_monetize-0.1.3-py3-none-any.whl Python 3 none any Details for mcp_monetize-0.1.3-py3-none-any.whl

Total release size: 8.5 kB

Release files / mcp_monetize-0.1.3.tar.gz

Download URL mcp_monetize-0.1.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d50cba2a2b616e9500a4df288420396044773f33a2ed62837cd9d0d0a232f772
BLAKE2b-256 checksum
How to use checksums
2fe65a88a769081a38f45120f39785a07b187f8bcfd7d4379586367e4fab8e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / mcp_monetize-0.1.3-py3-none-any.whl

Download URL mcp_monetize-0.1.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98e1f5c47888c837cac7bf2488713ef196253852574382dfdd4b7fe0563c3b90
BLAKE2b-256 checksum
How to use checksums
e96f6b4c8348e2b8785a42020fbee7afe24a3b9c9fc0cfcc0cfea1bb59702978
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for mcp-monetize 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page