CleanURI URL缩短FastMCP服务器添加福利群:解决AI开发者的「MCP实战痛点」
该项目提供了一个简单的 URL 缩短工具,使用 CleanURI API,并设计为作为 FastMCP 服务器工具运行。
stdio 传输运行,以便与代理或基于工具的系统集成。httpxfastmcp要通过 Smithery 自动为 Claude Desktop 安装 URL 缩短工具:
npx -y @smithery/cli install @Talismanic/cleanuri-url-shortener-mcp --client claude
uv add httpx 'mcp[cli]'

docker build -t url-shortener .
uv run main.py
对于基于 Docker 的使用,我们不需要在这里做任何事情。
{ "mcpServers": { "url-shortener": { "command": "/Users/{userName}/.local/bin/uv", "args": [ "--directory", "{path_to_repo}/cleanuri-url-shortener-mcp", "run", "main.py" ] } } }
{ "mcpServers": { "url-shortener": { "command": "docker", "args": [ "run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "url-shortener" ] } } }