Skip to main content

A URL shortener MCP server using CleanURI API

Project description

MseeP.ai Security Assessment Badge

URL Shortener MCP Tool

smithery badge

URL Shortener MCP server

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:

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

Manual Installation

uv add httpx 'mcp[cli]'

Docker Installation:

docker build -t url-shortener .

3. Running

uv run main.py

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

4. Adding in Claude Desktop

With the uv

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

With Docker

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_cleanuri_url_shorterner-0.1.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_cleanuri_url_shorterner-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_cleanuri_url_shorterner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e96e4ab91718e2ac24f4f784fd6e3d815cda2b320487c0e9b9c67971e088705
MD5 4d1adaced3b7fb0cb43f7433459181b9
BLAKE2b-256 87b6978bccad85739647d5ded4c88edcf9bc87c584657df59f590daca06f2e50

See more details on using hashes here.

File details

Details for the file iflow_mcp_cleanuri_url_shorterner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_cleanuri_url_shorterner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f16f0c23adbb56909f2104cd3dba91060f6856207461587efbe1bcc3d85179
MD5 0dc6bb02e159b7131ce98daa5cab68a9
BLAKE2b-256 7648e2bce619b55d6eb9ab17bbb430fc7a703d668c7b185c2861c10c077fefed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page