URL短縮MCPツール
このプロジェクトは、 CleanURI APIを使用したシンプルな URL 短縮ツールを提供し、 FastMCPサーバー ツールとして実行されるように設計されています。
✨ 特徴
CleanURI API を使用して、指定された URL を短縮します。
FastMCP を介してツールとして機能を公開します。
適切なエラー処理と応答検証が含まれます。
エージェントまたはツールベースのシステムとの統合のために
stdioトランスポート経由で実行するように設計されています。
🚀 使用方法
1. 要件
Python 3.10以上
httpxfastmcp
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"
]
}
}
}
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
CleanURI API を使用して URL を短縮するシンプルなツールを提供します。このツールは、エージェントまたはツールベースのシステムと統合できる FastMCP サーバーとして実行されるように設計されています。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityEnables AI agents to create, update, and manage short links through your Dub.co account, allowing for creation, modification, and deletion of custom shortened URLs.Last updated -23MIT License
- -security-license-qualityA zero-configuration tool that automatically converts FastAPI endpoints into Model Context Protocol (MCP) tools, enabling AI systems to interact with your API through natural language.Last updated -1MIT License
- -securityAlicense-qualityA lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.Last updated -316GPL 2.0
- -security-license-qualityA FastAPI server implementing the Model Context Protocol (MCP) for structured tool use, providing utility tools including random number generation, image generation via Azure OpenAI DALL-E, and AI podcast generation.Last updated -