MCP.so
Sign In

URL Shortener MCP Tool

@Talismanic

About URL Shortener MCP Tool

This MCP server will return the shortened URL using cleanuri.

Basic information

Category

Other

License

Apache-2.0

Runtime

python

Transports

stdio

Publisher

Talismanic

Config

Add this server to your MCP-compatible client using the configuration below.

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

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is URL Shortener MCP Tool?

URL Shortener MCP Tool is a FastMCP server that shortens URLs via the CleanURI API. It is designed for developers and agents needing a lightweight, tool‑based URL shortening service integrated into systems like Claude Desktop.

How to use URL Shortener MCP Tool?

Install Python 3.10+, then add httpx and mcp[cli] using uv. Alternatively, install via Smithery (npx -y @smithery/cli install ...) or build a Docker image (docker build -t url-shortener .). Run the server with uv run main.py. Configure it in Claude Desktop by adding the appropriate JSON block (using uv or Docker) to your MCP settings.

Key features of URL Shortener MCP Tool

  • Shortens any given URL via the CleanURI API.
  • Exposes URL shortening as a FastMCP tool.
  • Proper error handling and response validation.
  • Runs over stdio transport for agent integration.
  • Easy installation via Smithery, manual, or Docker.

Use cases of URL Shortener MCP Tool

  • Shorten long URLs on the fly within an AI assistant conversation.
  • Automate link shortening in a CI/CD pipeline or script.
  • Provide a clean, shareable link for content generated by an agent.
  • Integrate URL shortening into a custom tool‑based workflow.

FAQ from URL Shortener MCP Tool

What does URL Shortener MCP Tool do?

It takes a long URL and returns a shortened version using the CleanURI API, all exposed as a FastMCP server tool.

What are the dependencies and runtime requirements?

Python 3.10 or later, plus the httpx and fastmcp (or mcp[cli]) packages.

Where does the shortened URL data live?

The actual shortening is performed by the external CleanURI service; the server itself does not store any data.

Can I run URL Shortener MCP Tool in Docker?

Yes. Build the image with docker build -t url-shortener . and run it with the provided Docker command configuration.

What transport does URL Shortener MCP Tool use?

It uses stdio transport, making it suitable for integration with systems that communicate via standard input/output.

Comments

More Other MCP servers