Affilync MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Affilync MCP Serversearch for new affiliate campaigns and show my earnings summary"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@affilync/mcp-server
MCP (Model Context Protocol) server for Affilync — manage affiliate marketing directly from Claude.
This package ships two servers that expose the same tools:
Transport | Auth | Who runs it | |
| local subprocess |
| each user, locally |
| hosted at | OAuth 2.1 ("Connect Affilync") | Affilync (one deployment) |
The remote server is the one Claude connects to by URL with one-click OAuth — see Remote server. The stdio server (below) is for local/manual use with a pasted token.
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-serverGet your token
The server sends AFFILYNC_TOKEN as Authorization: Bearer <token>, so it
must be a JWT access token (from your Affilync login session or the OAuth
flow) — a developer API key (af_live_...) will NOT work with this server
as-is. To obtain one: log in at https://app.affilync.com, or complete the
OAuth flow (see the Affilync CLI / SDK), and use the access token value as
AFFILYNC_TOKEN. Note tokens expire (~60 min); re-issue as needed.
Related MCP server: Maasy MCP Server
Security model
Least authority. Every tool proxies to
/api/gpt/v1/*and carries only your bearer token. The backend independently enforces authentication, token revocation, user type (affiliate vs. brand) and write-scope — this server grants no capability the API wouldn't grant your token directly.Read-only mode. Set
AFFILYNC_READONLY=1to register only read tools. Mutating tools (joinCampaign,generateAffiliateLink,requestPayout,createCampaign,decideApplication) are not exposed at all — the model cannot invoke a state change or move money. Recommended for exploration.Tool safety hints. Mutating tools are annotated so the client can prompt before running them; money-moving / approval tools carry a
destructiveHint.Bounded I/O. Requests time out after 15s; responses are truncated to a safe size; backend error bodies are sanitized (status + short
detailonly) so raw server internals never reach the model.
Available Tools
Shared (all users)
Tool | Description |
| Health check — API reachable and token accepted |
| Get your profile (affiliate or brand) |
| Search campaigns by name/category |
| View recent notifications |
Affiliate Tools
Tool | Description |
| Browse campaigns to join |
| Apply to join a campaign |
| Create a tracking link |
| View your tracking links |
| Total/pending/available earnings |
| Individual commission records |
| Click stats (today/week/month) |
| Cash out available earnings |
| Your joined campaigns |
Brand Tools
Tool | Description |
| Create a campaign with commission structure |
| View your campaigns |
| Campaign metrics (clicks, conversions, EPC) |
| Review applications |
| Approve/reject an application |
| Overall brand performance |
| Affiliates working with you |
Development
npm install
AFFILYNC_TOKEN=<token> npm run devEnvironment Variables (stdio server)
Variable | Required | Default | Description |
| Yes | — | JWT access token |
| No |
| API base URL |
| No |
| Set to |
Remote server (OAuth Protected Resource)
affilync-mcp-remote is an HTTP server that Claude (or any MCP client) adds by
URL and authenticates against with OAuth — no token to paste. It exposes the
same tools as the stdio server, registered per-request from the user's token.
Per the MCP authorization spec it is an OAuth 2.0 Protected Resource:
GET /.well-known/oauth-protected-resource(RFC 9728) points clients at the Affilync Authorization Server (api.affilync.com).Unauthenticated MCP calls get
401+WWW-Authenticate: Bearer resource_metadata="…", so the client knows where to start the OAuth flow.Each request's bearer token is verified offline against the AS's published JWKS and MUST be audience-bound to this server (RFC 8707) — a token minted for another Affilync client cannot be replayed here.
The token is then forwarded to
/api/gpt/v1/*, where the backend re-enforces auth, user-type and write-scope. A token withoutapi:writeruns read-only.
Run it
npm ci && npm run build
AFFILYNC_API_URL=https://api.affilync.com \
MCP_RESOURCE_URL=https://mcp.affilync.com \
npm run start:remote # or: affilync-mcp-remoteVariable | Default | Description |
|
| This server's public URL (its OAuth resource identifier) |
|
| Authorization Server + API origin |
|
| HTTP port (Render sets this) |
Deploy
render.yaml defines the affilync-mcp-remote web service. Two operator steps
are required to go live (they can't be done from CI):
Create the service from the blueprint (Render → New → Blueprint on this repo).
Add DNS + custom domain: Cloudflare
CNAME mcp → <service>.onrender.com(proxied) and addmcp.affilync.comas a custom domain on the Render service.
Health check: GET /healthz.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceEnables users to analyze, manage, and optimize digital advertising campaigns through natural language conversations in Claude, offering performance insights, interactive visualizations, and campaign management for platforms like Amazon Ads.Last updated4
- Alicense-qualityDmaintenanceConnects Claude to marketing intelligence, enabling brand scanning, content generation, campaign management, and CRM analysis through natural language.Last updated99MIT
- Alicense-qualityCmaintenanceEnables users to create, manage, and monitor Meta (Facebook/Instagram) ad campaigns directly from Claude using natural language.Last updated3MIT
- Alicense-qualityBmaintenanceConnects Claude to your Grinfi.io account, enabling management of contacts, automations, messages, and more through natural language.Last updated1MIT
Related MCP Connectors
Affiliate network reporting in your AI client. Bring your own keys. Most adapters experimental.
AI-agent commerce: browse campaigns/products, mint tracking links, publish posts, track earnings.
Create geo-targeted affiliate smart links, pull analytics, and rewrite YouTube descriptions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/affilync/affilync-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server