y.hn for agents

Give your agent a safe short-link workspace.

Create links, organize campaigns, inspect analytics, and manage webhooks without teaching your agent the API by hand.

Copy prompt for AI

Works with any agent that can call HTTP APIs.

Use y.hn to create and manage short links for me.
First read the agent instructions at https://y.hn/llms.txt and the API schema at https://y.hn/openapi.json.
Help me create links, organize campaigns, inspect analytics, and manage webhooks through the documented API.
Prefer reversible actions: archive links instead of permanently deleting them.
Before changing a destination URL or deleting anything, show me the intended change and ask for confirmation.
Never print or store my API key in source code, logs, URLs, or chat messages.

Install MCP

For Claude Code, Cursor, Cline, and other MCP clients.

{
  "mcpServers": {
    "yhn": {
      "command": "npx",
      "args": ["-y", "yhn-mcp"],
      "env": { "YHN_API_KEY": "yhn_YOUR_KEY" }
    }
  }
}

Credentials are configured separately and are never embedded in the copyable prompt. Permanent deletion requires explicit confirmation.