shlink-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port. Default 3000. | 3000 |
| SHLINK_URL | Yes | Required. Origin, http or https, no userinfo, query, or hash. Example http://127.0.0.1:8096. | |
| MCP_TRANSPORT | No | stdio or http. --http overrides. | |
| SHLINK_API_KEY | Yes | Required. Sent as the header X-Api-Key. Redacted in logs, errors, and tool results. | |
| SHLINK_CONTACT | No | Contact token in the User-Agent. Must not contain the API key. | |
| SHLINK_TOOLSETS | No | Comma list, or all. Default is the read-only set. | |
| SHLINK_PER_MINUTE | No | Local request budget. Default 30. Cache hits do not spend it. | 30 |
| SHLINK_TIMEOUT_MS | No | Upstream timeout. Default 20000. | 20000 |
| SHLINK_ALLOW_WRITES | No | Must be the literal true before a confirmed write is sent. | |
| SHLINK_CACHE_TTL_SEC | No | Read cache TTL. Default 60. Writes clear the cache. | 60 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| shlink_domainsC | shlink_domains covers the domains toolset (1 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: list. |
| shlink_metaB | shlink_meta covers the meta toolset (2 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: mercure, health. |
| shlink_redirect_rulesB | shlink_redirect_rules covers the redirect_rules toolset (1 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: list. |
| shlink_short_urlsB | shlink_short_urls covers the short_urls toolset (2 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: list, get. |
| shlink_tagsC | shlink_tags covers the tags toolset (2 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: list, stats. |
| shlink_visitsB | shlink_visits covers the visits toolset (6 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: global, short_url, tag, domain, orphan, non_orphan. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
The six tools are cleanly grouped by Shlink domain area (domains, meta, redirect rules, short URLs, tags, visits), so their broad purposes are distinct. Some internal ambiguity remains because each tool multiplexes several actions via an `action` parameter, but the tool-level boundaries are mostly clear.
All tool names follow a consistent `shlink_<domain>` snake_case pattern, with no mixed conventions or vague standalone verbs. The naming makes the resource grouping predictable.
Six tools is a well-scoped surface for the apparent Shlink API domain, especially since each tool bundles related operations. The count avoids both extreme fragmentation and excessive aggregation.
The surface is heavily read-oriented: short URLs support only list/get with no create/update/delete, domains only list, tags only list/stats, and redirect rules only list. These are significant gaps for an agent expected to manage a Shlink instance.