🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

missinglinkz

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

missinglinkz

Campaign link builder for AI agents. Generate UTM-tracked links with enforced naming conventions. CLI + MCP server.

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
72
2.86%
Maintainers
1
Weekly downloads
 
Created
Source

MissingLinkz

npm version License: MIT

Campaign link builder for AI agents. Generate UTM-tracked links with enforced naming conventions. CLI + MCP server.

Install

npm install -g missinglinkz

Quick Start

# 1. Register for a free account (50 links/month)
mlz auth register --email you@example.com

# 2. Build your first tracked link
mlz build --url "https://example.com/landing" --campaign "spring-launch" --source "linkedin" --medium "social"

# 3. Check your usage
mlz auth status

CLI Commands

mlz build \
  --url "https://example.com/landing" \
  --campaign "spring-launch" \
  --source "linkedin" \
  --medium "social" \
  --term "ai-tools" \
  --content "banner-a"

Returns structured JSON:

{
  "tracked_url": "https://example.com/landing?utm_source=linkedin&utm_medium=social&utm_campaign=spring-launch",
  "link_id": "lnk_abc12345",
  "campaign_id": "cmp_xyz78901",
  "params": {
    "utm_source": "linkedin",
    "utm_medium": "social",
    "utm_campaign": "spring-launch",
    "utm_term": "ai-tools",
    "utm_content": "banner-a"
  },
  "destination_url": "https://example.com/landing",
  "created_at": "2026-03-15T10:00:00.000Z"
}

Add --validate to check the destination URL before building:

mlz build --url "https://example.com" --campaign "test" --source "google" --medium "cpc" --validate

Validate a URL

mlz check https://example.com/landing

Checks URL format, HTTPS, resolution, redirect chains, and response time.

List campaigns

mlz campaigns list

Suggest consistent naming

mlz campaigns suggest --source linkedin
mlz campaigns suggest --medium email
mlz links list
mlz links list --campaign "spring-launch" --limit 10

Authentication

# Register a new account
mlz auth register --email you@example.com

# Log in with an existing key
mlz auth login --key mlz_live_...

# Check plan, usage, and limits
mlz auth status

Output format

All commands output JSON by default. Add --format human for readable output:

mlz build --url "..." --campaign "..." --source "..." --medium "..." --format human

MCP Server

MissingLinkz exposes all functionality as MCP tools. Start the server:

mlz mcp

Connect from Claude Code

Add to your MCP config:

{
  "mcpServers": {
    "missinglinkz": {
      "command": "mlz",
      "args": ["mcp"],
      "env": {
        "MLZ_API_KEY": "mlz_live_..."
      }
    }
  }
}

MCP Tools

ToolDescription
mlz_build_linkGenerate a UTM-tagged link (stores via API)
mlz_list_campaignsList all campaigns
mlz_suggest_namingSuggest consistent naming for sources/mediums
mlz_list_linksList recently generated links
mlz_check_usageCheck API usage and remaining quota
mlz_registerRegister a new account (for agent self-registration)

Environment Variables

VariableRequiredDescription
MLZ_API_KEYYesYour MissingLinkz API key
MLZ_API_URLNoOverride API URL (default: https://api.missinglinkz.io)
MLZ_FORMATNoDefault output format: json (default) or human

Config is stored in ~/.missinglinkz/config.json. Env vars take priority.

Naming Convention Enforcement

MissingLinkz automatically enforces clean UTM naming:

  • Converts to lowercase
  • Replaces spaces with hyphens
  • Strips special characters
  • Warns on inconsistencies with existing campaign names

"Spring Launch 2026" becomes "spring-launch-2026".

Pricing

PlanPriceLinks/month
Free$050
Agent$9/mo2,000
Pro$29/mo20,000
Enterprise$99/moUnlimited

Free tier requires no credit card. When limits are exceeded, the CLI returns a structured error with upgrade instructions that agents can present to users.

Agent Workflow Examples

Multi-platform campaign launch

# Build links for each platform
mlz build --url "https://example.com/launch" --campaign "product-launch" --source "linkedin" --medium "social"
mlz build --url "https://example.com/launch" --campaign "product-launch" --source "twitter" --medium "social"
mlz build --url "https://example.com/launch" --campaign "product-launch" --source "newsletter" --medium "email"
mlz build --url "https://example.com/launch" --campaign "product-launch" --source "google" --medium "cpc"

Check consistency before building

# See what sources have been used before
mlz campaigns suggest --source linked
# Returns: ["linkedin"] — use "linkedin" not "linked"

Offline mode

The mlz build command works without an API key for basic UTM generation. Links won't be stored or tracked, but the URL is still valid.

SKILL.md

This package includes a SKILL.md file for agent discovery via OpenClaw and Claude Code. It documents all commands and environment variables needed to use MissingLinkz.

License

MIT

Keywords

utm

FAQs

Package last updated on 23 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts