A URL shortener MCP server using CleanURI API
Project description
URL Shortener MCP Tool
This project provides a simple URL shortening tool using the CleanURI API and is designed to run as a FastMCP server tool.
✨ Features
- Shortens any given URL using the CleanURI API.
- Exposes the functionality as a tool via FastMCP.
- Includes proper error handling and response validation.
- Designed to run via
stdiotransport for integration with agent or tool-based systems.
🚀 Usage
1. Requirements
- Python 3.10+
httpxfastmcp
2. Installation
Installing via Smithery
To install URL Shortener Tool for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Talismanic/cleanuri-url-shortener-mcp --client claude
Manual Installation
uv add httpx 'mcp[cli]'
Docker Installation:
docker build -t url-shortener .
3. Running
uv run main.py
For docker based use, we dont need to do anything here.
4. Adding in Claude Desktop
With the uv
{
"mcpServers": {
"url-shortener": {
"command": "/Users/{userName}/.local/bin/uv",
"args": [
"--directory",
"{path_to_repo}/cleanuri-url-shortener-mcp",
"run",
"main.py"
]
}
}
}
With Docker
{
"mcpServers": {
"url-shortener": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"-e",
"DOCKER_CONTAINER=true",
"url-shortener"
]
}
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_cleanuri_url_shorterner-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_cleanuri_url_shorterner-0.1.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e96e4ab91718e2ac24f4f784fd6e3d815cda2b320487c0e9b9c67971e088705
|
|
| MD5 |
4d1adaced3b7fb0cb43f7433459181b9
|
|
| BLAKE2b-256 |
87b6978bccad85739647d5ded4c88edcf9bc87c584657df59f590daca06f2e50
|
File details
Details for the file iflow_mcp_cleanuri_url_shorterner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_cleanuri_url_shorterner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f16f0c23adbb56909f2104cd3dba91060f6856207461587efbe1bcc3d85179
|
|
| MD5 |
0dc6bb02e159b7131ce98daa5cab68a9
|
|
| BLAKE2b-256 |
7648e2bce619b55d6eb9ab17bbb430fc7a703d668c7b185c2861c10c077fefed
|