ngsrv-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NGSRV_API_TOKEN | No | Your ngsrv API token (optional for quick start, required for account features) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tunnel.startA | 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. |
| tunnel.listA | 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. |
| tunnel.stopA | 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. |
| token.provisionA | 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. |
| docs.installA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| tunnel.quickstart | Step-by-step prompt to expose a local dev server (default port 3000) on a public HTTPS URL. |
| docs.setup | Shows how to add ngsrv to Cursor or Claude Desktop using npx and optional API token. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| quickstart | Install commands and links for ngsrv CLI, npx @ngsrv/cli, and ngsrv-mcp. |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ngsrv/ngsrv-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server