Zip1
officialA free URL shortener
What can you do with Zip1 MCP?
- Create short links — Ask your assistant to shorten a URL, optionally with a custom alias, password, click limit, expiry, or private note via
create_short_url. - Check link analytics — Request click totals, unique visitors, last click time, and top five countries for a short code.
- Validate URLs first — Confirm a URL passes format, blocklist, and redirect checks before shortening it.
- Generate short codes — Get a random 6-character code to use as a custom alias.
- Password-protected sharing — Create and read stats for links secured with a password.
Documentation
Quick start
Add zip1.io to Claude Code with one command in a terminal:
claude mcp add --transport http zip1 https://zip1.io/mcp
Then ask Claude in plain words, for example:
"Shorten https://example.com for me"
MCP needs no API key and no account. To confirm it is connected, run claude mcp list. Everything below covers Claude Desktop, other clients, and what each tool does.
The REST API is different: without a key, it allows 20 links a day from one IP. That rule does not apply to MCP.
Claude Desktop
Option 1: add it as a custom connector
Claude Desktop can connect to a remote MCP server by URL. Add a custom connector in Claude's connector settings and enter this URL:
https://zip1.io/mcp
Leave authentication empty. Requests then come from Anthropic's servers, not from your computer. Our rate limits count per IP address.
Option 2: a local bridge with mcp-remote
mcp-remote runs on your computer and passes Claude Desktop's stdio messages to the HTTP server. It needs Node.js. Edit your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"zip1": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://zip1.io/mcp"]
}
}
}
Restart Claude Desktop and the zip1.io tools will be available.
Option 3: your own Node.js proxy
A minimal stdio-to-HTTP bridge. It sends each line to the server and prints the reply. Replies to notifications (messages with no id) are not printed.
#!/usr/bin/env node
const https = require('https');
const readline = require('readline');
const MCP_URL = 'https://zip1.io/mcp';
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
rl.on('line', (line) => {
const request = JSON.parse(line);
const isNotification = request.id === undefined;
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
}
};
const req = https.request(MCP_URL, options, (res) => {
let data = '';
res.on('data', (chunk) => data += chunk);
res.on('end', () => {
if (!isNotification) console.log(data);
});
});
req.on('error', (error) => {
console.error(JSON.stringify({
jsonrpc: '2.0',
id: request.id,
error: { code: -32000, message: error.message }
}));
});
req.write(JSON.stringify(request));
req.end();
});
Make it executable and add to your Claude Desktop config:
chmod +x zip1-mcp-proxy.js
{
"mcpServers": {
"zip1": {
"command": "node",
"args": ["/path/to/zip1-mcp-proxy.js"]
}
}
}
Other clients and server details
The zip1.io MCP server is an HTTP endpoint that any MCP client with HTTP transport can connect to.
Server Details
| Configuration Item | Value |
|---|---|
| Server URL | https://zip1.io/mcp |
| Transport | HTTP (Streamable). Each POST gets one JSON reply. |
| Protocol Version | MCP 2024-11-05 |
| Message Format | JSON-RPC 2.0 |
| Methods | initialize, tools/list, tools/call |
| Authentication | None. No API key (rate-limited per IP) |
| Rate Limit | 30 requests/minute per IP, and 1,000 create_short_url calls a day per IP |
| Available Tools | 4 (create_short_url, get_url_stats, validate_url, generate_short_code) |
Using with Other MCP Clients
Send JSON-RPC 2.0 messages by POST with Content-Type: application/json. Here are some examples:
Direct HTTP requests (curl)
curl -X POST https://zip1.io/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}'
curl -X POST https://zip1.io/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "create_short_url",
"arguments": {
"url": "https://example.com",
"alias": "my-link"
}
}
}'
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [
{
"type": "text",
"text": "✅ Short URL created: https://zip1.io/my-link\n📝 Custom alias: my-link\n🔗 Original URL: https://example.com\n\n📊 View stats: https://zip1.io/stats/my-link"
}
]
}
}
Python client example
import requests
MCP_URL = "https://zip1.io/mcp"
def call_mcp_tool(tool_name, arguments):
payload = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": tool_name,
"arguments": arguments
}
}
response = requests.post(MCP_URL, json=payload)
return response.json()
# Example usage
result = call_mcp_tool("create_short_url", {
"url": "https://example.com",
"alias": "mcp-docs"
})
print(result["result"]["content"][0]["text"])
Self-hosted configuration
If you're running your own instance of zip1.io, configure clients to point to your instance. The links in tool replies always start with https://zip1.io/, whatever host serves them.
claude mcp add --transport http zip1 https://your-domain.com/mcp
{
"mcpServers": {
"zip1-local": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:8000/mcp", "--allow-http"]
}
}
}
Example prompts
Here are some natural language prompts you can use with Claude:
Creating Short URLs
"Shorten https://example.com for me"
Tool reply:
✅ Short URL created: https://zip1.io/\[code\]
🔤 Generated code: [code]
🔗 Original URL: https://example.com
📊 View stats: https://zip1.io/stats/\[code\]
Custom Aliases & Passwords
"Create a short URL for https://example.com with alias 'docs' and password 'Preview@2026'"
Tool reply:
✅ Short URL created: https://zip1.io/docs
📝 Custom alias: docs
🔒 Password protected: Yes
🔗 Original URL: https://example.com
📊 View stats: https://zip1.io/stats/docs
Getting Analytics
"Show me the stats for short code 'docs', password 'Preview@2026'"
Tool reply:
📊 Statistics for: https://zip1.io/docs
🔗 Original URL: https://example.com
👆 Total clicks: 127
👤 Unique clicks: 89
🕐 Last click: 2026-11-20 14:23:00
🔒 Password protected: Yes
📅 Created: 2026-11-15T10:30:00.000000+00:00
🌍 Top countries:
1. United States: 54 clicks
2. United Kingdom: 23 clicks
3. Canada: 18 clicks
URL Validation
"Can I shorten ftp://myserver.com/file.zip?"
Tool reply:
❌ URL is invalid: Browsers no longer open ftp:// links, so the short link would be dead on arrival. Only http:// and https:// links can be shortened.
Available tools
The zip1.io MCP server provides four tools. Each returns one text block. A refusal is a normal reply whose text starts with Error: or ❌, at HTTP 200.
| Tool | Description | Example Usage |
|---|---|---|
create_short_url | Create a short URL with an optional custom alias, password, max clicks, expiry time and private note | "Shorten this URL with alias 'mylink'" |
get_url_stats | Click totals, unique visitors, the time of the last click, and the top five countries | "Get stats for short code 'abc123', password 'Preview@2026'" |
validate_url | Check whether a URL is valid and passes our destination checks | "Can I shorten https://example.com?" |
generate_short_code | Suggest a random 6-character code | "Generate a random short code" |
create_short_url
| Argument | Required | Rules |
|---|---|---|
url | Yes | Starts with http:// or https://. Up to 8,192 characters. Spaces at either end are removed. |
alias | No | Letters, numbers, hyphens and underscores, or emoji only (up to 15). A longer text alias is cut to its first 12 characters. Without one, a random 6-character code is made. |
password | No | At least 8 characters, with a letter, a number, and @ or .. No two of @ and . in a row. Stored as a bcrypt hash. |
max_clicks | No | A positive integer. The link stops redirecting after that many clicks. |
expiration_time | No | ISO 8601 with a timezone, for example 2026-12-31T23:59:00Z. At least 5 minutes in the future. The reply shows it in UTC. |
description | No | A private note for your own integration, up to 100 characters. It is not shown on the link's public pages. Keep it free of personal data you wouldn't want stored. The create reply returns it. |
The URL is checked first: format, our blocklist, the network you are creating from, how many links to that destination are being made right now, Google Safe Browsing (when configured), and where its redirects lead. A host name that does not resolve is refused. These are the same checks as the website and the REST API. The alias, password, max clicks, expiry and note are checked after that. The first failure is the reply.
The reply lists the short URL, the alias or generated code, any options set, the original URL, and the stats page. An emoji link's URL is percent-encoded.
Errors you can get, as written:
Error: URL is requiredError: Invalid URL.followed by the reasonError: This URL is blockedError: Short links cannot be created from this network.Error: Too many links to this destination are being created right now…(try again in an hour)Error: Google Safe Browsing lists this destination…orError: This link redirects to a destination we block…Error: Invalid alias format. Use letters, numbers, hyphens, underscores, or emojiError: Alias '…' already exists. Please choose a different oneError: Invalid password formatError: max_clicks must be a positive integer no larger than 9223372036854775807Error: Invalid expiration_time. Must be ISO 8601 with timezone (e.g. 2026-12-31T23:59:00Z) and at least 5 minutes in the future.Error: Description must be 100 characters or lessError: We could not confirm your link was saved. Please try again in a moment.
get_url_stats
Takes short_code (required): the code or custom alias, without the domain. Takes password when the link is password-protected. Pass the password as that argument, never in a URL.
Anyone with the short code can read a link's stats. Password-protected links also need the password. The reply lists the destination, total and unique clicks, the last click (UTC), max clicks and clicks remaining, the expiry, whether a password is set, the creation time, and the top five countries. A roulette link also lists each destination with its clicks. The reply never includes visitor IP addresses.
- Unknown code:
❌ Short URL not found: … - Password-protected link, no password:
Error: Password required. A wrong one:Error: Invalid password. Neither returns any link fields (no destination, no clicks). - The 10th failed call for one link from one IP locks it. Calls with no password count as failures. That call and the ones after it return HTTP 429 with
Retry-Afterand a JSON-RPC error (code-32029, withretry_afterin seconds):Too many wrong passwords. Try again in 15 minutes. - A blocked link still returns its click counts. In place of the destination the reply says
This link was blocked. A roulette link's destinations are left out too.
validate_url
Takes url (required). Runs the format check, our blocklist, Google Safe Browsing (when configured) and the redirect check, the same as create_short_url. It does not check the network you are on, the destination's current volume, or an alias, so a create can still be refused after a pass.
✅ URL is valid and can be shortened: …❌ URL is invalid: …with the reason❌ URL is blocked: …with the reason
generate_short_code
Takes no arguments. Returns 6 random letters and numbers. The code is not reserved, and create_short_url makes its own unless you pass one as alias.
Technical details
MCP Endpoint
POST /mcp
JSON-RPC 2.0, one message per request. Batches are not supported. A database outage inside a tool is a normal reply starting Error:; try again in a moment. Each request gets one application/json reply; there is no event stream and no session ID.
initializealways answers with protocol version2024-11-05and thetoolscapability.tools/listandtools/callwork as in the MCP spec.- Any other method, including notifications such as
notifications/initialized, gets error-32601(method not found). Claude Code andmcp-remoteignore it.
GET /mcp
Returns server information and the tool list as JSON. It does not open an event stream. GET is not rate-limited.
Protocol Information
- Protocol Version: MCP 2024-11-05
- Transport: Streamable HTTP
- Message Format: JSON-RPC 2.0
- Rate Limit: 30 requests per minute per IP. Every POST counts, including
initializeandtools/list. - Daily ceiling: 1,000
create_short_urlcalls a day per IP. Other calls do not count toward it. It is counted separately from the REST API's.
Past either limit you get HTTP 429 with Retry-After and a plain JSON body, not a JSON-RPC message: {"error": "ratelimit exceeded 30 per 1 minute"} or {"error": "ratelimit exceeded 1000 per 1 day"}.
Security
- All communication uses HTTPS encryption
- Passwords are hashed with bcrypt before storage
get_url_statsdoes not return a password-protected link's destination or statistics until thepasswordargument matches- Rate limiting prevents abuse
create_short_urlruns the same destination checks as the website and the REST API
Use cases
Content Creation
Generate short URLs while writing blog posts, documentation, or social media content without leaving your AI assistant.
Quick Analytics
Ask for link performance during conversations. "How many clicks did my campaign link get?"
Secure Sharing
Create password-protected links on-the-fly when sharing sensitive information in team chats.
Campaign Management
Create custom-aliased URLs for marketing campaigns with natural language commands.
Troubleshooting
Rate limiting errors?
- The MCP endpoint has a limit of 30 requests per minute
- Wait a minute and try again. The
Retry-Afterheader says how many seconds. - If the message says
per 1 day, this IP has made 1,000 links today. Other tools still work.
Tools not appearing in Claude Code?
- Ensure the MCP server URL is accessible
- Try visiting https://zip1.io/mcp in your browser
- Verify your MCP configuration with
claude mcp list
Claude Desktop not connecting?
- Check that your config file is valid JSON
- For
mcp-remote, check that Node.js is installed andnpxis on your path - Restart Claude Desktop after a change
Resources and documentation
- Official MCP Documentation - Learn more about the Model Context Protocol
- MCP Python SDK - Build your own MCP servers
- REST API Documentation - Traditional API access
Ready to Get Started?
Add zip1.io to Claude Code now and start shortening URLs with AI
claude mcp add --transport http zip1 https://zip1.io/mcp