URL Shortener MCP
Herramienta MCP para acortar URL
Este proyecto proporciona una herramienta sencilla de acortamiento de URL utilizando la API CleanURI y está diseñado para ejecutarse como una herramienta de servidor FastMCP .
✨ Características
Acorta cualquier URL dada utilizando la API CleanURI.
Expone la funcionalidad como una herramienta a través de FastMCP.
Incluye manejo adecuado de errores y validación de respuestas.
Diseñado para ejecutarse a través del transporte
stdiopara la integración con sistemas basados en agentes o herramientas.
Related MCP server: MCP Website Fetcher
🚀 Uso
1. Requisitos
Python 3.10+
httpxfastmcp
2. Instalación
Instalación mediante herrería
Para instalar la herramienta de acortamiento de URL para Claude Desktop automáticamente a través de Smithery :
npx -y @smithery/cli install @Talismanic/cleanuri-url-shortener-mcp --client claudeInstalación manual
uv add httpx 'mcp[cli]'Instalación de Docker:
docker build -t url-shortener .3. Corriendo
uv run main.pyPara el uso basado en Docker, no necesitamos hacer nada aquí.
4. Agregar en Claude Desktop
Con los rayos uv
{
"mcpServers": {
"url-shortener": {
"command": "/Users/{userName}/.local/bin/uv",
"args": [
"--directory",
"{path_to_repo}/cleanuri-url-shortener-mcp",
"run",
"main.py"
]
}
}
}Con Docker
{
"mcpServers": {
"url-shortener": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"-e",
"DOCKER_CONTAINER=true",
"url-shortener"
]
}
}
}Available Tools
1 toolshortenB
Shorten a URL using the cleanuri API.
Args:
original_url: The URL to shorten.
Inputs: original_url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'shorten' has a single, clear purpose that cannot be confused with any other tool in this set.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'shorten' follows a clear verb-based pattern appropriate for its function, with no other tools to compare against for inconsistency.
A single tool for a URL shortener server is too few for the apparent scope, as it only covers shortening URLs without any complementary operations like retrieving, updating, deleting, or listing shortened URLs. This minimal set limits functionality and may cause agent failures in broader workflows.
The tool surface is severely incomplete for a URL shortener domain. While 'shorten' allows creation, there are no tools for retrieving, updating, deleting, or managing shortened URLs (e.g., get_url, list_urls, delete_url), creating significant gaps that will hinder agent performance in typical use cases.
Maintenance
Related MCP Connectors
Web and URL utilities over MCP: shorten URLs, screenshot pages, read page metadata, encode URLs.
Create, find, update and delete Simple Click Tracker short links from Claude or any MCP client.
MCP server (stdio): fetch web pages as clean readable markdown via the AgentForge API
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceThis project implements a simple MCP server in Go that exposes a single tool (create_short_link) to generate short URLs using the Rebrandly API.MIT- FlicenseNot gradedqualityFmaintenanceA lightweight MCP server implementation that provides a simple tool for fetching website content, demonstrating how tools can be exposed and interacted with using the MCP protocol.-
- AlicenseAqualityBmaintenanceAn MCP server that enables users to shorten long URLs into permanent, shareable links using the AceDataCloud API. It supports both single and batch URL shortening directly within MCP-compatible clients like Claude and VS Code.41MIT
- AlicenseAqualityDmaintenanceMCP server that converts URLs to clean Markdown/Text for LLM agents.579 npm5MIT