ngsrv-mcp
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ngsrv-mcp expose local port 8080"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@ngsrv/mcp
MCP server for ngsrv tunnels. Expose localhost on public HTTPS from Cursor and other MCP clients.
ngsrv is a developer tunnel tool (CLI, YAML, webhooks). This package is the optional MCP integration.
Cursor
~/.cursor/mcp.json:
{
"mcpServers": {
"ngsrv": {
"command": "npx",
"args": ["-y", "@ngsrv/mcp@latest"]
}
}
}First tunnel.start provisions a free 12-hour device trial (no signup). Agent tokens skip the Free-tier visitor warning page.
Optional: NGSRV_API_TOKEN from ngsrv.com → API Tokens → Create agent token.
Related MCP server: tcpsh-mcp
Tools
Tool | Description |
|
|
| Active tunnels in this process |
| Stop by port |
| 12h agent token (trial or refresh) |
| Cursor config + install snippets |
Legacy aliases (start_tunnel, etc.) still work.
Registry install (optional)
Some MCP clients support Smithery:
smithery mcp add ngsrv/ngsrvDocs
Available Tools
5 toolsdocs.installInstall helpARead-onlyIdempotent
Return ngsrv CLI install commands and MCP client configuration snippets. Call when the user asks how to install ngsrv, configure Cursor, or use npx. Does not start a tunnel.
Inputs: client.
token.provisionProvision agent tokenARead-only
Obtain a 12-hour ngsrv agent token for tunnel commands. Uses NGSRV_API_TOKEN when set; otherwise starts a free device trial (no signup). Returns token_prefix and expiry — not the full secret.
Inputs: refresh.
tunnel.listList tunnelsARead-onlyIdempotent
List HTTPS tunnels started by this MCP process in the current session. Returns port, public_url, and started_at for each tunnel. Call this before tunnel.stop to confirm which port to close.
Inputs: limit.
tunnel.startStart tunnelA
Expose a local HTTP server on a public HTTPS URL via ngsrv. Returns public_url and local_port. Use for webhooks, OAuth callbacks, and sharing dev servers. Call tunnel.list afterward to see active tunnels.
Inputs: port (required).
tunnel.stopStop tunnelADestructiveIdempotent
Stop an ngsrv tunnel started by this MCP session. Pass the same port given to tunnel.start. Call tunnel.list first if you are unsure which ports are active.
Inputs: port (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: installation documentation, token provisioning, and tunnel lifecycle management (list, start, stop). There is no overlap or ambiguity between them.
All tool names follow a consistent <category>.<action> pattern with lowercase and dots (e.g., docs.install, tunnel.start). No mixing of conventions or styles.
Five tools cover the essential operations for the ngsrv tunnel service: installation, token provisioning, and managing tunnels. The count is well-scoped and not excessive.
The tool surface covers the core workflow (install, auth, start/list/stop tunnels). Minor gaps exist, such as no tool to inspect token details or restart tunnels, but the set is functional for typical use cases.
Maintenance
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP (Model Context Protocol) server for rustunnel. Lets AI agents (Claude Code, Cursor, Windsurf) create and manage public tunnels to local services from inside an agent session.6663AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceMCP server for interactive TCP connection management, enabling opening listeners, managing sessions, port forwarding, proxy with logging, and local command execution from any MCP host.MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server with HTTP/stdio support, a web admin panel for managing services, capabilities, and user permissions with Bearer token authentication, enabling relay and access control for MCP tools.-
- FlicenseNot gradedqualityDmaintenanceA universal MCP server for registering internal, external, and OpenAPI-based APIs as MCP tools. It exposes them to MCP clients via Streamable HTTP and provides admin portal, RBAC/session auth, credential injection, and audit logging.-