mcp

v0.4.1
io.github.P2Flux/mcp Checked 21 hours ago Published 1 day ago

Let your AI assistant pay for web content in USDC (x402) within a budget you set.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

wallet_setup

Create the P2Flux wallet on this computer (if there is none) and show its address and how to add money. Run this first.

wallet_balance

Show how much USDC the wallet holds, what was spent in the last 24 hours, and the limits.

find_paid_content

Search the P2Flux directory for websites that sell content to AI agents. Returns site names, what they offer and the price per page. Costs nothing.

ParameterTypeDescription
query *stringWords to look for, e.g. "soup recipes". Empty lists the newest sites.

check_price

See what a web page costs for an AI agent, without paying.

ParameterTypeDescription
url *stringThe page address (https).

read_paid

Read a web page, paying for it in USDC from the wallet if the page asks. Never pays more than max_price, the limit per payment or the daily limit. Returns the page text and what was paid.

ParameterTypeDescription
url *stringThe page address (https).
max_pricestringThe most to pay for this page, in USDC, e.g. "0.10". Omit to allow up to the limit per payment.

withdraw_prepaid

Take the unused prepaid balance for a website back into the wallet. Costs nothing. Use when the user is done with a site that was paid from a prepaid balance.

ParameterTypeDescription
url *stringAny paid page of that site that was read before (https).

add_budget

Give this wallet a budget from the user's own wallet: makes a P2Flux payment link the USER opens, connects their wallet (MetaMask, Coinbase Wallet, ...) and signs once. "monthly" refills this wallet with the amount every 30 days until the user cancels; "once" is a single top-up. Moves no money by itself. Use when the wallet is empty or low.

ParameterTypeDescription
amount *stringUSDC, e.g. "50". At least 1, at most 500.
repeat *string"monthly": every 30 days until cancelled. "once": one top-up.

spending_report

List what the wallet paid for: when, which page, how much.