mcp
Let your AI assistant pay for web content in USDC (x402) within a budget you set.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 check_price 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"@p2flux/mcp"
]
}
}
}可執行的套件
0.3.1stdio遠端端點
https://agent.p2flux.com/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢find_paid_content(query)
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.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 100,
"description": "Words to look for, e.g. \"soup recipes\". Empty lists the newest sites."
}
},
"required": [
"query"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_price(url, access_tokens)
See what a web page costs for an AI agent, without paying.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"description": "The page address (https)."
},
"access_tokens": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxItems": 10,
"description": "Access tokens exactly as get_paid_page gave them (host|token|seal). Each is sent only to the site it was given for; others are ignored."
}
},
"required": [
"url"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢request_paid_page(url, max_price, access_tokens)
Ask to read a paid web page. Returns a link the USER must open to approve the payment in their own wallet - show the link and the price to the user and wait. Then call get_paid_page with the request_id. Nothing is paid without the user approving it.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"description": "The page address (https)."
},
"max_price": {
"type": "string",
"maxLength": 12,
"description": "The most to pay for this page, in USDC, e.g. \"0.10\". Required, after asking the user, for anything above a few USDC (a subscription)."
},
"access_tokens": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxItems": 10,
"description": "Access tokens exactly as get_paid_page gave them (host|token|seal). Each is sent only to the site it was given for; others are ignored."
}
},
"required": [
"url"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_paid_page(request_id)
Get the text of a page after the user approved its payment (see request_paid_page).
輸入結構描述
{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"maxLength": 64,
"description": "The request_id from request_paid_page."
}
},
"required": [
"request_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據