# Manage short URLs via AI tools in n8n with YOURLS
This automation template enables programmatic management of short URLs through AI tools in n8n, integrated with a MCP server and YOURLS. It allows AI agents to shorten, expand, and retrieve click statistics for URLs via structured API calls. Designed for developers and automation engineers building intelligent systems with embedded URL handling.
## Who it´s for
- Developers using MCP servers to integrate AI tools
- Administrators managing short links via API
- Automators embedding URL shortening into AI agents
## What the automation does
- Accepts requests from AI agents via MCP server as AI tool calls
- Shortens long URLs using YOURLS API
- Expands short URLs to their original form
- Retrieves click statistics for a given short link from YOURLS
- Returns structured responses back to the calling system
## What´s included
- Ready-to-use n8n workflow
- Logic for handling three operations: shorten, expand, get stats
- Integration with YOURLS via API
- Configuration as an AI tool on MCP server
- Basic text guide for setup and adaptation
## Requirements for setup
- Access to a YOURLS instance with API enabled
- Running MCP server connected to n8n
- YOURLS API credentials (key)
- n8n environment (cloud or self-hosted)
## Benefits and outcomes
- Eliminates manual URL handling
- Enables AI agents to process links autonomously
- Centralizes link management via standardized API
- Ensures fast and accurate response processing
- Scales URL operations within automated workflows
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
URL management
shorten URLs
expand short URLs
link click statistics
YOURLS integration
AI tools in n8n
MCP server URL handling
automate URLs with AI
short link management
YOURLS n8n workflow
No feedback yet