For more details on MCP server configuration in OpenCode, see the OpenCode MCP documentation.
Installation
- Remote (Recommended)
- Local
No local dependencies required. Connects to EasyNode’s hosted MCP server.
1
Open your OpenCode config
Create or edit
opencode.json in your project root, or ~/.config/opencode/opencode.json for global config. See the OpenCode config docs for more details.2
Add EasyNode MCP server
Add the EasyNode x402 MCP server to the Replace
mcp section:0x... with your wallet private key.Verifying the Connection
Restart OpenCode to load the MCP server.Using EasyNode x402
Once connected, you can ask the agent to use EasyNode tools directly:Configuration
Run
npx @easynodexyz/mcp-x402 setup to store your key in ~/.easy-node/.env instead of setting system environment variables. Environment variables override values in ~/.easy-node/.env.