# LinkBit MCP [Verified owner] [Health: Active]

**Category:** 🎯 Marketing  
**Repository:** https://github.com/yutotanakastar/linkbit-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 158  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/linkbit-mcp

## Description
MCP server for LinkBit: shorten links, bulk create, QR codes, and click analytics from Claude, ChatGPT, Cursor, and n8n.

## Tools
Capabilities this server exposes over MCP:

- **shorten_url** — Create a short URL. Optional UTM fields are merged without overwriting existing utm_* params.
- **shorten_urls** — Bulk-create short URLs. Each item may include slug and utm_* fields.
- **list_links** — List the authenticated user's short links.
- **update_link** — Update destination, slug, note, UTM fields, or disabled flag for a link id.
- **disable_link** — Disable a short link so it no longer redirects. Pass disabled=false to re-enable. Destructive: visitors will get an error instead of the destination.
- **delete_link** — Permanently delete a short link. This cannot be undone.
- **get_qr** — Download a QR code for a link. format=png|svg, optional color, logo, print.
- **get_link_stats** — Click statistics for one link id. Optional from/to (YYYY-MM-DD) and the usual country/device/referrer/daily breakdowns.
- **get_analytics** — Account-level analytics overview.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "linkbit-mcp": {
    "command": "npx",
    "args": ["-y","linkbit-mcp"],
    "env": {
      "APP_URL": "",
      "API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `APP_URL`, `API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What LinkBit MCP does

LinkBit MCP exposes LinkBit's link-shortening service through the Model Context Protocol. Agents can create one short URL at a time or submit multiple URLs in a batch. Creation supports an optional slug, note, and UTM fields for source, medium, campaign, term, and content. Existing `utm_*` parameters on a destination are retained rather than replaced.

The server also provides link administration tools. Agents can list an authenticated user's links, change a destination or slug, edit notes and campaign parameters, and toggle whether a link is disabled. Disabling prevents the short URL from redirecting and can be reversed by setting `disabled` to false. Deletion is permanent.

Reporting tools cover both individual links and the account as a whole. Per-link statistics can be limited by date and include country, device, referrer, and daily breakdowns. QR codes can be returned as PNG or SVG, with optional color, logo, and print settings.

## How it works

The server runs over standard MCP stdio. It calls LinkBit's REST API with a Bearer token derived from the configured API key. Tool failures, including authentication failures, invalid URLs, duplicate slugs, daily creation limits, unsafe destinations, and unknown link IDs, are returned as MCP tool errors so the calling client can explain them. JSON-RPC protocol problems remain protocol errors.

LinkBit also supports direct calls to `/api/v1` from n8n, Make, and custom agents using the same API-key authentication approach. The MCP process itself requires Node.js 18 or newer because it relies on the built-in `fetch` implementation.

## Setup and configuration

Create an API key beginning with `slk_` from the API Keys page in LinkBit, then configure:

- `APP_URL`: LinkBit base URL, normally `https://linkbit.live`
- `API_KEY`: the LinkBit API key

Run the published package with:

```bash
npx -y linkbit-mcp
```

For Claude Code, add the server with `claude mcp add` and pass the two environment variables. Claude Desktop and Cursor can use an `mcp.json` entry whose command is `npx`, whose argument is `-y linkbit-mcp`, and whose environment contains `APP_URL` and `API_KEY`. In a local checkout before publication, Cursor can run `node mcp/src/index.js` instead.

## Tools and capabilities

- `shorten_url`: Create one short URL with optional slug, note, and UTM values.
- `shorten_urls`: Create multiple short URLs from an array of link definitions.
- `list_links`: Return the authenticated user's links, newest first.
- `update_link`: Patch destination, slug, note, UTM values, or disabled state.
- `disable_link`: Stop or restore redirects for a link.
- `delete_link`: Permanently remove a link.
- `get_qr`: Generate a PNG or SVG QR code with optional presentation settings.
- `get_link_stats`: Retrieve dated click breakdowns for one link.
- `get_analytics`: Retrieve account-level analytics.

Destructive operations should be used carefully: disabling makes visitors receive an error instead of the destination, while deletion cannot be undone.

_Full upstream README: https://allmcps.com/mcp/linkbit-mcp/readme_

