Create geo-targeted affiliate smart links, pull analytics, and rewrite YouTube descriptions.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP (Model Context Protocol) server for managing Youfiliate Smart Links from AI assistants like Claude Desktop. Create geo-targeted affiliate links, view analytics, and run YouTube description migrations β all from a chat conversation.
18 tools, 4 resources, supports stdio + streamable HTTP transports.
Requires Python 3.11+ and a Youfiliate account.
youfiliate_sk_) β shown only onceAdd to ~/Library/Application Support/Claude/claude_desktop_config.json:
Restart Claude Desktop after editing the config.
| Tool | Description |
|---|---|
youfiliate_create_smart_link | Create a new geo-targeted smart link |
youfiliate_list_smart_links | List smart links with filtering and pagination |
youfiliate_get_smart_link | Get full details of a smart link by ID |
youfiliate_update_smart_link | Update a smart link (partial update) |
youfiliate_delete_smart_link | Delete a smart link (requires confirm=True) |
| Tool | Description |
|---|---|
youfiliate_get_smart_link_stats | Get click analytics for a specific link |
youfiliate_get_aggregate_stats | Get analytics across all links |
youfiliate_check_link_health | Trigger a health check on a link |
| Tool | Description |
|---|---|
youfiliate_get_preferences | Get default smart link preferences |
youfiliate_update_preferences | Update preferences for new links |
| Tool | Description |
|---|---|
youfiliate_get_youtube_status | Check YouTube connection status |
youfiliate_connect_youtube | Start YouTube OAuth flow (returns auth URL) |
youfiliate_disconnect_youtube | Disconnect YouTube (requires confirm=True) |
| Tool | Description |
|---|---|
youfiliate_preview_migration | Preview migration scope (dry run) |
youfiliate_start_migration | Start YouTube description migration (requires confirm=True) |
youfiliate_get_migration_status | Check migration progress |
youfiliate_list_migrations | List all migrations |
youfiliate_rollback_migration | Rollback a migration (requires confirm=True) |
| URI | Description |
|---|---|
youfiliate://summary | Dashboard summary (link counts, clicks, health) |
youfiliate://preferences | Current preferences (read-only) |
youfiliate://smart-link/{id} | Single smart link details |
youfiliate://plan-limits | Current plan usage and limits |
You: Create a smart link for
https://amazon.com/dp/B09V3KXJPBwith geo-targeting for UK and Germany.Claude: (calls
youfiliate_create_smart_linkwith geo rules for GB and DE)Done. Short URL:
youfil.to/b09v3kxjpb
- US (default): amazon.com/dp/B09V3KXJPB
- UK: amazon.co.uk/dp/B09V3KXJPB
- Germany: amazon.de/dp/B09V3KXJPB
You: How are my links performing this month?
Claude: (calls
youfiliate_get_aggregate_statswithperiod="30d")1,234 clicks. Top countries: US (500), UK (200), Germany (150). Most traffic from YouTube (900 clicks).
You: Convert all my YouTube description links to smart links.
Claude: (calls
youfiliate_preview_migration) Would affect 15 videos / 42 links. Proceed?You: Yes.
Claude: (calls
youfiliate_start_migrationwithconfirm=True)
youfiliate_sk_... key authenticates the MCP server.confirm=True.| Variable | Default | Description |
|---|---|---|
YOUFILIATE_API_KEY | (required) | Your API key |
YOUFILIATE_API_BASE_URL | https://app.youfiliate.com | Backend URL |
MCP_SERVER_SECRET | (empty) | Shared secret for verify-api-key (server operators only) |
TRANSPORT | stdio | stdio or streamable-http |
PORT | 8080 | Port for HTTP transport |
HOST | 127.0.0.1 | Bind address (use 0.0.0.0 in Docker) |
"Authentication failed" β verify your API key, regenerate at youfiliate.com/settings if needed.
"Could not connect to the Youfiliate API" β check YOUFILIATE_API_BASE_URL. Defaults to https://app.youfiliate.com.
"Rate limit exceeded" β wait a moment. Health checks are 1 per 5 minutes per link.
Tools not appearing in Claude Desktop β check claude_desktop_config.json syntax, restart Claude Desktop, run youfiliate-mcp --help to verify the binary is on your PATH.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/youfiliate-smart-links)<a href="https://allmcps.com/mcp/youfiliate-smart-links"><img src="https://allmcps.com/api/badge/youfiliate-smart-links?style=directory" alt="Youfiliate Smart Links on AllMCPs" /></a>