mcp
Verified Safeby Cronos402
Overview
A Model Context Protocol (MCP) server providing x402 payment support for the Cronos blockchain, enabling payment-gated tool execution and USDC.e/CRO payments.
Installation
npm run devEnvironment Variables
- NODE_ENV
- PORT
- BETTER_AUTH_SECRET
- BETTER_AUTH_URL
- TRUSTED_ORIGINS
- GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- DATABASE_URL
- MCP_DATA_URL
- MCP_DATA_SECRET
- CRONOS_FACILITATOR_URL
- CRONOS_DEFAULT_NETWORK
Security Notes
The server implements a `SecurityHook` to remove sensitive headers and correctly loads secrets from environment variables. Wallet linking (`/api/wallets/link`) uses `viem` for signature verification, which is a standard and secure practice. The `X402WalletHook` explicitly prevents direct insecure private key usage for USDC.e payments by returning an error, acknowledging that proper wallet integration is a future 'TODO'. A notable concern is the reliance on the VLayer service for 'web proofs'; the `VLayer` module's README explicitly states this module performs no cryptographic verification of these proofs itself, delegating trust to the external service. The `/mcp` proxy endpoint utilizes `resolveTargetUrl` which parses target URLs from headers or query parameters, introducing a potential for Server-Side Request Forgery (SSRF) if `targetUrl` validation (specifically the domain filtering in `VLayerHook` if enabled) is not robustly configured. CORS is permissive in development but configurable for production via `TRUSTED_ORIGINS`. No `eval` or obvious malicious patterns were found in the provided code.
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 native x402 payments for AI agents via a Spring Boot server, exposing payment operations as MCP tools.
x402-mcp-server
Enables AI agents to pay for x402-protected database queries and API calls using USDC on the Base blockchain.