Skip to main content
Glama

URL 缩短器 MCP 工具

铁匠徽章

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

✨ 特点

  • 使用 CleanURI API 缩短任何给定的 URL。

  • 通过 FastMCP 将功能作为工具公开。

  • 包括适当的错误处理和响应验证。

  • 设计用于通过stdio传输运行,以便与代理或基于工具的系统集成。

Related MCP server: FastAPI-MCP

🚀 使用方法

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" ] } } }
Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Talismanic/cleanuri-url-shortener-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server