Source: https://proxvn.io.vn/docs/mcp

# MCP for AI agents

` proxvn mcp ` runs a [Model Context Protocol](https://modelcontextprotocol.io) server over stdio. AI coding agents can call it to open tunnels on their own — for example when they need a public URL to test a webhook.

## Tools

| Tool | What it does |
| --- | --- |
| ` start_tunnel ` | Open an ` http `/` tcp `/` udp ` tunnel for a port and return the public URL |
| ` list_tunnels ` | List open tunnels |
| ` stop_tunnel ` | Close a tunnel by id |
| ` check_local_port ` | Check a TCP connection to the local app; this does not verify that a UDP service works |
| ` server_status ` | ProxVN server status |

## Claude Code

$` claude mcp add proxvn -- proxvn mcp `

## Cursor / Claude Desktop / other clients

```
{
  "mcpServers": {
    "proxvn": { "command": "proxvn", "args": ["mcp"] }
  }
}
```

In 9.x, MCP-created tunnels are anonymous; MCP does not forward the API key saved by ` proxvn login `. Use the regular CLI for account-linked tunnels and reserved names. For a self-hosted server, add ` "--server", "tunnel.example.com:8882", "--cert-pin", "VERIFIED_SHA256_PIN" ` after ` "mcp" ` in ` args `; see [how to obtain your server's pin](https://proxvn.io.vn/docs/self-host#client).

Tunnels are public. Only let agents expose development apps, never services holding real data.

[← Share a folder](https://proxvn.io.vn/docs/file-sharing)[Self-host a server →](https://proxvn.io.vn/docs/self-host)
