XS Shlink MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@XS Shlink MCPlist my short URLs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
XS Shlink MCP
A local Model Context Protocol server for managing and analyzing a Shlink URL-shortener instance.
XS Shlink MCP runs over stdio, keeps the Shlink API key on the machine running
the MCP client, and does not require Docker or a separate hosted service.
Features
23 tools for short URLs, visits, tags, domains, redirect rules, QR codes, and Mercure integration information
Typed and validated tool inputs
Structured Shlink API errors with request IDs
Bounded pagination and request timeouts
Destructive operations disabled by default
Windows, macOS, and Linux support through Node.js
Related MCP server: Linkly MCP Server
Requirements
Node.js 20 or newer
A reachable Shlink instance
A Shlink API key
The initial release was tested with Shlink 5.1.5 and REST API version 3.
Quick start
Configure an MCP client to launch the published npm package:
{
"mcpServers": {
"shlink": {
"command": "npx",
"args": ["-y", "xs-shlink-mcp"],
"env": {
"SHLINK_BASE_URL": "https://s.example.com",
"SHLINK_API_KEY": "replace-me",
"SHLINK_API_VERSION": "3",
"SHLINK_ALLOW_DESTRUCTIVE": "false"
}
}
}
}On Windows, use "command": "npx.cmd" if the MCP client does not resolve the
.cmd shim automatically.
The MCP client starts and stops the server automatically. Do not run ordinary
interactive commands through the server's standard input because stdio is
reserved for MCP protocol messages.
Configuration
Variable | Required | Default | Description |
| Yes | - | Shlink origin without |
| Yes | - | Shlink API key |
| No |
| REST API major version |
| No |
| Per-request timeout in milliseconds |
| No |
| Enables deletion tools when set to |
Never commit an API key. Tool results and errors do not include it.
Tools
Short URLs
list_short_urlsget_short_urlcreate_short_urledit_short_urldelete_short_urlget_qr_code_url
get_qr_code_url supports Shlink's QR-code customization parameters: size,
margin, PNG or SVG format, error-correction level, block-size rounding, and
foreground/background colors. Shlink deprecated its built-in QR-code endpoint
in version 4.5, so this tool is provided for compatibility with instances that
still expose it.
Analytics and visits
get_visit_statsget_short_url_visitsget_tag_visitsget_domain_visitslist_orphan_visitslist_non_orphan_visitsdelete_short_url_visitsdelete_orphan_visits
Redirect rules, tags, and domains
get_redirect_rulesset_redirect_ruleslist_tagsrename_tagdelete_tagslist_domainsset_domain_redirects
Monitoring and integrations
shlink_healthget_mercure_info
All deletion tools require both SHLINK_ALLOW_DESTRUCTIVE=true and an explicit
confirm: true tool argument.
Test with MCP Inspector
Set the API key in the current shell, then launch the published package.
PowerShell:
$env:SHLINK_API_KEY="replace-me"
npx.cmd -y @modelcontextprotocol/inspector -e "SHLINK_BASE_URL=https://s.example.com" -e "SHLINK_API_KEY=$env:SHLINK_API_KEY" -e "SHLINK_API_VERSION=3" -e "SHLINK_ALLOW_DESTRUCTIVE=false" -- npx.cmd -y xs-shlink-mcpmacOS or Linux:
export SHLINK_API_KEY="replace-me"
npx -y @modelcontextprotocol/inspector \
-e SHLINK_BASE_URL=https://s.example.com \
-e SHLINK_API_KEY="$SHLINK_API_KEY" \
-e SHLINK_API_VERSION=3 \
-e SHLINK_ALLOW_DESTRUCTIVE=false \
-- npx -y xs-shlink-mcpStart with shlink_health, followed by list_short_urls.
Local development
git clone https://github.com/AlexGreenUK/XS-Shlink-MCP.git
cd XS-Shlink-MCP
npm install
npm run validateThe automated tests use mocked Shlink responses. They do not require or modify a live Shlink instance.
Useful commands:
npm run dev
npm run build
npm test
npm pack --dry-runReleases
Contributing
See CONTRIBUTING.md.
Security
See SECURITY.md. Use GitHub's private vulnerability reporting instead of opening a public issue for sensitive reports.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to create, manage, and analyze short URLs through complete URL shortening functionality. Supports batch operations, custom domains, click statistics, and comprehensive link management.Last updated6411MIT
- AlicenseAqualityBmaintenanceEnables interaction with Linkly's URL shortener and link management platform. Supports creating and managing short links, viewing analytics, configuring custom domains and webhooks, and exporting click data.Last updated20421MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to interact with a Shlink URL shortening instance, allowing creation, listing, retrieval, and deletion of short URLs, as well as tag management.Last updated53Apache 2.0

@cliqo/mcpofficial
AlicenseAqualityBmaintenanceEnables users to manage short links via cliqo.link, including creating, listing, viewing, and revoking links, as well as checking credit balances.Last updated5231MIT
Related MCP Connectors
Create and manage short links, track clicks, and automate URL management
Create and manage trackable QR codes with scan tracking, analytics, and dynamic URL updates.
Create short links, QR codes, UTM templates, vCards, and landing pages from your AI assistant.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AlexGreenUK/XS-Shlink-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server