MCP.so
登录

URL Shortener MCP Tool

@Talismanic

基本信息

分类

其他

许可证

Apache-2.0

传输方式

stdio

作者

Talismanic

关于 URL Shortener MCP Tool

This MCP server will return the shortened URL using cleanuri.

URL Shortener MCP Tool 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

URL Shortener MCP Tool 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is URL Shortener MCP Tool?

URL Shortener MCP Tool is a FastMCP server that shortens URLs via the CleanURI API. It is designed for developers and agents needing a lightweight, tool‑based URL shortening service integrated into systems like Claude Desktop.

How to use URL Shortener MCP Tool?

Install Python 3.10+, then add httpx and mcp[cli] using uv. Alternatively, install via Smithery (npx -y @smithery/cli install ...) or build a Docker image (docker build -t url-shortener .). Run the server with uv run main.py. Configure it in Claude Desktop by adding the appropriate JSON block (using uv or Docker) to your MCP settings.

Key features of URL Shortener MCP Tool

  • Shortens any given URL via the CleanURI API.
  • Exposes URL shortening as a FastMCP tool.
  • Proper error handling and response validation.
  • Runs over stdio transport for agent integration.
  • Easy installation via Smithery, manual, or Docker.

Use cases of URL Shortener MCP Tool

  • Shorten long URLs on the fly within an AI assistant conversation.
  • Automate link shortening in a CI/CD pipeline or script.
  • Provide a clean, shareable link for content generated by an agent.
  • Integrate URL shortening into a custom tool‑based workflow.

常见问题

1

What does URL Shortener MCP Tool do?

It takes a long URL and returns a shortened version using the CleanURI API, all exposed as a FastMCP server tool.

2

What are the dependencies and runtime requirements?

Python 3.10 or later, plus the `httpx` and `fastmcp` (or `mcp[cli]`) packages.

3

Where does the shortened URL data live?

The actual shortening is performed by the external CleanURI service; the server itself does not store any data.

4

Can I run URL Shortener MCP Tool in Docker?

Yes. Build the image with `docker build -t url-shortener .` and run it with the provided Docker command configuration.

5

What transport does URL Shortener MCP Tool use?

It uses `stdio` transport, making it suitable for integration with systems that communicate via standard input/output.

评论

其他 分类下的更多 MCP 服务器