The Modexia MCP server provides a standardized interface for AI agents (like Claude Desktop) to interact with the Modexia payment network using natural language tools.
The easiest way to run the server is using uvx, which handles all dependencies automatically.
uvx modexia-mcpYou must provide your Modexia API key via env vars. We recommend using a Testnet key for development.
MODEXIA_API_KEYAdd the following to your claude_desktop_config.json file to enable Modexia tools.
{
"mcpServers": {
"modexia": {
"command": "uvx",
"args": ["modexia-mcp"],
"env": {
"MODEXIA_API_KEY": "mx_test_..."
}
}
}
}get_balanceReturns the current USDC balance of the agent's wallet across all supported networks.
transferExecuted a USDC transfer to a specific wallet address or ENS name. Requires amount in USDC.
smart_fetchFetches content from x402-enabled URLs. Automatically handles payment negotiation.
vault_gateDeposits or withdraws USDC from the agent's secure vault channels for higher liquidity.
Modexia MCP honors all spending policies configured in the Modexia Dashboard. Use session-based keys to restrict agent access in production environments.