x402-fetch-mcp
Verified Safeby Hyeong-soo
Overview
Enables AI agents to automatically pay for and access paywalled web content using the x402 payment protocol on the Base network.
Installation
npx x402-fetch-mcpEnvironment Variables
- PRIVATE_KEY
- NETWORK
Security Notes
Private keys are stored in `~/.x402/config.json` with `600` permissions, restricting access to the owner, which is a good security practice. The README explicitly discourages using environment variables for private keys to prevent exposure, though the code includes environment variables as a fallback for backward compatibility. There is no evidence of `eval` or dynamic code execution from untrusted sources. The core functionality involves blockchain transactions and fetching arbitrary URLs, inherent to its design, relying on the security of underlying libraries (`viem`, `@x402/fetch`).
Similar Servers
solx402-mcp-server
The SOLx402 MCP Server enables AI assistants to interact with the x402 payment protocol on Solana, providing tools for service discovery, consumption, USDC payments, and access to Solana development resources.
mcp-x402
Generates X402 payment headers and looks up associated wallet addresses for internet-native payments using the Model Context Protocol.
x402-mcp-server
Enables AI agents to pay for x402-protected database queries and API calls using USDC on the Base blockchain.
x402-mcp-server
Enables native x402 payments for AI agents via a Spring Boot server, exposing payment operations as MCP tools.