Skip to main content

Pixel Office MCP Monetization SDK for Python

Zero-dependency Python MCP Monetization & Credit Verification Middleware for FastMCP, LangChain, CrewAI, and custom JSON-RPC Model Context Protocol (MCP) servers.

Installation

pip install pixeloffice-mcp

Quick Start

from pixeloffice_mcp import verify_mcp_credit, settle_mcp_meter, McpMonetizeMiddleware

# Verify credit for incoming MCP tool call
verification = verify_mcp_credit(api_key="px_live_key_xxx", credits_required=1)
if verification["valid"]:
    print(f"Credit verified! Remaining balance: ${verification['balance_usd']}")

# Settle usage meter after tool execution
settle_mcp_meter(api_key="px_live_key_xxx", units_used=1)

Features

  • FastMCP & LangChain MCP Support: Seamless middleware for python MCP servers.
  • JSON-RPC 2.0 Compliant: Ignores notifications, strictly handles tool call monetization.
  • 35ms Latency: Connects directly to Pixel Office EU.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixeloffice_mcp-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file pixeloffice_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: pixeloffice_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2

File hashes

Hashes for pixeloffice_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd4ecc4fd8b906409ec74905620d484fe393d0d877f7668d75ad5987999fa3a6
MD5 3a67d65970c058430966fb27911da698
BLAKE2b-256 32a6930788e76888b18413345ad956da30b59b4e7576fc27793607e245812f3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page