Skip to main content
Glama

URL Shortener MCP

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Tools

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

  1. ✨ 特点
    1. 🚀 使用方法
      1. 要求
    2. 2.安装
      1. 通过 Smithery 安装
      2. 手动安装
      3. Docker安装:
      4. 3.跑步
      5. 添加 Claude Desktop

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A server based on the MCP protocol that uses the Brave API for web search functionality.
      Last updated -
      6
      Python
      MIT License
      • Apple
      • Linux
    • -
      security
      A
      license
      -
      quality
      A lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.
      Last updated -
      13
      TypeScript
      MIT License
    • -
      security
      A
      license
      -
      quality
      A Python-based MCP server that crawls websites to extract and save content as markdown files, with features for mapping website structure and links.
      Last updated -
      1
      Python
      MIT License
    • -
      security
      A
      license
      -
      quality
      A Python implementation of an MCP server that extracts webpage content, removes ads and non-essential elements, and transforms it into clean, LLM-optimized Markdown.
      Last updated -
      1
      Python
      MIT License
      • Linux
      • Apple

    View all related MCP servers

    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