U301 Url Shortener
@tealight-uk
MCP server for interacting with U301 URL Shortener
Overview
What is U301 Url Shortener?
U301 Url Shortener is an MCP server that creates short URLs using the U301 URL shortening service. It supports optional parameters like custom slugs, expiration times, password protection, and comments. The server is intended for AI assistants (e.g., Cursor, Windsurf) to replace long URLs with short, memorable ones.
How to use U301 Url Shortener?
First, obtain an API key from the U301 Dashboard. Optionally, add a custom domain by connecting to Cloudflare and specify a workspace. Then add the MCP server configuration to your client (using npx and the @u301/mcp package) with the required U301_API_KEY environment variable and optional domain and workspaceId variables. Instruct your AI to replace long URLs with meaningful short URLs.
Key features of U301 Url Shortener?
- Creates short URLs with a required
urlparameter. - Supports optional custom
slugfor the short URL. - Optional
expirestime in seconds. - Optional
passwordfor access control. - Optional
commentfor dashboard display. - Custom domain and workspace support via environment variables.
Use cases of U301 Url Shortener?
- Shortening long URLs directly from an AI-assisted coding environment.
- Adding password protection and expiration to shared links.
- Organizing short links under specific workspaces.
FAQ from U301 Url Shortener
What parameters does the server accept?
It requires url and optionally accepts slug, expires (seconds), password, and comment.
What environment variables are required?
U301_API_KEY is required; domain and workspaceId are optional.
How do I install or run this server?
Use the npx command with the @u301/mcp package as shown in the configuration example (stdio transport).
What transport does this server use?
The server uses stdio transport, as demonstrated by the command and args configuration.
What license is this server under?
The server is licensed under the MIT License.