youfiliate-mcp
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., "@youfiliate-mcpCreate a smart link for https://amazon.com/dp/B09V3KXJPB"
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.
Youfiliate MCP Server
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.
Installation
pip install youfiliate-mcpRequires Python 3.11+ and a Youfiliate account.
Generate an API key
Log in at youfiliate.com
Go to Settings → API Keys
Click Create API Key (e.g. "Claude Desktop")
Copy the key (starts with
youfiliate_sk_) — shown only once
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Local (stdio)
{
"mcpServers": {
"youfiliate": {
"command": "youfiliate-mcp",
"env": {
"YOUFILIATE_API_KEY": "youfiliate_sk_your_key_here"
}
}
}
}Remote (Streamable HTTP)
{
"mcpServers": {
"youfiliate": {
"url": "https://mcp.youfiliate.com",
"headers": {
"Authorization": "Bearer youfiliate_sk_your_key_here"
}
}
}
}Restart Claude Desktop after editing the config.
Available Tools (18)
Smart Links CRUD (5)
Tool | Description |
| Create a new geo-targeted smart link |
| List smart links with filtering and pagination |
| Get full details of a smart link by ID |
| Update a smart link (partial update) |
| Delete a smart link (requires |
Analytics (3)
Tool | Description |
| Get click analytics for a specific link |
| Get analytics across all links |
| Trigger a health check on a link |
Preferences (2)
Tool | Description |
| Get default smart link preferences |
| Update preferences for new links |
YouTube (3)
Tool | Description |
| Check YouTube connection status |
| Start YouTube OAuth flow (returns auth URL) |
| Disconnect YouTube (requires |
Migrations (5)
Tool | Description |
| Preview migration scope (dry run) |
| Start YouTube description migration (requires |
| Check migration progress |
| List all migrations |
| Rollback a migration (requires |
Available Resources (4)
URI | Description |
| Dashboard summary (link counts, clicks, health) |
| Current preferences (read-only) |
| Single smart link details |
| Current plan usage and limits |
Example Conversations
Creating a Smart Link
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
Checking Analytics
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).
YouTube Migration
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)
Security Model
API key auth. Your
youfiliate_sk_...key authenticates the MCP server.JWT bridge. The server exchanges your API key for short-lived JWTs against the Youfiliate API.
Token caching. JWTs are cached in memory and auto-refreshed.
Scoped data access. The server only sees data belonging to the API key's owner.
Destructive actions guarded. Delete, disconnect, start migration, and rollback require explicit
confirm=True.
Rate Limits
MCP layer: 60 requests/minute per API key
Health checks: 1 per link per 5 minutes
API key exchange: rate-limited by the Youfiliate backend
Environment Variables
Variable | Default | Description |
| (required) | Your API key |
|
| Backend URL |
| (empty) | Shared secret for verify-api-key (server operators only) |
|
|
|
|
| Port for HTTP transport |
|
| Bind address (use |
Development
git clone https://github.com/andrewmpierce/youfiliate-mcp.git
cd youfiliate-mcp
pip install -e ".[dev]"
pytest -vTest with MCP Inspector
npx @modelcontextprotocol/inspector youfiliate-mcpDocker
docker build -t youfiliate-mcp .
docker run -p 8080:8080 \
-e YOUFILIATE_API_KEY=youfiliate_sk_... \
youfiliate-mcpTroubleshooting
"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.
License
Links
Website: youfiliate.com
Changelog: CHANGELOG.md
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/andrewmpierce/youfiliate-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server