agentsclimarketplace

X402 mcp caller

Skill Xyber-Labs/xyber-skills/skills/x402-mcp-caller

Use this skill to call MCP server tools with x402 crypto payment support. Enables testing and interacting with paid MCP services across multiple EVM blockchain networks (Base, Avalanche, SKALE, Ethereum, Optimism, Arbitrum, Polygon). Invoke when user wants to test MCP servers, make paid API calls, or interact with x402-enabled services.From its SKILL.md

Install
npx -y skills add Xyber-Labs/xyber-skills --skill x402-mcp-caller

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.9 KB, as published. Nobody here has run it

X402 MCP Tool Caller

This skill enables calling MCP (Model Context Protocol) server tools with automatic x402 payment handling. It supports paid services that require cryptocurrency payments on EVM-compatible blockchains.

When to Use

  • Testing MCP servers that implement x402 payment protocol
  • Making paid API calls to MCP services
  • Listing available tools on an MCP server
  • Interacting with x402-enabled services across different blockchain networks

Prerequisites

  • EVM_WALLET_PRIVATE_KEY environment variable must be set for paid calls
  • The wallet must have sufficient funds on the target network

Usage

The skill uses the script at scripts/mcp_x402_call.py.

List Available Tools

uv run scripts/mcp_x402_call.py <server_url> --list-tools

Call a Tool (Free)

uv run scripts/mcp_x402_call.py <server_url> <tool_name> '<json_arguments>'

Call a Tool (With Payment)

uv run scripts/mcp_x402_call.py <server_url> <tool_name> '<json_arguments>' --pay

Specify Network

uv run scripts/mcp_x402_call.py <server_url> <tool_name> '<json_arguments>' --pay --network <network>

Available networks: base, avalanche, skale, ethereum, optimism, arbitrum, polygon

Examples

# List tools on a server
uv run scripts/mcp_x402_call.py https://prod.mcp-lurky.xyber.inc/mcp-server/mcp/ --list-tools

# Search tweets with payment on Base network (default)
uv run scripts/mcp_x402_call.py https://prod.mcp-lurky.xyber.inc/mcp-server/mcp/ search_tweets '{"query": "AI"}' --pay

# Call tool with payment on Avalanche
uv run scripts/mcp_x402_call.py http://localhost:8113/mcp/ search_token_address '{"query": "ETH"}' --pay --network avalanche

# Call tool on SKALE network
uv run scripts/mcp_x402_call.py https://example.com/mcp/ some_tool '{"param": "value"}' --pay --network skale

Arguments Reference

ArgumentRequiredDescription
base_urlYesMCP server URL (e.g., https://server.com/mcp/)
tool_nameNoTool to call (omit to list tools)
argumentsNoJSON string with tool arguments (default: {})
--list-tools, -lNoList available tools
--pay, -pNoEnable x402 payment
--network, -nNoPreferred payment network

Response Handling

  • On success: Returns JSON response from the tool
  • On 402 Payment Required: Shows payment details (use --pay flag)
  • Payment transactions are logged with tx hash and network

See Also

  • references/x402-protocol.md - X402 payment protocol specification

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.