URL Shortener MCP

by Talismanic
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

URL 缩短器 MCP 工具

该项目使用CleanURI API提供了一个简单的 URL 缩短工具,并设计为FastMCP服务器工具运行。

✨ 特点

  • 使用 CleanURI API 缩短任何给定的 URL。
  • 通过 FastMCP 将功能作为工具公开。
  • 包括适当的错误处理和响应验证。
  • 设计用于通过stdio传输运行,以便与代理或基于工具的系统集成。

🚀 使用方法

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Tools

提供一个简单的工具来使用 CleanURI API 缩短 URL,旨在作为 FastMCP 服务器运行,可以与代理或基于工具的系统集成。

  1. ✨ Features
    1. 🚀 Usage
      1. 1. Requirements
    2. 2. Installation
      1. Installing via Smithery
      2. Manual Installation
      3. Docker Installation:
      4. 3. Running
      5. 4. Adding in Claude Desktop
    ID: rbwxqgcc7n