trackmcp
Back to directory
Talismanic

cleanuri-url-shortener-mcp

View on GitHub

This MCP server will return the shortened URL using cleanuri.

4 stars PythonServers & Infrastructure Updated Nov 1, 2025

Documentation

MseeP.ai Security Assessment Badge

URL Shortener MCP Tool

smithery badge

This project provides a simple URL shortening tool using the CleanURI API and is designed to run as a FastMCP server tool.

✨ Features

  • Shortens any given URL using the CleanURI API.
  • Exposes the functionality as a tool via FastMCP.
  • Includes proper error handling and response validation.
  • Designed to run via `stdio` transport for integration with agent or tool-based systems.

🚀 Usage

1. Requirements

  • Python 3.10+
  • `httpx`
  • `fastmcp`

2. Installation

Installing via Smithery

To install URL Shortener Tool for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @Talismanic/cleanuri-url-shortener-mcp --client claude

Manual Installation

bash
uv add httpx 'mcp[cli]'

Docker Installation:

code
docker build -t url-shortener .

3. Running

code
uv run main.py

For docker based use, we dont need to do anything here.

4. Adding in Claude Desktop

With the uv

code
{
  "mcpServers": {
    "url-shortener": {
      "command": "/Users/{userName}/.local/bin/uv",
      "args": [
        "--directory",
        "{path_to_repo}/cleanuri-url-shortener-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

With Docker

code
{
  "mcpServers": {
    "url-shortener": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--init",
        "-e",
        "DOCKER_CONTAINER=true",
        "url-shortener"
      ]
    }
  }
}

Frequently asked questions

What is cleanuri-url-shortener-mcp?

cleanuri-url-shortener-mcp is This MCP server will return the shortened URL using cleanuri.

How do I install cleanuri-url-shortener-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is cleanuri-url-shortener-mcp open source?

Yes — it is hosted on GitHub at https://github.com/Talismanic/cleanuri-url-shortener-mcp and has 4 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP