AgentPay

x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
89%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~958token 数(工具定义)
~1.7 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.75%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "agentpay": {
      "command": "uvx",
      "args": [
        "mcp-server-agentpay"
      ]
    }
  }
}

可运行的软件包

pypimcp-server-agentpay0.1.3stdio

远程端点

https://agentpay-xhs-production.up.railway.app/mcpstreamable-http

它能做什么

工具清单

工具(4)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢xhs_get_note_detail(note, note_type)

Fetch one Xiaohongshu (小红书) note by share URL or 24-char note_id and return title, description, author, engagement stats, images, and video URL as JSON. Call this when the user pastes an xiaohongshu.com/explore link or a note id. Settles ~0.01 USDC via x402 on each successful call.

输入模式

{
  "type": "object",
  "properties": {
    "note": {
      "description": "Xiaohongshu note share URL or 24-character hex note_id. Example: https://www.xiaohongshu.com/explore/6a95a1f30000000026019ab7",
      "title": "Note",
      "type": "string"
    },
    "note_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional media hint to speed lookup: image, video, 图文, or 视频.",
      "title": "Note Type"
    }
  },
  "required": [
    "note"
  ],
  "title": "xhs_get_note_detailArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "xhs_get_note_detailOutput"
}
🟢xhs_get_user_notes(user_id, cursor)

List posted notes for a Xiaohongshu user_id (paginated). Returns note summaries and next_cursor for pagination. Use when the user asks for a creator's recent posts. Settles ~0.01 USDC via x402 per page.

输入模式

{
  "type": "object",
  "properties": {
    "user_id": {
      "description": "Xiaohongshu user ID string from a profile or prior note author.",
      "title": "User Id",
      "type": "string"
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Pagination cursor from the previous response's next_cursor. Omit or null for the first page.",
      "title": "Cursor"
    }
  },
  "required": [
    "user_id"
  ],
  "title": "xhs_get_user_notesArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "xhs_get_user_notesOutput"
}
🟢china_wholesale_pricing_query(keyword, category_id, max_price)

Search factory-direct wholesale pricing samples for a product keyword (1688 / Yiwu style catalog). Returns items with MOQ, unit price USD, factory location, and supplier verification flags. Use for China sourcing research. Settles ~0.01 USDC via x402 per query.

输入模式

{
  "type": "object",
  "properties": {
    "keyword": {
      "description": "Product search query in English or Chinese, e.g. 'wireless earbuds' or '蓝牙耳机'.",
      "title": "Keyword",
      "type": "string"
    },
    "category_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional category filter ID when the user specifies a catalog category.",
      "title": "Category Id"
    },
    "max_price": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional maximum target unit price in USD to filter results.",
      "title": "Max Price"
    }
  },
  "required": [
    "keyword"
  ],
  "title": "china_wholesale_pricing_queryArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "china_wholesale_pricing_queryOutput"
}
🟢agentpay_payment_status(include_wallet)

Return AgentPay payment configuration without charging: network, price, spending limit, payment mode, gateway URL, and agent wallet address. Call this before paid tools to verify the wallet is configured, or after a payment error.

输入模式

{
  "type": "object",
  "properties": {
    "include_wallet": {
      "default": true,
      "description": "If true (default), include the derived agent wallet address from AGENT_PRIVATE_KEY.",
      "title": "Include Wallet",
      "type": "boolean"
    }
  },
  "title": "agentpay_payment_statusArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "agentpay_payment_statusOutput"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具