Ephemeral, human-friendly short URLs for Tollbooth MCP services
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add tollbooth-shortlinks -- python -m -e{
"mcpServers": {
"tollbooth-shortlinks": {
"command": "python",
"args": ["-m", "-e"],
"env": {
"NEON_SHORTLINKS_URL": "<neon_shortlinks_url>"
}
}
}
}NEON_SHORTLINKS_URLMCP Servers overview
# Tollbooth Shortlinks
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/lonniev/tollbooth-shortlinks)
[](https://python.org)
**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.*
---
## Why This Exists
OAuth Authorization URLs are long, ugly, and hostile to copy-paste:
```
https://api.schwab.com/v1/oauth/authorize?client_id=abc123&redirect_uri=https%3A%2F%2F
fastmcp.cloud%2Foauth%2Fcallback%3Fserver_id%3D...&scope=...&response_type=code&state=...
```
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
Val Town HTTP handler does the 302 redirect with zero interstitial.
## How It Works
```
MCP Server Shortlinks MCP Val Town
| | |
|-- create_shortlink(url) ---->| |
|<-- brave-otter-finds-gold ---| |
| | |
| (patron clicks short URL) | |
| | GET /brave-otter-.. |
| |<------------------------|
| | Neon lookup |
| |-- 302 redirect -------->|
| | |
| (24h later) | |
| | link expires silently |
```
## Tools
| Tool | Description |
|------|-------------|
| `create_shortlink` | Store a URL, get back a memorable slug (or supply your own) |
| `resolve_shortlink` | Look up where a slug points without redirecting |
| `delete_shortlink` | Remove a shortlink before it expires |
| `shortlink_status` | Health check showing active link count and TTL |
All tools are **free** -- no credits, no npub, no Tollbooth ledger required.
## Install
```bash
pip install -e ".[dev]"
```
## Run Locally
```bash
export NEON_SHORTLINKS_URL="postgres://user:pass@ep-xyz.us-east-2.aws.neon.tech/shortlinks"
python -c "from server import mcp; mcp.run()"
```
## Deploy to Horizon
The `.fastmcp.yaml` at the repo root is ready for `fastmcp deploy`.
## DPYC Identity
Tollbooth Shortlinks is registered as an **Advocate** in the DPYC Social Contract.
Peer MCP servers discover its URL via registry lookup:
```python
from tollbooth import resolve_service_by_name
shortlinks_url = resolve_service_by_name("tollbooth-shortlinks")
redirect_base = resolve_service_by_name("tollbooth-shortlinks-redirect")
```
## Related Repos
The Tollbooth DPYC™ ecosystem:
| Repo | Role |
|------|------|
| [tollbooth-dpyc](https://github.com/lonniev/tollbooth-dpyc) | The wheel -- operator-side credit ledger, BTCPay client, tool gating, constraint engine |
| [tollbooth-authority](https://github.com/lonniev/tollbooth-authority) | The institution -- fee collection, Schnorr signing, purchase certification |
| [dpyc-oracle](https://github.com/lonniev/dpyc-oracle) | The oracle -- Social Contract governance, membership, ban elections |
| [dpyc-community](https://github.com/lonniev/dpyc-community) | The registry -- governance data, operator catalog, community rules |
| [tollbooth-sample](https://github.com/lonniev/tollbooth-sample) | Reference operator -- weather API with full Tollbooth wiring |
| [cypher-mcp](https://github.com/lonniev/cypher-mcp) | Monetized graph answers -- named Cypher over Neo4j/AuraDB |
| [schwab-mcp](https://github.com/lonniev/schwab-mcp) | Charles Schwab brokerage MCP -- trading, quotes, portfolio access |
| [excalibur-mcp](https://github.com/lonniev/excalibur-mcp) | eXcalibur -- formatted posting to X (Twitter) |
| [thebrain-mcp](https://github.com/lonniev/thebrain-mcp) | Personal Brain MCP -- thought graphs, knowledge management |
| [taxsort-mcp](https://github.com/lonniev/taxsort-mcp) | Tax sorting and classification MCP |
| [optionality-mcp](https://github.com/lonniev/optionality-mcp) | Options analytics MCP |
| **tollbooth-shortlinks** (this repo) | Community utility -- ephemeral short URLs for OAuth flows |
| [tollbooth-oauth2-collector](https://github.com/lonniev/tollbooth-oauth2-collector) | OAuth2 callback collector -- browser-based token exchange |
| [tollbooth-pricing-studio](https://github.com/lonniev/tollbooth-pricing-studio) | iOS app -- operator dashboard and pricing model editor |
## License
Apache-2.0. See [LICENSE](LICENSE) for details.
What people ask about tollbooth-shortlinks
What is lonniev/tollbooth-shortlinks?
+
lonniev/tollbooth-shortlinks is mcp servers for the Claude AI ecosystem. Ephemeral, human-friendly short URLs for Tollbooth MCP services It has 0 GitHub stars and its last recorded update is dated 2026-08-26.
How do I install tollbooth-shortlinks?
+
You can install tollbooth-shortlinks by cloning the repository (https://github.com/lonniev/tollbooth-shortlinks) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is lonniev/tollbooth-shortlinks safe to use?
+
Our security agent has analyzed lonniev/tollbooth-shortlinks and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains lonniev/tollbooth-shortlinks?
+
lonniev/tollbooth-shortlinks is maintained by lonniev. The last recorded GitHub activity is dated 2026-08-26, with 0 open issues.
Are there alternatives to tollbooth-shortlinks?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy tollbooth-shortlinks to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/lonniev-tollbooth-shortlinks)<a href="https://claudewave.com/repo/lonniev-tollbooth-shortlinks"><img src="https://claudewave.com/api/badge/lonniev-tollbooth-shortlinks" alt="Featured on ClaudeWave: lonniev/tollbooth-shortlinks" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!