With the U301 MCP Server, any AI-powered tool that supports the MCP Server protocol can now generate short links using U301 — tools like:
- Cursor
- Windsurf
- Cline ...
Why Use It?
Let’s say you're writing markdown documentation and want to replace long URLs with clean, meaningful short links — ideally on your own domain. For example:
From this:
https://docs.stripe.com/webhooks#verify-official-libraries
To something like:
u301.co/verify-webhooks
or even:
stri.pe/verify-webhooks
You might think: "That sounds simple enough — why involve AI?"
Well, imagine you’re maintaining thousands of documents with thousands of links. Manually generating semantic, unique slugs for each one is tedious, error-prone, and time-consuming.
With U301 MCP Server, you configure it once — and let the AI handle the rest.
How to Set It Up
- Go to u301.com and generate an API Key from your dashboard.
- In your MCP-compatible tool, add the following config:
{
"mcpServers": {
"u301-url-shortener": {
"command": "npx",
"args": [
"-y",
"@u301/mcp"
],
"env": {
"U301_API_KEY": "<U301-API-Key>"
}
}
}
}
Custom Domain Support
Want to use your own domain (e.g., stri.pe
)? Just add the domain
field to the environment variables:
{
"mcpServers": {
"u301-url-shortener": {
"command": "npx",
"args": [
"-y",
"@u301/mcp"
],
"env": {
"U301_API_KEY": "<U301-API-Key>",
"domain": "stri.pe"
}
}
}
}
How to Use It
Once everything is set up, just tell the AI:
Replace the long URLs in the documents with meaningful and memorable short URLs.
Then sit back and let the magic happen. ✨
Resources
- Github Repo: https://github.com/tealight-uk/u301-mcp
- Npm Packages: @u301/mcp