create_shortlink
Create Shortlink
Create an ephemeral short URL that expires after 24 hours.
url必填slug
io.github.lonniev由 GitHub 账号 lonniev 发布v0.2.0更新于 Oct 24, 2026
Ephemeral, human-friendly short URLs for Tollbooth MCP services
把长网址转换成 24 小时后过期的四词短链接,适用于 OAuth 等一次性链接。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.lonniev%2Ftollbooth-shortlinks/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"tollbooth-shortlinks": {
"type": "http",
"url": "https://tollbooth-shortlinks.fastmcp.app/mcp"
}
}
}Don't Pester Your Customer™ (DPYC™) — Ephemeral, human-friendly short URLs for the Tollbooth ecosystem.
The metaphors in this project are drawn with admiration from The Phantom Tollbooth by Norton Juster, illustrated by Jules Feiffer (1961). Milo, Tock, the Tollbooth, Dictionopolis, and Digitopolis are creations of Mr. Juster's extraordinary imagination. We just built the payment infrastructure.
OAuth Authorization URLs are long, ugly, and hostile to copy-paste:
Traditional link shorteners have become opinionated. They inject interstitial pages, track clicks, require accounts, gate features behind paywalls, or silently expire links on their own schedule. When an MCP server needs to hand a patron a one-time URL for an OAuth dance, none of that belongs in the path.
Tollbooth Shortlinks is a community utility with no monetization. It turns
any URL into a memorable four-word phrase like brave-otter-finds-gold, stores
the mapping in Neon Postgres, and expires it after 24 hours. A companion
Cloudflare Worker does the 302 redirect with zero interstitial.
All tools are free -- no credits, no npub, no Tollbooth ledger required.
The redirect Worker in worker/redirect.js reads the same NEON_SHORTLINKS_URL, set as a Worker secret. A change to it on main deploys it (.github/workflows/deploy-worker.yml, which needs the CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID repo secrets).
The fastmcp.json at the repo root is ready for fastmcp deploy.
Tollbooth Shortlinks is registered as an Advocate in the DPYC Social Contract.
Peer MCP servers discover its URL by asking the Oracle, and create_shortlink
returns the full short_url, so a peer never needs the redirect host:
Operators built on tollbooth-dpyc get this for free: tollbooth.shortlinks.create_shortlink(url)
does the lookup and the call, best-effort.
The Tollbooth DPYC™ ecosystem:
Apache-2.0. See LICENSE for details.
来源:README.md,提交 b7fc2d0
Create Shortlink
Create an ephemeral short URL that expires after 24 hours.
url必填slugResolve Shortlink
Look up where a slug points without redirecting.
slug必填Delete Shortlink
Delete a shortlink before it expires.
slug必填Shortlink Status
Health check — shows the number of active shortlinks and TTL.
无需输入参数。
已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
https://api.schwab.com/v1/oauth/authorize?client_id=abc123&redirect_uri=https%3A%2F%2Ffastmcp.cloud%2Foauth%2Fcallback%3Fserver_id%3D...&scope=...&response_type=code&state=...MCP Server / Patron Shortlinks MCP Neon CF Worker | | | | |-- create_shortlink(url) ---->|-- INSERT ------>| | |<-- short_url ----------------| | | | | | | |-- GET /brave-otter-finds-gold ----------------------------> | | | |<-- lookup ---| |<-- 302 redirect ----------------------------------------------| | | | | | (24h later) | expired rows are deleted |pip install -e ".[dev]"export NEON_SHORTLINKS_URL="<your Neon connection string>"# optional: the redirect host put in front of each slug (default https://go.tollbooth-dpyc.com)export SHORTLINK_REDIRECT_BASE="https://go.tollbooth-dpyc.com"python -c "from server import mcp; mcp.run()"from tollbooth.oracle_client import default_oracle_client
svc = await default_oracle_client().resolve_service(name="tollbooth-shortlinks")shortlinks_url = (svc or {}).get("url", "")