lnkify
OfficialClick 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., "@lnkifyCreate a short link for https://example.com with slug launch"
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.
🔗 lnkify CLI
Not just a URL Shortener. Open Source, fully customizable.
Manage your Lnkify links, domains, API keys, and analytics straight from the terminal — and plug Lnkify into any AI agent over MCP.
Install
npm install -g lnkify
# or run without installing
npx lnkify --helpRequires Node.js >= 22.
Related MCP server: agentforge
Quickstart
# 1. Point at your server (defaults to http://localhost:4000)
lnkify config set url http://localhost:4000
# 2. Authenticate — interactive login...
lnkify login
# ...or use a scoped API key (lf_live_…)
lnkify config set api-key lf_live_xxxxxxxxxxxx
# 3. Create and manage links
lnkify links create https://example.com --slug launch --track
lnkify links list
lnkify resolve launch
lnkify analyticsConnecting to a server
The CLI is local-first (defaults to http://localhost:4000) but talks to any
Lnkify instance, local or remote. The host and credentials are resolved with this
precedence (highest wins):
Flags —
--url,--api-keyEnvironment —
LNKIFY_API_URL,LNKIFY_API_KEYActive profile — selected with
--profile <name>(else the default profile)Built-in default —
http://localhost:4000
Profiles (multiple servers)
lnkify --profile prod config set url https://links.acme.com
lnkify --profile prod config set api-key lf_live_xxxx
lnkify --profile prod links list # hit prod
lnkify links list # hit local defaultConfig lives at ~/.config/lnkify/config.json (honors $XDG_CONFIG_HOME) and is
written with 0600 permissions because it holds secrets.
Commands
Command | Description |
| Authenticate and inspect the current user |
| Manage URL, API key, and profiles |
| Create a short link ( |
| List links ( |
| Inspect, edit, or remove a link |
| Bulk import from JSON/CSV ( |
| Resolve a slug to its destination |
| Aggregate totals and top links |
| Manage custom domains |
| Manage API keys |
| Run the CLI as a stdio MCP server for AI agents |
| Print/write an MCP client config snippet |
Add --json to any command for clean, pipeable machine output:
lnkify links list --json | jq '.items[].lnkify'AI agents (MCP)
lnkify mcp serve exposes your links as Model Context Protocol tools over stdio, so
agents like Claude can create and manage short links on your behalf using your
configured credentials.
lnkify mcp install --client claude # prints a ready-to-paste config blockDevelopment
pnpm install
pnpm dev # tsup --watch
pnpm build
pnpm test # node:test via tsx
pnpm lint
pnpm typecheckContributing
Contributions are welcome — see CONTRIBUTING.md for setup, project layout, and the checks to run before opening a PR.
License
MIT © Mohit Yadav
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.
Latest Blog Posts
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/lnkify/lnkify-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server