# How to integrate Tapfiliate MCP with Atomic Agent

```json
{
  "title": "How to integrate Tapfiliate MCP with Atomic Agent",
  "toolkit": "Tapfiliate",
  "toolkit_slug": "tapfiliate",
  "framework": "Atomic Agent",
  "framework_slug": "atomic-agent",
  "url": "https://composio.dev/toolkits/tapfiliate/framework/atomic-agent",
  "markdown_url": "https://composio.dev/toolkits/tapfiliate/framework/atomic-agent.md",
  "updated_at": "2026-08-11T13:15:21.958Z"
}
```

## Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,500+ apps through Composio, including Tapfiliate.
This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Tapfiliate account. See the [Atomic Agent documentation](https://atomicagent.io/docs/?cta_placement=atomic-agent-docs) for installation instructions.

## Also integrate Tapfiliate with

- [OpenAI Agents SDK](https://composio.dev/toolkits/tapfiliate/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/tapfiliate/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/tapfiliate/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/tapfiliate/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/tapfiliate/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/tapfiliate/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/tapfiliate/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/tapfiliate/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/tapfiliate/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/tapfiliate/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/tapfiliate/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/tapfiliate/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/tapfiliate/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/tapfiliate/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/tapfiliate/framework/autogen)

## TL;DR

### How Atomic Agent connects to Tapfiliate
Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.
Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

## Connect Tapfiliate to Atomic Agent

### Connect Tapfiliate to Atomic Agent
- Sign up or sign in to the [Composio dashboard](https://dashboard.composio.dev/?cta_placement=atomic-agent-api-key). Copy your API key.
- In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
- Ask Atomic Agent to do something in Tapfiliate. It searches Composio for the right tool.
- On first use, open the sign-in link returned in the chat. Connect your Tapfiliate account, then return to Atomic Agent to continue.
### Headless setup
Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

```bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
```

## 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.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `TAPFILIATE_AFFILIATES_RETRIEVE_AN_AFFILIATE` | Retrieve an Affiliate | Tool to retrieve details of a specific affiliate. Use when you have the affiliate_id and need full affiliate profile. |
| `TAPFILIATE_CANCEL_PAYMENT` | Cancel a Payment | Tool to cancel a specific payment. Use when you need to cancel a payment by its payment_id. |
| `TAPFILIATE_COMMISSIONS_LIST_ALL_COMMISSIONS` | List all commissions | Tool to retrieve all commissions. Use when you need to fetch commission records with optional filters and pagination after confirming valid API credentials. |
| `TAPFILIATE_CREATE_AFFILIATE` | Create an Affiliate | Tool to create a new affiliate account. Use when you need to register a new affiliate with their contact details. |
| `TAPFILIATE_CREATE_AFFILIATE_GROUP` | Create Affiliate Group | Tool to create a new affiliate group. Use when you need to organize affiliates into groups for management purposes. |
| `TAPFILIATE_CREATE_AFFILIATE_NOTE` | Create Affiliate Note | Tool to create a note for an affiliate. Use when you need to add a note or comment to an affiliate's profile. |
| `TAPFILIATE_CREATE_AFFILIATE_PROSPECT` | Create Affiliate Prospect | Tool to create an affiliate prospect. Use when you need to register a new potential affiliate before they become a full affiliate. |
| `TAPFILIATE_DELETE_AFFILIATE_META_DATA` | Delete affiliate meta data | Tool to delete metadata by key for an affiliate. Use when you need to remove a specific metadata field from an affiliate's profile. |
| `TAPFILIATE_DELETE_AFFILIATE_PROSPECT` | Delete an affiliate prospect | Tool to delete a specific affiliate prospect. Use when you need to remove an affiliate prospect by their affiliate_prospect_id. |
| `TAPFILIATE_DELETE_AN_AFFILIATE` | Delete an affiliate | Tool to delete a specific affiliate. Use when you need to remove an affiliate by their affiliate_id after confirming it exists. |
| `TAPFILIATE_GET_AFFILIATE_BALANCES` | Get Affiliate Balances | Tool to retrieve an affiliate's balances across multiple currencies. Use when you need to check an affiliate's current balance state. |
| `TAPFILIATE_GET_AFFILIATE_META_DATA_BY_KEY` | Get Affiliate Meta Data by Key | Tool to retrieve specific metadata value by key for an affiliate. Use when you need to fetch a single custom metadata field. |
| `TAPFILIATE_GET_AFFILIATE_PROSPECT` | Get Affiliate Prospect | Tool to retrieve details of a specific affiliate prospect. Use when you have the affiliate_prospect_id and need prospect information. |
| `TAPFILIATE_GET_PROGRAM` | Retrieve a Program | Tool to retrieve details of a specific program. Use when you have the program_id and need full program information. |
| `TAPFILIATE_LIST_AFFILIATE_CUSTOM_FIELDS` | List affiliate custom fields | Tool to get custom fields configured for affiliates. Use to retrieve the list of custom field definitions available for affiliate profiles. |
| `TAPFILIATE_LIST_AFFILIATE_GROUPS` | List all affiliate groups | Tool to list all affiliate groups. Use to retrieve all affiliate groups in your Tapfiliate account. |
| `TAPFILIATE_LIST_AFFILIATE_META_DATA` | List Affiliate Meta Data | Tool to retrieve metadata for a specific affiliate. Use when you need to fetch custom metadata key-value pairs associated with an affiliate. |
| `TAPFILIATE_LIST_AFFILIATE_NOTES` | List affiliate notes | Tool to list notes for a specific affiliate. Use when you need to retrieve all notes associated with an affiliate by their ID. |
| `TAPFILIATE_LIST_AFFILIATE_PAYMENTS` | List affiliate's payments | Tool to list all payments for a specific affiliate. Use when you need to retrieve payment records for a particular affiliate by their affiliate_id. |
| `TAPFILIATE_LIST_AFFILIATE_PROGRAMS` | List Affiliate Programs | Tool to list all programs (affiliations) associated with a specific affiliate. Use when you need to see which programs an affiliate is enrolled in. |
| `TAPFILIATE_LIST_AFFILIATE_PROSPECTS` | List Affiliate Prospects | Tool to list all affiliate prospects. Use when you need to retrieve prospects with optional filters by email, referral_code, program_id, or group_id. |
| `TAPFILIATE_AFFILIATES_LIST_ALL_AFFILIATES` | List all affiliates | Tool to list all affiliates. Use after confirming API access to fetch affiliates with optional filters. |
| `TAPFILIATE_LIST_BALANCES` | List all balances | Tool to list all outstanding affiliate balances. Use when you need to retrieve balance records for affiliates, typically before processing payments. |
| `TAPFILIATE_LIST_CONVERSIONS` | List conversions | Tool to list all conversions. Use to fetch conversion records with optional filters for program, affiliate, date range, and pending status. |
| `TAPFILIATE_LIST_CUSTOMERS` | List all customers | Tool to list all customers with optional filtering by program, customer ID, affiliate, or date range. Use after verifying API credentials to fetch customer records. |
| `TAPFILIATE_LIST_PROGRAM_AFFILIATES` | List program affiliates | Tool to list all affiliates in a specific program. Use when you need to fetch affiliates enrolled in a particular program with optional filters for source_id, email, parent_id, or affiliate_group_id. |
| `TAPFILIATE_LIST_PROGRAM_BONUSES` | List program bonuses | Tool to list all bonuses for a specific program. Use when you need to retrieve performance bonuses configured for a program. |
| `TAPFILIATE_LIST_PROGRAM_COMMISSION_TYPES` | List program commission types | Tool to list commission types for a specific program. Use when you need to retrieve all commission types configured for a program after confirming valid API credentials. |
| `TAPFILIATE_LIST_PROGRAM_MLM_LEVELS` | List program MLM levels | Tool to list MLM levels for a program. Use when you need to retrieve the multi-level marketing commission structure for a specific program. Returns empty array if no MLM levels are configured. |
| `TAPFILIATE_PAYMENTS_CREATE_A_PAYMENT` | Create a Payment | Tool to create a payment. Use when you need to credit an affiliate after confirming transaction details. |
| `TAPFILIATE_PAYMENTS_LIST_ALL_PAYMENTS` | List all payments | Tool to list all payments. Use when you need to retrieve paginated payment records after confirming API credentials. |
| `TAPFILIATE_PAYMENTS_RETRIEVE_A_PAYMENT` | Retrieve a Payment | Tool to retrieve details of a specific payment. Use when you have the payment_id and need full payment information. |
| `TAPFILIATE_PAYOUT_METHODS_LIST_ALL_PAYOUT_METHODS` | List all payout methods | Tool to retrieve a list of all payout methods for an affiliate. Use when fetching available payment options for an affiliate. |
| `TAPFILIATE_PROGRAMS_LIST_ALL_PROGRAMS` | List all programs | Tool to list all programs. Use after confirming API credentials to fetch program list with optional asset filters. |
| `TAPFILIATE_REMOVE_AFFILIATE_GROUP` | Remove affiliate group from affiliate | Tool to remove affiliate group from an affiliate. Use when you need to unassign an affiliate from their current group, setting their affiliate_group_id to null. |
| `TAPFILIATE_SET_AFFILIATE_GROUP` | Set Affiliate Group | Tool to set the affiliate group for a specific affiliate. Use when you need to assign or change an affiliate's group membership. |
| `TAPFILIATE_SET_AFFILIATE_META_DATA` | Set Affiliate Meta Data | Tool to update (replace) metadata for an affiliate. Use when you need to set custom metadata fields for a specific affiliate by their affiliate_id. |
| `TAPFILIATE_SET_AFFILIATE_META_DATA_BY_KEY` | Set Affiliate Metadata by Key | Tool to set or update a specific metadata field for an affiliate by key. Use when you need to store custom data associated with an affiliate. |
| `TAPFILIATE_SET_AFFILIATE_PARENT` | Set Affiliate Parent | Tool to set a parent affiliate relationship for a child affiliate. Use when you need to create a hierarchical affiliate structure by assigning a parent to a child affiliate. |
| `TAPFILIATE_UPDATE_AFFILIATE_GROUP` | Update Affiliate Group | Tool to update an affiliate group's details. Use when you need to change the title or other properties of an existing affiliate group. |

## Supported Triggers

None listed.

## Troubleshooting

### Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

### Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

### Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See [Composio pricing](/pricing) for the current limits that apply to your connection.

## Complete Code

None listed.

## Conclusion

### Use Tapfiliate from Atomic Agent
With your account connected, ask Atomic Agent to work with Tapfiliate in natural language. You can connect more apps through the same Composio integration as you need them.
Visit the [Atomic Agent website](https://atomicagent.io/?cta_placement=atomic-agent-site) or inspect the [Atomic Agent source code](https://github.com/AtomicBot-ai/atomic-agent?cta_placement=atomic-agent-repo).

## How to build Tapfiliate MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/tapfiliate/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/tapfiliate/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/tapfiliate/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/tapfiliate/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/tapfiliate/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/tapfiliate/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/tapfiliate/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/tapfiliate/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/tapfiliate/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/tapfiliate/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/tapfiliate/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/tapfiliate/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/tapfiliate/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/tapfiliate/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/tapfiliate/framework/autogen)

## Related Toolkits

- [Metaads](https://composio.dev/toolkits/metaads) - Metaads is Meta's official Ads API that lets you manage, analyze, and optimize your Facebook and Instagram ad campaigns. Streamline ad operations and gain deeper insights with robust automation.
- [Adrapid](https://composio.dev/toolkits/adrapid) - Adrapid is a platform for rapid creation of digital marketing visuals using templates. It streamlines design workflows for banners, images, and HTML5 content with automation.
- [Adtraction](https://composio.dev/toolkits/adtraction) - Adtraction is an affiliate marketing platform for partner programs, tracking links, transactions, commissions, statistics, and payments. It helps advertisers and publishers manage performance marketing with clear reporting and payout workflows.
- [Adyntel](https://composio.dev/toolkits/adyntel) - Adyntel is an API that retrieves LinkedIn ads for any company using a domain or LinkedIn Page ID. Easily access competitive ad intelligence to power your marketing workflows.
- [Beaconstac](https://composio.dev/toolkits/beaconstac) - Beaconstac is a platform for creating and managing QR codes and proximity beacons. It helps businesses engage customers and track marketing performance with powerful analytics.
- [Bouncify](https://composio.dev/toolkits/bouncify) - Bouncify is an email verification service for single addresses and bulk lists. Use it to reduce bounces, protect sender reputation, and track verification credits.
- [Bulk Email Checker](https://composio.dev/toolkits/bulk_email_checker) - Bulk Email Checker is an email verification service for checking address validity, mailbox status, domains, and mail-server signals. It helps reduce bounces, spot risky emails, and keep outreach lists cleaner before you send.
- [Campaign cleaner](https://composio.dev/toolkits/campaign_cleaner) - Campaign cleaner is an email campaign optimization tool that boosts compatibility and deliverability across email clients. It helps marketers get better results by cleaning, enhancing, and ensuring high performance for every campaign.
- [Deadline funnel](https://composio.dev/toolkits/deadline_funnel) - Deadline Funnel lets you create personalized deadlines and timers for your marketing campaigns. It helps marketers boost conversions by adding authentic urgency to offers.
- [DeBounce](https://composio.dev/toolkits/debounce) - DeBounce is an email verification service for checking address validity, deliverability, and risk. It helps keep contact lists clean so your campaigns reach real inboxes.
- [Easy Email Verification](https://composio.dev/toolkits/easy_email_verification) - Easy Email Verification is an email validation service for checking single addresses and bulk lists. Use it to reduce bounces, clean contact data, and protect sender reputation.
- [Elastic Email](https://composio.dev/toolkits/elastic_email) - Elastic Email is an email delivery and marketing platform for transactional emails, campaigns, contacts, and reporting. Use it to send reliable emails, manage audiences, verify addresses, and track performance.
- [Fairing](https://composio.dev/toolkits/fairing) - Fairing is a post-purchase survey and attribution platform for ecommerce brands. It helps teams measure which marketing channels, campaigns, and customer touchpoints drive purchases.
- [GoDaddy MCP](https://composio.dev/toolkits/godaddy_mcp) - GoDaddy MCP is a domain discovery toolkit for checking availability and generating AI-powered name ideas. Use it to move from rough business keywords to practical domain options fast.
- [Google Ads](https://composio.dev/toolkits/googleads) - Google Ads is Google's online advertising platform for creating, managing, and optimizing digital campaigns. It helps businesses reach targeted customers and maximize return on ad spend.
- [Handwrite.io](https://composio.dev/toolkits/handwrite) - Handwrite.io is a direct mail service for creating physical handwritten card orders. It helps teams send personal cards with selectable handwriting, stationery, and tracking.
- [Inblog](https://composio.dev/toolkits/inblog) - Inblog is an AI-powered blogging platform for posts, authors, tags, redirects, design settings, analytics, and lead forms. Use it to manage SEO-focused content, measure performance, and capture blog leads in one place.
- [Instantly](https://composio.dev/toolkits/instantly) - Instantly is a platform for automating cold email outreach, managing leads, and optimizing deliverability. Get better results from email campaigns with minimal manual effort.
- [Invalid Bounce](https://composio.dev/toolkits/invalid_bounce) - Invalid Bounce is an email verification service with a bulk verification API. Use it to clean email lists, reduce bounces, and protect sender reputation.
- [Keyword](https://composio.dev/toolkits/keyword) - Keyword.com is a digital marketing platform for search rank tracking and SEO analytics. Use it to monitor keyword performance, spot ranking changes, and measure SEO visibility.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Tapfiliate MCP?

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.

### Can I use Tool Router MCP with Atomic Agent?

Yes, you can. Atomic Agent 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.

### Can I manage the permissions and scopes for Tapfiliate while using Tool Router?

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.

### How safe is my data with Composio Tool Router?

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.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
