Skip to main content
Glama
CJ Affiliate Link Resolver and MCP

CJ Affiliate Link Resolver and MCP

This independent publisher tool uses the CJ Affiliate Link Search API to find links for a specific destination. Run it locally from the command line or through a Model Context Protocol (MCP) client.

Key Features

  • Check advertiser relationships, promotional properties, tracking hosts, and merchant domains.

  • Keep a CJ-issued tracking link intact when it already points to the exact page.

  • Construct a same-host deep link when the offer permits it.

  • Return portal_required with a reason when the search cannot confirm an eligible link.

Related MCP server: CJ MCP Server

Installation

From a checkout, install with Python 3.11 or later in a virtual environment.

python -m pip install .

Usage

Configure your CJ token, then substitute your destination and CJ IDs. Credential setup

cj-affiliate "https://merchant.example/a-page" --website-id 12345 --link-id 67890

A resolved result includes the tracking URL as JSON.

Documentation

Start with the documentation home, or jump to getting started, configuration, the API reference, or troubleshooting.

Support

File a GitHub issue.

Contributing

See the project setup, the shared contributing guide, and the code of conduct.

License

This project is licensed under the MIT License.

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of misselection between competing tools. Its purpose (resolving an exact HTTPS merchant page to a joined CJ affiliate link) is clearly stated and non-overlapping by construction.

    Naming Consistency4/5

    The single name resolve_cj_link follows a clean verb_noun_snake_case convention that would scale predictably to siblings like lookup_advertiser or list_links. Consistency cannot be fully demonstrated with only one tool, so it is not a perfect 5.

    Tool Count3/5

    One tool is thin even for a narrowly scoped resolver; the description implies supporting lookups (Website ID, Link ID, Advertiser ID discovery) that have no tools. The single tool does earn its place for the core resolve operation, but the surface feels bare.

    Completeness3/5

    The core resolution operation is covered, but the tool expects the agent to already know a Website ID or optionally a Link/Advertiser ID, with no tools to discover or validate those identifiers. There is also no way to handle the portal_required outcome beyond reporting failure, leaving an agent at a dead end when configuration is missing.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables scanning web pages and entire domains to identify broken links, checking hyperlinks, images, scripts, and other resources. Provides comprehensive link validation with robots.txt compliance and detailed reporting of link status across single pages or complete websites.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides comprehensive access to the Commission Junction affiliate network API for both publishers and advertisers. It enables users to manage affiliate links, track commissions, search for products, and handle order conversions through natural language interfaces.
      5
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables read-only discovery and verification of products across droplinked's KYB-attested merchant network via tools for inventory, merchant, and brand attestation lookups.
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a multilingual, region-aware brand catalogue and click-through URL generation for MCP-compatible agents, enabling commerce recommendations with attribution tracking.
      MIT