Skip to main content

MCP server for AgenticTrade — AI agent API marketplace discovery, service calls, and billing

Project description

AgenticTrade MCP Server

An MCP (Model Context Protocol) server that connects AI agents to the AgenticTrade marketplace — discover, call, and pay for API services.

What is AgenticTrade?

AgenticTrade is an API marketplace designed for AI agents. Instead of hardcoding API keys and endpoints, your agent discovers services at runtime, calls them through a payment proxy, and pays per call in USDC. This MCP server exposes the marketplace as tools that any MCP-compatible agent can use.

Tools

Tool Description Auth Required
discover_services Search/browse available API services No
get_service_details Get full details of a specific service No
call_service Call a service through the payment proxy Yes
get_balance Check your agent's USDC balance Yes
list_categories List all service categories No

Installation

pip

pip install agentictrade-mcp

uv (recommended)

uv pip install agentictrade-mcp

From source

git clone https://github.com/judyailab/agentictrade-mcp.git
cd agentictrade-mcp
pip install -e .

Configuration

Environment Variables

Variable Required Description
AGENTICTRADE_BASE_URL No API base URL (default: https://agentictrade.io)
AGENTICTRADE_API_KEY For paid calls Your API key in key_id:secret format
AGENTICTRADE_BUYER_ID For balance checks Your buyer/agent ID

Get an API Key

  1. Visit agentictrade.io/api-docs
  2. Create a buyer key via POST /api/v1/keys
  3. Fund your account with USDC, crypto, or PayPal

Usage

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "agentictrade": {
      "command": "agentictrade-mcp",
      "env": {
        "AGENTICTRADE_API_KEY": "your_key_id:your_secret",
        "AGENTICTRADE_BUYER_ID": "your_buyer_id"
      }
    }
  }
}

Cursor

Add to your MCP configuration in Cursor settings:

{
  "agentictrade": {
    "command": "agentictrade-mcp",
    "env": {
      "AGENTICTRADE_API_KEY": "your_key_id:your_secret"
    }
  }
}

Smithery

This server is available on the Smithery registry. Install via:

npx @smithery/cli install agentictrade-mcp

Augment Code

Register as an MCP tool source in Augment Code settings. The server runs on stdio transport and is compatible with any MCP client.

Programmatic (Python)

from agentictrade_mcp.server import mcp

# Run with stdio transport (default)
mcp.run(transport="stdio")

# Or with SSE for remote connections
mcp.run(transport="sse", port=8080)

Tool Details

discover_services

Search the marketplace for APIs your agent can use.

Parameters:
  query        (string)  — Search keywords (e.g., "crypto scanner")
  category     (string)  — Filter by category (e.g., "crypto", "data")
  max_results  (int)     — Max results, 1-100 (default: 20)

Returns: List of services with id, name, description, pricing, quality scores

get_service_details

Get complete information about a specific service.

Parameters:
  service_id  (string)  — Service UUID from discover_services

Returns: Full service info including endpoints, pricing, payment method, tags

call_service

Make a paid API call through the AgenticTrade proxy.

Parameters:
  service_id  (string)  — Service UUID to call
  api_key     (string)  — API key (or set AGENTICTRADE_API_KEY env var)
  payload     (string)  — JSON string of the request body
  path        (string)  — Optional sub-path (e.g., "/api/scan")
  method      (string)  — HTTP method (default: "POST")

Returns: Provider response with billing info (usage_id, amount, latency)

get_balance

Check available funds before making calls.

Parameters:
  api_key   (string)  — API key (or set AGENTICTRADE_API_KEY env var)
  buyer_id  (string)  — Buyer ID (or set AGENTICTRADE_BUYER_ID env var)

Returns: Current balance, total deposited, total spent (all in USDC)

list_categories

Browse what types of APIs are available.

Parameters: none

Returns: List of categories with service counts

Example Agent Flow

1. list_categories()
   → See available categories: crypto, data, ai, ...

2. discover_services(query="crypto price", category="crypto")
   → Find services: CoinSifter Scanner (id: svc-abc, $0.01/call)

3. get_service_details(service_id="svc-abc")
   → Confirm pricing, check free tier, read description

4. get_balance()
   → Balance: $42.50 USDC

5. call_service(service_id="svc-abc", payload='{"symbol": "BTC"}')
   → Response: { "price": 67000, ... }
   → Billing: $0.01 deducted

Development

# Clone and install dev dependencies
git clone https://github.com/judyailab/agentictrade-mcp.git
cd agentictrade-mcp
pip install -e ".[dev]"

# Run tests
pytest

# Run server locally
AGENTICTRADE_BASE_URL=https://agentictrade.io agentictrade-mcp

License

MIT License. See LICENSE.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentictrade_mcp-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentictrade_mcp-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file agentictrade_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: agentictrade_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentictrade_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 910891d794dd257b815e283c23fcbcb83611d844a6fe091fceff30bbeb55f3cd
MD5 82e062a380e0ef316f89754e06221542
BLAKE2b-256 6030fdd27c0f7688601ecaa4dfb02fcfac0f5e0fd2ac66a92849799a7f1ea465

See more details on using hashes here.

File details

Details for the file agentictrade_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentictrade_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6473dd6813df1a7a3b3992f3cb6921a9e22f33f758a92144bc4ecca180fc172
MD5 d9985584420ac390a2ea5feecea1c3cd
BLAKE2b-256 d4aa91e1a2355d9e3e16190ad80af6462854d65ba8614d7fdbb6892ff5048552

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page