lnkify

lnkify

MCP server that enables AI agents to manage Lnkify links, domains, API keys, and analytics. Allows creation and resolution of short links through natural language.

Category
Visit Server

README

<div align="center">

🔗 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.

</div>


Install

npm install -g lnkify
# or run without installing
npx lnkify --help

Requires Node.js >= 22.

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 analytics

Connecting 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):

  1. Flags — --url, --api-key
  2. Environment — LNKIFY_API_URL, LNKIFY_API_KEY
  3. Active profile — selected with --profile <name> (else the default profile)
  4. 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 default

Config lives at ~/.config/lnkify/config.json (honors $XDG_CONFIG_HOME) and is written with 0600 permissions because it holds secrets.

Commands

Command Description
lnkify login / logout / whoami Authenticate and inspect the current user
lnkify config set|get|list Manage URL, API key, and profiles
lnkify links create <target> Create a short link (--slug, --title, --track, --domain, --rule)
lnkify links list List links (--search, --take, --skip, --page)
lnkify links get|update|delete <id> Inspect, edit, or remove a link
lnkify links bulk <create|update|delete> --file Bulk import from JSON/CSV (--dry-run)
lnkify resolve <slug> Resolve a slug to its destination
lnkify analytics Aggregate totals and top links
lnkify domains add|list|verify|rm Manage custom domains
lnkify apikeys create|list|revoke Manage API keys
lnkify mcp serve Run the CLI as a stdio MCP server for AI agents
lnkify mcp install 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 block

Development

pnpm install
pnpm dev          # tsup --watch
pnpm build
pnpm test         # node:test via tsx
pnpm lint
pnpm typecheck

Contributing

Contributions are welcome — see CONTRIBUTING.md for setup, project layout, and the checks to run before opening a PR.

License

MIT © Mohit Yadav

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured