mcpField
K
KooLink URL Shortener

KooLink URL Shortener

Remote
kool.inkProductivity0Updated 8w ago

About KooLink URL Shortener

KooLink URL Shortener provides a CLI and hosted service for turning long URLs into kool.ink links. It is intended for terminal users and AI agents, with stdin and batch input as well as MCP access.

Key features

  1. 01Shorten URLs from the CLI
  2. 02Accept URLs through stdin
  3. 03Process batches of URLs
  4. 04Copy links to desktop clipboard

Use cases

  1. 01Shorten a link from a terminal
  2. 02Pipe URL output into the CLI
  3. 03Convert a list of URLs in a batch

MCP support

The hosted MCP server at https://mcp.kool.ink exposes the shorten_url tool, which returns a kool.ink link. Anonymous shortening requires no API key.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://mcp.kool.ink
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

3
ParameterTypeRequiredDescription
urlstringYesThe destination URL to shorten (http or https).
labelstringNoOptional label for the API key owner's records.

Details

From the project README

koolink

Shorten any URL to a clean kool.ink/xyz link from your terminal. Free, unlimited, no signup. AI-agent ready.

npx @koolink/koolink https://example.com/very/long/path
# → https://kool.ink/abc123

Install

# one-off (no install)
npx @koolink/koolink https://example.com

# or install globally
npm install -g @koolink/koolink
koolink https://example.com

Usage

# Shorten a URL (prints the short link, copies to clipboard on desktop)
koolink https://example.com/very/long/path

# Shorten from stdin (great for piping)
echo "https://example.com" | koolink

# Shorten a batch
cat urls.txt | xargs -I{} koolink {}
FlagDescription
--help / -hShow help
--version / -vShow version

Install as an MCP server

Point any MCP client (Claude Desktop, Cursor, Windsurf, etc.) at the hosted MCP server at https://mcp.kool.ink — no API key required for anonymous shortening.

{
  "mcpServers": {
    "koolink": {
      "url": "https://mcp.kool.ink"
    }
  }
}

Tools

This server exposes the following MCP tools:

ToolDescriptionInput
shorten_urlShorten a long URL and return a compact kool.ink short link.{ "url": "<long-url>" }

Why KooLink

  • Free forever — no account, no credit card, no limits
  • Clean, memorable URLs — kool.ink/xyz, not bit.ly/4xdK9qZ
  • AI-agent ready — same service over MCP at https://mcp.kool.ink, or the REST API
  • Analytics — every link is click-tracked with bot traffic filtered out
  • Creator Earning Programme — as traffic grows, you earn

API

The CLI calls the public anonymous endpoint:

curl -X POST https://kool.ink/api/links \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'

For AI agents, use the MCP server at https://mcp.kool.ink (no API key needed for anonymous shortening).

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.