arcox-mcp
v0.1.14
Published
ARCOX DEX MCP server and terminal agent for retail swap, bridge, send, ARCOX Pay invoices, balances, history, retry bridge, and agentic jobs.
Maintainers
Readme
ARCOX MCP
ARCOX MCP is a local MCP server and terminal agent for ARCOX DEX retail flows.
It exposes tools for:
- Wallet balances across EOA, Circle proxy wallet, and Solana Devnet
- Swap quote and execution from the local EOA agent wallet by default, with optional Circle proxy wallet source
- Bridge quote and execution, including native ETH to Arc on verified Ethereum/Base Sepolia routers
- Send quote and execution
- ARCOX Pay invoice/payment request tools
- ARCOX Pay NOWPayments sandbox tools for create/status/simulated treasury flow
- ARCOX Intel tools that call ARCOX API x402 endpoints; MCP never stores
ARKHAM_API_KEYand never calls Arkham directly - Bridge retry and transaction history
- ARCOX Agentic Economy job actions
- ARCOX DEX UI/action map for agents
- Dynamic-style ARCOX docs search/read tools
Circle Agents Alignment
ARCOX MCP follows the Circle for Agents direction: USDC-native agent workflows, paid API readiness, and quote-before-execute safety. Current support is:
- EOA agent wallet swap/send/bridge/payment using the user's local
AGENT_PRIVATE_KEY. - Circle proxy wallet support only when a tool is explicitly called with
source="circle". - ARCOX Pay invoice/payment request tools for public USDC payment links on Arc Testnet.
- x402/Circle Gateway Nanopayments readiness docs and metadata only.
ARCOX does not claim live gas-free nanopayments or private payments. Those remain future integration work.
Install
npm install -g arcox-mcpOr run without global install:
npx arcox-mcpEnvironment
Create a working folder on the user's computer:
mkdir -p ~/.arcox
nano ~/.arcox/.env
chmod 600 ~/.arcox/.envMinimum EVM setup:
AGENT_PRIVATE_KEY=0x...
ARC_RPC=https://rpc.testnet.arc.network/
ARCOX_API_URL=https://arc-dex-bice.vercel.appOptional Solana Devnet setup:
SOLANA_PRIVATE_KEY=[1,2,3,...]
SOLANA_DEVNET_RPC=https://api.devnet.solana.comOptional safety limits:
ARCOX_MAX_TX_USDC=10
ARCOX_DAILY_LIMIT_USDC=50
ARCOX_MAX_TX_NATIVE=0.1Native bridge examples:
bridge 0.001 ETH from Base Sepolia to Arc
bridge 0.001 ETH from Ethereum Sepolia to ArcNative bridge uses the local EOA agent wallet only. Circle Wallet source supports USDC bridge routes, not native ETH.
When installed globally, run commands from ~/.arcox so the local .env file is loaded:
cd ~/.arcox
arcox-agent statusMCP Config
Codex
Add an MCP server entry that runs:
arcox-mcpExample config shape:
{
"mcpServers": {
"arcox": {
"command": "arcox-mcp",
"args": [],
"env": {
"ARCOX_MCP_DEBUG": "arcox-mcp.log"
}
}
}
}Hermes
hermes mcp add arcox -- arcox-mcpIf Hermes uses a profile config, make sure args is an array, not a string:
mcp_servers:
arcox:
command: arcox-mcp
args: []Safe Execution Flow
All value-moving tools require a quote/preview first:
- Call quote tool.
- Show preview to the user.
- User confirms with exactly
yesorya. - Call execute tool with
confirmed=true, the exactpreviewId, andconfirmationText.
The agent must not skip the preview step.
Tools
arcox_wallet_balancesarcox_transaction_historyarcox_quote_swaparcox_execute_swaparcox_quote_bridgearcox_execute_bridgearcox_quote_sendarcox_execute_sendarcox_create_payment_requestarcox_get_payment_requestarcox_quote_payment_requestarcox_pay_payment_requestarcox_check_payment_statusarcox_simulate_circle_webhookarcox_quote_eco_route_paymentarcox_retry_bridgearcox_route_statusarcox_ui_maparcox_action_planarcox_search_docsarcox_read_docarcox_agent_statusarcox_agent_job
ARCOX Intel x402 service coverage:
arcox_intel_get_addresssupportsservice:basic,all,enriched,balances,counterparties,flows,history,volume,portfolio.arcox_intel_get_txsupportsservice:basic,transfers.arcox_intel_get_entitysupportsservice:basic,summary,balances,flows.arcox_intel_get_tokensupportsservice:basic,market,holders,top-flow,trending,top,contract,contract-holders.
Circle Gateway Nanopayments Readiness
ARCOX MCP understands Circle Gateway Nanopayments as a future x402 rail:
- API returns
402 Payment Required. - Buyer signs an offchain EIP-3009 authorization.
- Buyer retries with the proof.
- Gateway batch settlement is future work for ARCOX.
Do not tell users gas-free nanopayments are live. Current ARCOX Pay invoices remain public USDC payment links on Arc Testnet.
CLI Examples
arcox-agent status
arcox-agent "show all wallet balances"
arcox-agent "quote swap 1 eurc to usdc from eoa"
arcox-agent "quote bridge 1 usdc from arc to base"
arcox-agent "send 1 eurc from eoa to 0x..."
arcox-agent "create payment request 10 usdc to 0xMerchant for AI agent setup"
arcox-agent "quote payment invoice inv_..."
arcox-agent "retry bridge 0xBURN_TX from arbitrum sepolia to arc"For execution, inspect the preview first and then confirm.
ARCOX Pay invoice payment uses quote-before-execute. The execute call must pass the quoted previewId and the same invoice amount, token, and merchant address from previewArgs.
Swap uses EOA by default. To use the Circle proxy wallet, the tool call must explicitly include source="circle" in both quote and execute.
Security
- Private keys stay on the user's computer in
.env. - ARCOX DEX web UI does not receive the private key.
- MCP execution is local to the user's agent process.
arcox-agent statusreportsenvSecurityWarningswhen the.envfile is readable by group/other users.- Keep
.envoutside synced folders and never paste private keys into chat.
