Skip to main content

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"
      ]
    }
  }
}

Metadata

Release files for iflow-mcp-cleanuri-url-shorterner 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp-cleanuri-url-shorterner 0.1.1
File Size Uploaded
iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp-cleanuri-url-shorterner 0.1.1
File Interpreter ABI Platform
iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 44.6 kB

Release files / iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz

Download URL iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ce4fcdb3513e50ec3cb4485b8d1ab45580820ec7682bfe770fea686dc8716a66
BLAKE2b-256 checksum
How to use checksums
a42cf12a36b54558b7000f4abecaee4c4e6b3caaaa3734230d74a4b7583a2190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release files / iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl

Download URL iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3656fe5f47145927a7e97b4ddc58806d016b89f778fceb71eaefa79e75ad48b
BLAKE2b-256 checksum
How to use checksums
3c16c76bb742ab2dfb1aa628c4c4cee18b3e416e84874c859ba60bbdd416fa95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page