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
- Visit https://walleot.com
- Create an account and register a new merchant
- Generate your API key and use it in your MCP server
Built on top of paymcp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
972a8511a5863c76f6740708afe9fd2d4bc7aec4600845c15e2ced3bfbf3431a
|
|
| MD5 |
fc3a6395b7c06b866fb831996a9eccb1
|
|
| BLAKE2b-256 |
43927b4d91f9d46fa6cc6dae0ea53c6fa0e02b69bb3aa82a3735c7eec831655d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d68e67aacff96e8edba888074a2fb08cb51de4311ac1c2d3d4b9b46b9d6038
|
|
| MD5 |
f9cea1cb9dbfc604c5e34a8d5361906a
|
|
| BLAKE2b-256 |
08e733e569a1e033d9fdc8481a095212402b2777eb23fda2dc2ac462ced527e2
|