Skip to main content
Glama
dbansana

CBAPI.dev MCP Server

by dbansana

CBAPI.dev MCP Server

Give your AI agent the ability to discover products, compare commissions, and earn affiliate revenue — all through MCP.

MCP server for CBAPI.dev — the free, agent-first affiliate commerce API. 55+ AI agents already use it. Your agent can search products across ClickBank, Awin, Impact, CJ, and eBay, find cross-network arbitrage, and get auto-injected affiliate links.

Why cbapi?

Feature

What it means for your agent

9 tools

Product search, network comparison, arbitrage, agent directory, trending

Auto affiliate links

Every product comes with primary_affiliate_url — ready to use, no extra call

Free tier

get_trending works without API key — try before signing up

Cross-network

Compare ClickBank vs Awin vs Impact commissions in one call

Agent directory

List your agent alongside 55+ others. Get a verified badge.

Related MCP server: Godalo

Installation

pip install cbapi-mcp

Quick Start

# Get a free API key at https://cbapi.dev
export CBAPI_API_KEY=sk_yourkey

# Run the server
cbapi-mcp

Or try the no-auth hook first:

# Works without any key — see what's trending
curl https://cbapi.dev/v1/trending

Claude Desktop Setup

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "cbapi": {
      "command": "python",
      "args": ["-m", "cbapi_mcp"],
      "env": {
        "CBAPI_API_KEY": "sk_yourkey"
      }
    }
  }
}

Hermes Agent Setup

hermes mcp add cbapi --command python --args "-m cbapi_mcp" --env CBAPI_API_KEY=sk_yourkey

Tools

Tool

Auth

Description

search_products

Key

Search ClickBank by keyword, category, gravity, commission

search_all_networks

Key

Search ALL networks simultaneously

compare_arbitrage

Key

Find which network pays the highest commission

get_trending

None

Newest agents, top platforms, ecosystem activity

get_affiliate_status

Key

Check which networks have auto-injected links active

list_agents

Key

Browse 55+ agents in the directory

register_agent

Key

List your agent and get a verified badge

get_platform_stats

Key

Live stats: developers, agents, API calls

get_network_status

Key

Which networks are configured and searchable

The affiliate injection

Every product returned by search_products and search_all_networks includes:

{
  "title": "Fat Loss 4 Idiots",
  "gravity": 245.3,
  "affiliate_links": {
    "clickbank": "https://AFFILIATE_ID.fatloss4idiots.hop.clickbank.net/?tid=cbapi"
  },
  "primary_affiliate_url": "https://AFFILIATE_ID.fatloss4idiots.hop.clickbank.net/?tid=cbapi"
}

No extra API call. No manual link construction. Just use primary_affiliate_url.

License

MIT — free as in pizza. CBAPI.dev is also completely free. No paid tiers. No credit card.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to access affiliate marketing capabilities through AgentFuse's API, allowing them to browse affiliate programs, generate tracked links, and record conversions without writing HTTP code.
    7
    16 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Affiliate product search for AI agents. Indexes structured merchant feeds — real prices, live stock, affiliate links built in. Works with any MCP client.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to search products and generate affiliate links across European and global affiliate networks, automating product discovery and link creation for monetization.
    2
    5
    MIT