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, Mode
import os

mcp = FastMCP("My Server")

walleot = Walleot(
    mcp,
    apiKey=os.getenv("WALLEOT_API_KEY"),
    mode=Mode.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 modes (two_step, resubmit, elicit, progress, dynamic_tools)
  • 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.4.3.tar.gz (1.9 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.4.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for walleot-0.4.3.tar.gz
Algorithm Hash digest
SHA256 972a8511a5863c76f6740708afe9fd2d4bc7aec4600845c15e2ced3bfbf3431a
MD5 fc3a6395b7c06b866fb831996a9eccb1
BLAKE2b-256 43927b4d91f9d46fa6cc6dae0ea53c6fa0e02b69bb3aa82a3735c7eec831655d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for walleot-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42d68e67aacff96e8edba888074a2fb08cb51de4311ac1c2d3d4b9b46b9d6038
MD5 f9cea1cb9dbfc604c5e34a8d5361906a
BLAKE2b-256 08e733e569a1e033d9fdc8481a095212402b2777eb23fda2dc2ac462ced527e2

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