Add it to Claude Code
claude mcp add -e "AFFILYNC_TOKEN=${AFFILYNC_TOKEN}" affilync -- npx @affilync/mcp-serverAFFILYNC_TOKEN+ 1 optionalMake your agent remember this setup
affilync's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- Search and join affiliate marketing campaigns
- Generate and manage affiliate tracking links
- Track earnings, commissions, and click analytics
- Create and manage brand campaigns with commission structures
- Review and approve affiliate applications
Tools 19
getUserProfileGet your profile (affiliate or brand)searchCampaignsSearch campaigns by name/categorygetNotificationsView recent notificationslistAvailableCampaignsBrowse campaigns to joinjoinCampaignApply to join a campaigngenerateAffiliateLinkCreate a tracking linklistMyLinksView your tracking linksgetEarningsSummaryTotal/pending/available earningslistCommissionsIndividual commission recordsgetClickAnalyticsClick stats (today/week/month)requestPayoutCash out available earningslistActiveCampaignsYour joined campaignscreateCampaignCreate a campaign with commission structurelistBrandCampaignsView your campaignsgetCampaignPerformanceCampaign metrics (clicks, conversions, EPC)listAffiliateApplicationsReview applicationsdecideApplicationApprove/reject an applicationgetBrandDashboardOverall brand performancelistBrandAffiliatesAffiliates working with youEnvironment Variables
AFFILYNC_TOKENrequiredJWT access tokenAFFILYNC_API_URLAPI base URLTry it
Original README from moneyflowz367/affilync-mcp
@affilync/mcp-server
MCP (Model Context Protocol) server for Affilync — manage affiliate marketing directly from Claude.
Setup
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"affilync": {
"command": "npx",
"args": ["@affilync/mcp-server"],
"env": {
"AFFILYNC_TOKEN": "<your-jwt-token>"
}
}
}
}
Claude Code
claude mcp add affilync -- env AFFILYNC_TOKEN=<your-jwt-token> npx @affilync/mcp-server
Get your token
- Go to app.affilync.com/settings/api-keys
- Create a new API key
- Use the token value as
AFFILYNC_TOKEN
Available Tools
Shared (all users)
| Tool | Description |
|---|---|
getUserProfile |
Get your profile (affiliate or brand) |
searchCampaigns |
Search campaigns by name/category |
getNotifications |
View recent notifications |
Affiliate Tools
| Tool | Description |
|---|---|
listAvailableCampaigns |
Browse campaigns to join |
joinCampaign |
Apply to join a campaign |
generateAffiliateLink |
Create a tracking link |
listMyLinks |
View your tracking links |
getEarningsSummary |
Total/pending/available earnings |
listCommissions |
Individual commission records |
getClickAnalytics |
Click stats (today/week/month) |
requestPayout |
Cash out available earnings |
listActiveCampaigns |
Your joined campaigns |
Brand Tools
| Tool | Description |
|---|---|
createCampaign |
Create a campaign with commission structure |
listBrandCampaigns |
View your campaigns |
getCampaignPerformance |
Campaign metrics (clicks, conversions, EPC) |
listAffiliateApplications |
Review applications |
decideApplication |
Approve/reject an application |
getBrandDashboard |
Overall brand performance |
listBrandAffiliates |
Affiliates working with you |
Development
npm install
AFFILYNC_TOKEN=<token> npm run dev
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
AFFILYNC_TOKEN |
Yes | — | JWT access token |
AFFILYNC_API_URL |
No | https://api.affilync.com |
API base URL |