Allows custom domains to be added to shortened URLs by connecting to Cloudflare for domain management
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., "@U301 URL Shortener MCP Servershorten https://example.com/very-long-article-url-about-ai-trends with slug ai-trends"
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.
U301 URL Shortener MCP Server
Use MCP Server to create short URLs.
Supported Params
url- The URL to shortenslug- (optional) The slug of the URLexpires- (optional) The time in seconds until the URL expirespassword- (optional) The password to access the URLcomment- (optional) The comment to display in Dashboard
Related MCP server: Unofficial dubco-mcp-server
Environment Variables
API_KEY- The U301 API key, required for creating short URLsdomain- (optional) The short URL domain, leave blank for defaultworkspaceId- (optional) Which workspace to use, leave blank for default
How to use
Step 1: Create an API in U301 Dashboard
Step 2: (Optional) Add your own domain by connectting to cloudflare
Step 3: Add this MCP Server config
{
"mcpServers": {
"u301-url-shortener": {
"command": "npx",
"args": [
"-y",
"@u301/mcp"
],
"env": {
"U301_API_KEY": <Your-U301-API-Key>
// "domain": <if you have one, or you don't need to config>
}
}
}
}Now you can tell AI (cursor, windsurf)
Replace the long URLs in the comments of this file with meaningful and memorable short URLs.
License
The MIT License
Official Website: https://u301.com