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"
]
}
}
}
Metadata
Release files for iflow-mcp-cleanuri-url-shorterner 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz | 18.2 kB | Without provenance | Details for iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl |
Total release size: 44.6 kB
Release files / iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz
| Download URL | iflow_mcp_cleanuri_url_shorterner-0.1.1.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce4fcdb3513e50ec3cb4485b8d1ab45580820ec7682bfe770fea686dc8716a66
|
|
BLAKE2b-256 checksum How to use checksums |
a42cf12a36b54558b7000f4abecaee4c4e6b3caaaa3734230d74a4b7583a2190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Release files / iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl
| Download URL | iflow_mcp_cleanuri_url_shorterner-0.1.1-py3-none-any.whl |
|---|---|
| Size | 26.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3656fe5f47145927a7e97b4ddc58806d016b89f778fceb71eaefa79e75ad48b
|
|
BLAKE2b-256 checksum How to use checksums |
3c16c76bb742ab2dfb1aa628c4c4cee18b3e416e84874c859ba60bbdd416fa95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Security for iflow-mcp-cleanuri-url-shorterner 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.