Skip to main content
Glama
URL Shortener MCP

URL Shortener MCP

by Talismanic

URL短縮MCPツール

鍛冶屋のバッジ

このプロジェクトは、 CleanURI APIを使用したシンプルな URL 短縮ツールを提供し、 FastMCPサーバー ツールとして実行されるように設計されています。

✨ 特徴

  • CleanURI API を使用して、指定された URL を短縮します。

  • FastMCP を介してツールとして機能を公開します。

  • 適切なエラー処理と応答検証が含まれます。

  • エージェントまたはツールベースのシステムとの統合のためにstdioトランスポート経由で実行するように設計されています。

Related MCP server: MCP Website Fetcher

🚀 使用方法

1. 要件

  • Python 3.10以上

  • httpx

  • fastmcp

2. インストール

Smithery経由でインストール

Smithery経由で Claude Desktop の URL 短縮ツールを自動的にインストールするには:

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

手動インストール

uv add httpx 'mcp[cli]'

Docker インストール:

docker build -t url-shortener .

3. ランニング

uv run main.py

docker ベースでの使用の場合、ここで何もする必要はありません。

4. Claude Desktopへの追加

紫外線で

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

Dockerを使用

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

Available Tools

1 tool
shortenB

Shorten a URL using the cleanuri API.

Args:
    original_url: The URL to shorten.

Inputs: original_url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'shorten' has a single, clear purpose that cannot be confused with any other tool in this set.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'shorten' follows a clear verb-based pattern appropriate for its function, with no other tools to compare against for inconsistency.

    Tool Count2/5

    A single tool for a URL shortener server is too few for the apparent scope, as it only covers shortening URLs without any complementary operations like retrieving, updating, deleting, or listing shortened URLs. This minimal set limits functionality and may cause agent failures in broader workflows.

    Completeness2/5

    The tool surface is severely incomplete for a URL shortener domain. While 'shorten' allows creation, there are no tools for retrieving, updating, deleting, or managing shortened URLs (e.g., get_url, list_urls, delete_url), creating significant gaps that will hinder agent performance in typical use cases.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      This project implements a simple MCP server in Go that exposes a single tool (create_short_link) to generate short URLs using the Rebrandly API.
      MIT
    • F
      license
      Not graded
      quality
      F
      maintenance
      A lightweight MCP server implementation that provides a simple tool for fetching website content, demonstrating how tools can be exposed and interacted with using the MCP protocol.
      -
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that enables users to shorten long URLs into permanent, shareable links using the AceDataCloud API. It supports both single and batch URL shortening directly within MCP-compatible clients like Claude and VS Code.
      4
      1
      MIT