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.1.tar.gz (18.2 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.1.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ce4fcdb3513e50ec3cb4485b8d1ab45580820ec7682bfe770fea686dc8716a66
MD5 7f1b96268bbdf25162ae827927e06c05
BLAKE2b-256 a42cf12a36b54558b7000f4abecaee4c4e6b3caaaa3734230d74a4b7583a2190

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3656fe5f47145927a7e97b4ddc58806d016b89f778fceb71eaefa79e75ad48b
MD5 06e5bb186c2b139e3998eb6d561f30a1
BLAKE2b-256 3c16c76bb742ab2dfb1aa628c4c4cee18b3e416e84874c859ba60bbdd416fa95

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