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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_monetize-0.1.0.tar.gz | 4.4 kB | Without provenance | Details for mcp_monetize-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_monetize-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_monetize-0.1.0-py3-none-any.whl |
Total release size: 8.5 kB
Release files / mcp_monetize-0.1.0.tar.gz
| Download URL | mcp_monetize-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aa99da4ba82398ed851cce1d522661f403a7a7deb0fe0aaec275add7f378b32
|
|
BLAKE2b-256 checksum How to use checksums |
6e0b47c40a90a66830e392ebef1c83b7b0f98990139a697b7f7444594b227844
|
| 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.0-py3-none-any.whl
| Download URL | mcp_monetize-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b11a7a5d684ff54eb1a16fb5fffeec9b6bf306575d85a52d50d0ebdaadde7d0a
|
|
BLAKE2b-256 checksum How to use checksums |
a0399782692689c75508c61da393e826465bd48b9c4115ae399bbca974a3313c
|
| 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.0
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.