- Docs
- Developer Kit
- Mcp Guide
MCP Server Setup Guide
Step-by-step guide to configuring the hosted Dual MCP server in Claude Desktop, Cursor, and Claude Code.
A step-by-step guide to connecting your AI assistant to the hosted Dual MCP server. No local Node.js install is required. Configure your client, add an API key, and the agent can immediately work with templates, objects, actions, wallets, webhooks, and sequencer data.
Prerequisites
- A Dual account
- A Dual API key from the Dual Console
- An MCP-compatible client such as Claude Desktop, Cursor, or Claude Code
The hosted endpoint is https://mcp-testnet.dual.network/mcp.
Authentication
The hosted MCP server expects your API key in the X-API-Key header.
Option A: API Key
Recommended for persistent access and automation.
Option B: Interactive Login
If your client supports it, the agent can also use dual_login to authenticate for the current session.
Client Configuration
Claude Desktop
Add the following to:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{"mcpServers": {"dual": {"url": "https://mcp-testnet.dual.network/mcp","headers": {"X-API-Key": "your-api-key"}}}}
Cursor
Add the same MCP definition to .cursor/mcp.json:
{"mcpServers": {"dual": {"url": "https://mcp-testnet.dual.network/mcp","headers": {"X-API-Key": "your-api-key"}}}}
Claude Code
Add the hosted server from the terminal:
claude mcp add dual --transport sse https://mcp-testnet.dual.network/mcp
Then provide the API key via your Claude Code configuration or environment setup.
Usage Examples
Create a Reward Token
"Create a redeemable reward token called BrandPoints with a 1 million supply."
Typical tool flow:
dual_create_templatedual_create_action_typedual_create_facedual_execute_action
Monitor Platform Activity
"Show me the latest sequencer batch and current public stats."
Typical tool flow:
dual_public_get_statsdual_list_batchesdual_list_checkpoints
Set Up Webhooks
"Create a webhook for token transfers and send a test payload."
Typical tool flow:
dual_create_webhookdual_test_webhookdual_list_webhooks
Troubleshooting
Authentication required
Confirm your API key is present and that the client is sending it as X-API-Key.
Tools not appearing
Restart the client after editing configuration and verify the MCP server entry points to https://mcp-testnet.dual.network/mcp.
Rate limit exceeded
Retry after a pause, or batch related operations when possible.