Shortl icon

Shortl

1

Provides a minimal, extensible Python library for URL shortening, supporting both built-in and custom providers, with an optional MCP server for LLM integration.

About

Shortl acts as a simple SDK for URL shortening. You provide a URL and a provider; shortl forwards the request to the provider and returns the shortened URL. It is designed to be lightweight, fast, and easy to extend. It supports popular built-in providers like is.gd and TinyURL, and allows users to register their own custom shortening logic. Additionally, it can be exposed as a Model Context Protocol (MCP) server, enabling seamless integration with Large Language Models and various automation workflows for on-demand URL shortening.

Key Features

  • Fast & Lightweight with minimal dependencies
  • Extensible through custom Python function providers
  • Fully type-annotated for safety and clarity
  • Includes an MCP Server for LLM and automation integration
  • 1 GitHub stars

Use Cases

  • Integrate URL shortening capabilities into Python applications as an SDK.
  • Expose URL shortening as an API for Large Language Models (LLMs) via the MCP server.
  • Automate URL shortening in various workflows and scripts.