Cursor
Configure the EmbarkAI MCP server in Cursor IDE to give your AI assistant blockchain capabilities.
1. Open MCP settings
In Cursor, open Settings and navigate to the MCP section, or open the command palette (Cmd+Shift+P / Ctrl+Shift+P) and search for “MCP”.
Alternatively, create or edit the .cursor/mcp.json file in your project root:
{
"mcpServers": {
"embarkai": {
"command": "npx",
"args": ["-y", "@embarkai/mcp"],
"env": {
"EMBARK_API_KEY": "your_api_key_here",
"EMBARK_WALLET_ID": "your_wallet_id_here",
"EMBARK_CHAIN_ID": "2030232745"
}
}
}
}Replace your_api_key_here and your_wallet_id_here with your credentials from the EmbarkAI dashboard .
For a global configuration that applies to all projects, use ~/.cursor/mcp.json.
2. Verify the connection
After saving the config, Cursor will start the MCP server automatically. You should see the EmbarkAI tools listed in the MCP panel within settings.
If the server fails to start, check that:
- Node.js 18+ is installed
npxis accessible from your terminal- The API key and wallet ID are correct
3. Use in Cursor chat
Open Cursor’s AI chat (Agent or Composer mode) and try these prompts:
Check your wallet:
What is my EmbarkAI wallet address?
Check balance:
What is the native token balance of my smart wallet?
Switch networks:
Switch to Lumia Prisma mainnet and check my balance there.
Send tokens:
Transfer 0.5 LUMIA to 0xRecipientAddress
Cursor will show which MCP tools are being called and ask for approval before executing state-changing operations.
Troubleshooting
Server not starting:
- Run
npx -y @embarkai/mcpin a terminal with the environment variables exported to check for errors. - Make sure the JSON in
.cursor/mcp.jsonis valid.
Tools not appearing in chat:
- Restart Cursor after updating the MCP config.
- Check that you are using Agent or Composer mode, which support MCP tools.