How to integrate Tapfiliate MCP with Codex

Connect Codex to Tapfiliate MCP. List all active affiliates for this month, retrieve payout methods for affiliate jane doe, and more using natural language, with authentication handled for you.

Tapfiliate logoTapfiliate
Api Key

Tapfiliate is an affiliate and referral tracking platform for businesses. It helps companies efficiently manage, track, and grow their affiliate programs.

40 Tools

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With the Tapfiliate MCP integration, Codex can create and manage affiliates, track conversions and commissions, review balances, record payments, and organize affiliate groups, all without leaving the terminal or the app, whichever you prefer.

Also integrate Tapfiliate with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1500+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Tapfiliate MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

Try it

Ask Codex for a Tapfiliate task. The first time, Composio asks you to connect your Tapfiliate account.

For example, ask it to:

  • "List all active affiliates for this month"
  • "Retrieve payout methods for affiliate Jane Doe"
  • "Create a payment for affiliate ID 12345"

What is the Tapfiliate MCP server, and what's possible with it?

The Tapfiliate MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Tapfiliate account. It provides structured and secure access to your affiliate and referral program data, so your agent can perform actions like managing affiliates, tracking commissions, handling payments, and organizing programs on your behalf.

  • Affiliate management and insights: Instantly list all affiliates, retrieve detailed affiliate profiles, or remove affiliates as your programs evolve.
  • Commission tracking and reporting: Let your agent fetch comprehensive commission records, apply filters, and access historical payouts for monitoring performance.
  • Automated payment handling: Effortlessly list, retrieve, or create payments to credit affiliates, ensuring accurate and timely compensation.
  • Payout method discovery: Retrieve available payout options for affiliates to streamline compensation workflows and support diverse payment needs.
  • Program organization and overview: Quickly list all affiliate programs and assets, helping you stay on top of your marketing initiatives and campaign structure.

Conclusion

You've successfully integrated Tapfiliate with Codex using Composio's MCP server. Now you can interact with Tapfiliate directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Tapfiliate operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1500+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Tapfiliate operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
TOOLS

Supported Tools

Every Tapfiliate action and event your agent gets out of the box.

Retrieve an Affiliate

Retrieve selected details of an affiliate by affiliate ID, including name, email, company name, metadata, and creation time.

Cancel a Payment

Tool to cancel a specific payment.

List all commissions

List commission records with optional filters and pagination.

Create an Affiliate

Create a new affiliate account with contact details.

Create Affiliate Group

Tool to create a new affiliate group.

Create Affiliate Note

Tool to create a note for an affiliate.

Create Affiliate Prospect

Create an affiliate prospect to register a potential affiliate before they become a full affiliate.

Delete affiliate meta data

Tool to delete metadata by key for an affiliate.

Delete an affiliate prospect

Tool to delete a specific affiliate prospect.

Delete an affiliate

Tool to delete a specific affiliate.

Get Affiliate Balances

Tool to retrieve an affiliate's balances across multiple currencies.

Get Affiliate Meta Data by Key

Tool to retrieve specific metadata value by key for an affiliate.

Get Affiliate Prospect

Retrieve details of a specific Tapfiliate affiliate prospect by prospect ID.

Retrieve a Program

Tool to retrieve details of a specific program.

List affiliate custom fields

List the custom field definitions configured for affiliate profiles in Tapfiliate.

List all affiliate groups

List the first page of affiliate groups in your Tapfiliate account.

List Affiliate Meta Data

Tool to retrieve metadata for a specific affiliate.

List affiliate notes

List a page of notes for a specific affiliate by ID.

List affiliate's payments

Tool to list all payments for a specific affiliate.

List Affiliate Programs

List the programs associated with a specified affiliate, including past affiliations.

List Affiliate Prospects

List Tapfiliate affiliate prospects, optionally filtering by email, referral code, program, or affiliate group.

List all affiliates

Tool to list all affiliates.

List all balances

Tool to list all outstanding affiliate balances.

List conversions

Tool to list all conversions.

List all customers

Tool to list all customers with optional filtering by program, customer ID, affiliate, or date range.

List program affiliates

List a page of affiliates in a specific program, with optional filters for source ID, email, parent ID, or affiliate group ID.

List program bonuses

List a page of performance bonuses configured for a specified program.

List program commission types

List commission types for a specific program.

List program MLM levels

List the MLM levels configured for a specified program.

Create a Payment

Create a Tapfiliate payment record for an affiliate after payment has been made through a payment provider.

List all payments

Tool to list all payments.

Retrieve a Payment

Tool to retrieve details of a specific payment.

List all payout methods

List the payout methods configured for a specified affiliate.

List all programs

List the first page of programs, optionally filtered by asset ID.

Remove affiliate group from affiliate

Tool to remove affiliate group from an affiliate.

Set Affiliate Group

Tool to set the affiliate group for a specific affiliate.

Set Affiliate Meta Data

Tool to update (replace) metadata for an affiliate.

Set Affiliate Metadata by Key

Tool to set or update a specific metadata field for an affiliate by key.

Set Affiliate Parent

Tool to set a parent affiliate relationship for a child affiliate.

Update Affiliate Group

Update the title of an existing affiliate group.

FAQ

Frequently asked questions

With a standalone Tapfiliate MCP server, the agents and LLMs can only access a fixed set of Tapfiliate tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Tapfiliate and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Tapfiliate tools.

Yes, absolutely. You can configure which Tapfiliate scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Tapfiliate data and credentials are handled as safely as possible.

Start with Tapfiliate.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Tapfiliate tool your agent needs.Free to start.

Start building