402ok-mcp
Verified Safeby payincom
Overview
Provides a Model Context Protocol (MCP) server middleware to integrate HTTP 402 Payment Required for AI tools, supporting multi-network blockchain payments with a focus on XLayer/OKX.
Installation
No command providedEnvironment Variables
- OKX_API_KEY
- OKX_SECRET_KEY
- OKX_PASSPHRASE
- URL
Security Notes
The project uses standard cryptographic practices (HMAC SHA256) for OKX API authentication and relies on environment variables for sensitive credentials (API keys, secret keys, passphrases). The design separates payment verification/settlement to external facilitators, reducing direct blockchain interaction risk for the server. However, `makeOKXRequest` logs full request headers (which may contain API keys) and body to console, which could pose an information leakage risk in a production environment if logs are not securely managed. The JSON parsing of base64-encoded payment metadata is a standard practice but should be handled robustly against malformed inputs.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
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 native x402 payments for AI agents via a Spring Boot server, exposing payment operations as MCP tools.