Skip to main content

Payment support for MCP-based tools and agents.

Project description

walleot

Accept payments in your MCP agents in just two lines of code using Walleot — a drop-in payment provider built for the Model Context Protocol.

Overview

This is a lightweight wrapper around paymcp that configures it to use Walleot as the payment backend, so you can start charging for tool usage with minimal effort.

Installation

pip install walleot

Usage

from mcp.server.fastmcp import FastMCP, Context
from walleot import Walleot, price, PaymentFlow
import os

mcp = FastMCP("My Server")

walleot = Walleot(
    mcp,
    apiKey=os.getenv("WALLEOT_API_KEY"),
    payment_flow=PaymentFlow.ELICITATION
)

@walleot.price(0.99, currency="USD")
@mcp.tool()
def add(a: int, b: int, , ctx: Context) -> int:
    # `ctx` is required by the PayMCP tool signature — include it even if unused
    return a + b

Features

  • Accept payments of any amount, including microtransactions as small as $0.01
  • Add monetization to any tool with a simple decorator
  • Supports multiple payment flows (elicit, confirm, progress)
  • Secure API-key-based authentication

Getting Started

  1. Visit https://walleot.com
  2. Create an account and register a new merchant
  3. Generate your API key and use it in your MCP server

Built on top of paymcp

Project details


Download files

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

Source Distribution

walleot-0.0.4.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

walleot-0.0.4-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file walleot-0.0.4.tar.gz.

File metadata

  • Download URL: walleot-0.0.4.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.2 CPython/3.10.14 Darwin/24.3.0

File hashes

Hashes for walleot-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b4fd82409faf9d0c07e8be2c2308986024512717c0d42249625b2dff96ebc4c3
MD5 7f245a82495fe81b624c662e7f364b24
BLAKE2b-256 d26ca736216ab44edb9068f069d1ffa649ef9b60e0365a35816f443b148eafcc

See more details on using hashes here.

File details

Details for the file walleot-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: walleot-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.2 CPython/3.10.14 Darwin/24.3.0

File hashes

Hashes for walleot-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a20f3c3095e6afbb1acb127c295ec9b49a8adb79cd0e4328c96dedd7d46c2d59
MD5 a87b328a84dd8ac5e7ba22637391d312
BLAKE2b-256 29fc28dbb05ac9fc64a06ccfe4689e71c85073394c05c57797372b94cc2492b7

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 Pingdom Monitoring Sentry Error logging StatusPage Status page