Use MCP Server to create short URLs.
url- The URL to shortenslug- (optional) The slug of the URLexpiredAt- (optional) The expiration date for the URL, for example2026-03-13T00:00:00Zpassword- (optional) The password to access the URLcomment- (optional) The comment to display in Dashboard
U301_API_KEY- The U301 API key, required for creating short URLsDOMAIN- (optional) The short URL domain, leave blank for the default domainWORKSPACE_ID- (optional) Which workspace to use, leave blank for the default workspace
- Step 1: Create an API in U301 Dashboard
- Step 2: (Optional) Add your own domain by connecting to Cloudflare
- Step 3: Add this MCP Server config
Now you can tell AI (cursor, windsurf)
Replace the long URLs in the comments of this file with meaningful and memorable short URLs.
The MIT License
Official Website: https://u301.com
{ "mcpServers": { "u301-url-shortener": { "command": "npx", "args": [ "-y", "@u301/mcp" ], "env": { "U301_API_KEY": "<Your-U301-API-Key>", // "DOMAIN": "<optional-custom-domain>", // "WORKSPACE_ID": "<optional-workspace-id>" } } } }