Skip to main content
Glama

Arbitrum MCP Server

USAGE.md3.67 kB
# Arbitrum MCP Server Usage Guide ## Docker Configuration Examples ### Claude Desktop Configuration Add this to your Claude Desktop `claude_desktop_config.json`: ```json { "mcpServers": { "arbitrum-mcp": { "command": "docker", "args": ["run", "-i", "--rm", "arbitrum-mcp"] } } } ``` ### Cline/Claude Code Configuration Add this to your Cline configuration: ```json { "mcpServers": { "arbitrum-mcp": { "command": "docker", "args": ["run", "-i", "--rm", "arbitrum-mcp"] } } } ``` ### Continue.dev Configuration Add this to your Continue configuration: ```json { "mcp": { "arbitrum-mcp": { "command": ["docker", "run", "-i", "--rm", "arbitrum-mcp"] } } } ``` ## Common Usage Patterns ### Chain Status Monitoring **Get comprehensive status of any Arbitrum chain:** ``` comprehensive_chain_status --chainName "Xai" comprehensive_chain_status --chainName "Arbitrum One" comprehensive_chain_status --chainName "Nova" ``` **Check specific monitoring aspects:** ``` batch_posting_status --chainName "Xai" assertion_status --chainName "Arbitrum One" gas_status --chainName "Nova" ``` ### Chain Discovery **Find available chains:** ``` list_chains search_chains --query "Xai" search_chains --query "42161" chain_info --chainName "Xai" ``` ### Node Operations **Check node health and status:** ``` node_health --chainName "Xai" sync_status --chainName "Arbitrum One" arbos_version --chainName "Nova" ``` ### Account and Transaction Operations **Check balances and transactions:** ``` get_balance_ether --address "0x..." --chainName "Xai" get_transaction --txHash "0x..." --chainName "Arbitrum One" is_contract --address "0x..." --chainName "Nova" ``` ## Natural Language Examples The MCP server responds well to natural language queries: - **"What is the current status of Xai?"** → `comprehensive_chain_status` - **"Are batches being posted for Arbitrum One?"** → `batch_posting_status` - **"Check gas prices on Nova"** → `gas_status` - **"What's the ArbOS version for Xai?"** → `arbos_version` - **"Show me all available chains"** → `list_chains` - **"Find chains with 'arbitrum' in the name"** → `search_chains` ## Troubleshooting ### Docker Issues **Container not responding:** ```bash # Test Docker container manually echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | docker run -i --rm arbitrum-mcp ``` **Rebuild if needed:** ```bash npm run build npm run docker:build ``` ### MCP Client Issues **Check MCP client logs** for connection errors or tool execution failures. **Verify Docker is running** and the image exists: ```bash docker images | grep arbitrum-mcp ``` ### Chain-Specific Issues **ArbOS version not available:** Some public RPC endpoints don't support ArbOS version queries. This is expected and the tool will return "Unknown". **Monitoring requires contract addresses:** For custom monitoring, you may need to provide contract addresses manually if chain auto-resolution fails. ## Advanced Usage ### Custom RPC URLs You can override default RPC URLs: ``` comprehensive_chain_status --rpcUrl "https://your-custom-rpc.com" --chainName "Custom Chain" ``` ### Direct Contract Address Usage For maximum control, specify contract addresses directly: ``` batch_posting_status \ --rpcUrl "https://xai-chain.net/rpc" \ --parentRpcUrl "https://arb1.arbitrum.io/rpc" \ --sequencerInboxAddress "0x995a9d3ca121D48d21087eDE20bc8acb2398c8B1" \ --bridgeAddress "0x7dd8A76bdAeBE3BBBaCD7Aa87f1D4FDa1E60f94f" ``` This setup provides maximum compatibility and ease of use across different MCP clients and operating systems.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dewanshparashar/arbitrum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server