Back to Home
MetaMask icon

mcp-x402

Verified Safe

by MetaMask

Overview

Generates X402 payment headers and looks up associated wallet addresses for internet-native payments using the Model Context Protocol.

Installation

Run Command
yarn build && npx @modelcontextprotocol/inspector node build/index.js

Environment Variables

  • PRIVATE_KEY

Security Notes

The server prioritizes using a private key from `process.env.PRIVATE_KEY`. However, if this environment variable is not set, it will lazily generate a new Ethereum private key and store it in a `wallet.json` file in the current working directory. Storing private keys on disk is a significant security risk, especially in non-ephemeral or poorly secured environments, as it could lead to compromise of the signing wallet. The project acknowledges this as an 'Experimental ⚠️' feature and plans 'Configurable key management and signing' in its roadmap. No 'eval' or obvious malicious patterns were found.

Similar Servers

Stats

Interest Score22
Security Score7
Cost ClassLow
Stars2
Forks1
Last Update2026-01-01

Tags

MCPX402PaymentsWeb3Blockchain