This npm package wraps the TezTun tunneling service so you can manage your infrastructure through Claude or any MCP client. It exposes nine tools that let you list active tunnels and their public URLs, reserve and release subdomains, mint and revoke service tokens, and check your account plan. Under the hood it spawns either the TezTun Go CLI or a Docker container, so there's no bundled binary. You'll need a service token from app.teztun.uz to authenticate. Useful when you're debugging webhooks or provisioning ephemeral environments and want your AI editor to handle the TezTun API calls instead of switching to a dashboard or terminal.
Official TezTun MCP server, as a single-install npm package for Claude Desktop / Claude Code / Cursor / Zed / Windsurf / any Model Context Protocol client.
Lets your AI editor manage your TezTun infrastructure through chat:
list_tunnelsreserve_subdomaincreate_service_tokenrevoke_service_tokenYou don't install this manually — MCP clients run it via npx. Pick your client:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"teztun": {
"command": "npx",
"args": ["-y", "@asadullokhn/teztun-mcp"],
"env": { "TEZTUN_TOKEN": "tzt_your-token-here" }
}
}
}
claude mcp add --scope user teztun \
-e TEZTUN_TOKEN=tzt_your-token-here \
-- npx -y @asadullokhn/teztun-mcp
Each editor has an MCP config file (~/.cursor/mcp.json, etc.). The block shape is the same as the Claude Desktop example above.
Sign up at app.teztun.uz, then mint a service token. On the Max plan ($10/year) tokens never expire — recommended for AI editor use.
This package is a thin launcher. It tries, in order:
teztun) is installed, it runs teztun mcp.docker run --rm -i -e TEZTUN_TOKEN asadullokhn/teztun:latest mcp.No bundled binaries, no postinstall side effects. The MCP server itself is the Go binary from teztun.uz/download, or the asadullokhn/teztun image on Docker Hub.
| Tool | What it does |
|---|---|
get_account | Current user (plan, status) |
list_tunnels | Active tunnels with their public URLs |
list_subdomains | Reserved subdomains |
reserve_subdomain(name) | Reserve a new subdomain (plan-gated) |
release_subdomain(id) | Release a reserved subdomain (destructive) |
list_custom_domains | Custom domains on the Max plan |
list_service_tokens | Service tokens the user has minted |
create_service_token(name, expiry_seconds?, expire_never?) | Mint a token |
revoke_service_token(id) | Revoke a service token (destructive) |
MIT. Launcher only — the MCP server binary it spawns is the official TezTun client.
TEZTUN_TOKEN*secretA TezTun service token (starts with tzt_). Mint one at https://app.teztun.uz/tokens.