Labsco
MCP SERVER

URL Shortener (x.gd)

by hatimitu76

Turns a long URL into an x.gd short link from inside the conversation — one npx command and one API key.

Developer Conversions, Encoding & Test Data
Summary
One job, one key.

There is nothing to configure past the API key: it shortens URLs through x.gd and stops there. That makes it easy to add and easy to reason about — the only thing it can reach is the shortener, with a key issued to an email address.

What it is

An MCP server for creating shortened URLs with the x.gd service. It gives an assistant a way to produce a short link while it is drafting, instead of sending you to a shortener in another tab.

What you get
  • Shortened URLs created through x.gd, requested in the conversation where the link is being written
  • A published npm package — `npx @hatimitu__hat/mcp-shoten-url` — so nothing is built from source
  • Documented client entries for Claude Code (`~/.claude.json`), Claude Desktop and VS Code, all with the same command and env block
Requirements

An x.gd API key in the `XGD_API_KEY` environment variable — the README links the x.gd developer page where you enter an email address to have one issued. Beyond that, Node with `npx`. The package is `@hatimitu__hat/mcp-shoten-url`, version 1.0.1.

Setup effort

One command plus a key — npx @hatimitu__hat/mcp-shoten-url, then supply credentials