mcpField
U
U301 Url Shortener

U301 Url Shortener

Local
github.com/tealight-ukProductivity0Updated 33w ago

About U301 Url Shortener

U301 Url Shortener is an MCP server for creating short URLs with U301. It supports custom slugs and optional expiration, password, and dashboard comments.

Key features

  1. 01Create short URLs
  2. 02Set an optional slug
  3. 03Configure expiration dates
  4. 04Password-protect short links
  5. 05Add dashboard comments

Use cases

  1. 01Shorten URLs in file comments
  2. 02Create expiring links
  3. 03Share password-protected links

MCP support

The MCP server exposes URL creation to MCP clients. Creating short URLs requires a U301 API key.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"u301": {
"command": "npx",
"args": [
"-y",
"@u301/mcp"
],
"env": {
"U301_API_KEY": "<U301_API_KEY>",
"domain": "<domain>"
}
}
}
}
Run commandnpx -y @u301/mcp
Environment variables to set
U301_API_KEYSecret
domain

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@u301/mcp

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README
README image

U301 URL Shortener MCP Server

Verified on MseeP

Use MCP Server to create short URLs.

U301 URL Shortener MCP Server

Supported Params

  • url - The URL to shorten
  • slug - (optional) The slug of the URL
  • expiredAt - (optional) The expiration date for the URL, for example 2026-03-13T00:00:00Z
  • password - (optional) The password to access the URL
  • comment - (optional) The comment to display in Dashboard

Environment Variables

  • U301_API_KEY - The U301 API key, required for creating short URLs
  • DOMAIN - (optional) The short URL domain, leave blank for the default domain
  • WORKSPACE_ID - (optional) Which workspace to use, leave blank for the default workspace

How to use

  • 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
{
  "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>"
      }
    }
  }
}

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

README image

Official Website: https://u301.com

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.