@pixeloffice-eu/mcp-monetize
v1.0.3
Published
Zero-dependency micro-metering and monetization middleware for Model Context Protocol (MCP) servers and AI agent tool invocations.
Maintainers
Readme
@pixeloffice-eu/mcp-monetize
🎁 Get 1,000 Free Production Requests & Live Dashboard Key:
Claim your free API key and track real-time USDC agent payouts in 1 click at pixeloffice.eu/dashboard.html
Zero-dependency micro-metering and monetization middleware for Model Context Protocol (MCP) servers and autonomous AI agents. Monetize your MCP servers on a per-call basis ($0.001 – $0.05 per tool invocation) and earn 90% net yield on every call with full HTTP 402 / x402 payment header support.
⚡ Quick Start (1 Line Setup)
Install via NPM:
npm install @pixeloffice-eu/mcp-monetizeUsage Example (Node.js CommonJS):
const { createMonetizedTool } = require('@pixeloffice-eu/mcp-monetize');
// Wrap your original MCP tool handler
const monetizedTool = createMonetizedTool({
name: "custom_analyzer",
pricePerCall: 0.002, // $0.002 USDC per execution
developerApiKey: "px_dev_live_your_key_here", // Get from pixeloffice.eu/dashboard.html
handler: async (args) => {
// Your original MCP tool execution
return {
content: [{ type: "text", text: `Processed query for ${args.query}` }]
};
}
});
// Call inside your MCP server handler
const result = await monetizedTool({ query: "market_data" });🚀 Features
- Zero Dependencies: Built strictly with native Node.js
http/httpsmodules — zero supply chain risk. - HTTP 402 / x402 Protocol Compliance: Returns standardized HTTP 402 Payment Required metadata when caller credit is exhausted.
- Interactive MCP Apps UI Widget: Automatically attaches clean HTML/JS UI cards for Claude Desktop, Cursor, and ChatGPT.
- Asynchronous Settlement: Sub-35ms non-blocking micro-settlements on Base and Solana.
📊 Developer Dashboard & Live API Keys
Claim your free developer API key and track live per-call revenue at:
👉 https://pixeloffice.eu/dashboard.html
