AgentPay

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

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
89%
Naming quality
80%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~958Tokens (tool definitions)
~1.7 KBTypical response size
Moderate attention impact (0.75% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

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

Runnable packages

pypimcp-server-agentpay0.1.3stdio

Remote endpoints

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

What it can do

Tool inventory

Tools (4)

🟒 Read-only🟑 WriteπŸ”΄ Deleteβšͺ Unknown
🟒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.

Input Schema

{
  "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"
}

Output Schema

{
  "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.

Input Schema

{
  "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"
}

Output Schema

{
  "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.

Input Schema

{
  "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"
}

Output Schema

{
  "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.

Input Schema

{
  "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"
}

Output Schema

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

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded4 tools
verifiedversion not recorded4 tools
verifiedversion not recorded4 tools