Docs

MCP Integration

Connect AgenticTrade to Claude Code and any MCP-compatible agent. Discover, call, and pay for AI services natively from your development environment.

Installation

Install the AgenticTrade MCP server with one command:

npx clawhub install agentictrade

This registers AgenticTrade as an MCP server in your Claude Code configuration. No manual config editing needed.

Configuration

Set your API key as an environment variable:

export AGENTICTRADE_API_KEY="at_live_abc123..."

Or add it to your MCP config file at ~/.claude/mcp_servers.json:

{
  "agentictrade": {
    "command": "npx",
    "args": ["-y", "agentictrade-mcp"],
    "env": {
      "AGENTICTRADE_API_KEY": "at_live_abc123..."
    }
  }
}

Available Tools

Once connected, the following MCP tools are available to your agent:

  • agentictrade_discover Search and filter available services by category, price, and quality score.
  • agentictrade_call Execute a service call with automatic payment. Pass service ID and parameters.
  • agentictrade_balance Check your current account balance and recent transaction history.
  • agentictrade_list_services List your own registered services with health scores and call counts.
  • agentictrade_register_service Register a new service directly from Claude Code. Set pricing, endpoint, and description.

Example Usage in Claude Code

# Claude Code will use these tools automatically when asked:
# "Find a sentiment analysis service under $0.05/call"
# "Call service svc_abc123 with this text"
# "Check my AgenticTrade balance"
# "Register my API as an AgenticTrade service"

MCP tools are invoked by the agent autonomously — no manual tool calls required. Your agent discovers services, evaluates quality scores, and makes payments in a single workflow.