Atlas / MCP servers / joaoh82 / Rustunnel

RustunnelBLOCK

mcp/joaoh82/rustunnel

Self-hosted, secure tunnel server in Rust. Expose local HTTP/HTTPS/TCP/UDP services to the public internet via TLS-encrypted WebSocket. Open-source, pay-as-you-go managed option, MCP server for AI agents.

Verdict
BLOCK
Grade
F
Trust score
47 /100
Exposed tools
—
Transport
stdio
License
AGPL-3.0
Stars
656
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/joaoh82/rustunnel/actions/workflows/ci.yml) [](LICENSE) [](https://www.rust-lang.org) [](https://skillselion.com/mcp/tool/io.github.joaoh82/rustunnel)

The open-source tunnel that scales with you. Don't pay for idle time. Secure, Rust-fast, and Pay-as-you-go.

Expose local services through a public server over encrypted WebSocket connections with TLS termination, HTTP/TCP proxying, a live dashboard, Prometheus metrics, and audit logging.

You can self-host or use our managed service.

Using an AI agent? rustunnel ships an MCP server — one-click setup for Cursor (then add your API token):

[](https://cursor.com/install-mcp?name=rustunnel&config=eyJjb21tYW5kIjoicnVzdHVubmVsLW1jcCIsImFyZ3MiOlsiLS1zZXJ2ZXIiLCJldS5lZGdlLnJ1c3R1bm5lbC5jb206NDA0MCIsIi0tYXBpIiwiaHR0cHM6Ly9ldS5lZGdlLnJ1c3R1bm5lbC5jb206ODQ0MyJdLCJlbnYiOnsiUlVTVFVOTkVMX1RPS0VOIjoiWU9VUl9UT0tFTiJ9fQ==)

For Claude Code, Claude Desktop, Windsurf, and others, see the agent integration guide or the agent manual at rustunnel.com/agents.md.

Table of Contents

  • Hosted service
  • Architecture overview
  • Requirements
  • Local development setup
  • Build
  • Run tests
  • Run the server locally
  • Run the client locally
  • [Git ho
Read from source at commit 94748dc82682OBSERVED · 2026-09-28
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add rustunnel-dashboard --env RUSTUNNEL_TOKEN=${RUSTUNNEL_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "rustunnel-dashboard": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "RUSTUNNEL_TOKEN": "${RUSTUNNEL_TOKEN}"
      }
    }
  }
}
03

Trust audit

BLOCKgrade F · trust 47/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)WARN
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (4 observation(s))
Network
declared (18 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
crates/rustunnel-server/src/dashboard/assets/_next/static/chunks/polyfills-42372ed130431b0a.js:1
!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
crates/rustunnel-mcp/src/tools.rs:276
a.push("--insecure".into());
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
crates/rustunnel-mcp/src/tools.rs:346
a.push("--insecure".into());
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
crates/rustunnel-mcp/src/tools.rs:790
assert!(a.contains(&"--insecure".to_string()));
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
integrations/install.sh:36
--insecure) INSECURE=1; shift ;;
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
integrations/install.sh:90
ARGS_JSON="$ARGS_JSON, \"--insecure\""
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
Makefile:26
TEST_DATABASE_URL=postgres://rustunnel:test@localhost:5432/rustunnel_test cargo test --workspace
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
Makefile:43
@echo "  export TEST_DATABASE_URL=postgres://rustunnel:test@localhost:5432/rustunnel_test"
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/rustunnel-client/src/inspect/server.rs:52
return Some((listener, format!("http://127.0.0.1:{port}")));
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/rustunnel-client/src/inspect/server.rs:69
Ok(listener) => return Some((listener, format!("http://127.0.0.1:{port}"))),
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/rustunnel-client/src/inspect/server.rs:493
assert!(url.starts_with("http://127.0.0.1:"));
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/rustunnel-client/src/output.rs:206
url: "http://127.0.0.1:4040".into(),
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/rustunnel-client/src/output.rs:210
r#"{"event":"inspector_ready","url":"http://127.0.0.1:4040"}"#
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/ci.yml:34
TEST_DATABASE_URL: postgres://rustunnel:test@localhost:5432/rustunnel_test
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
CLAUDE.md:43
TEST_DATABASE_URL=postgres://rustunnel:test@localhost:5432/rustunnel_test cargo test --workspace
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
README.md:225
TEST_DATABASE_URL=postgres://rustunnel:test@localhost:5432/rustunnel_test \
MEDIUMSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
plugins/claude-code/skills/rustunnel/SKILL.md:200
curl -fsSL https://raw.githubusercontent.com/joaoh82/rustunnel/main/integrations/install.sh | bash
MEDIUMSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
skills/rustunnel/SKILL.md:200
curl -fsSL https://raw.githubusercontent.com/joaoh82/rustunnel/main/integrations/install.sh | bash
LOWObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
README.md:18
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=rustunnel&config=eyJjb21tYW5kIjoicnVzdHVubmVsLW1jcCIsImFyZ3MiOlsiLS1zZXJ2ZXIiLCJldS5lZGdlLnJ1c3
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
dashboard-ui/package.json
next, react, react-dom, @types/node, @types/react, @types/react-dom, typescript
Why it matters. 7 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.authority_framing · CWE-94, CWE-1427
docs/api-reference.md:19
| Admin token | Value of `auth.admin_token` in `server.toml` | Full access — sees every tunnel and group across every tenant |
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
README.md:1131
The skill instructs the agent to read credentials from `~/.rustunnel/config.yml`
Why it matters. asks the agent to read credentials
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:365
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
docs/agent-integration.md:63
curl -fsSL https://raw.githubusercontent.com/joaoh82/rustunnel/main/integrations/install.sh | bash
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
README.md:902
curl -s -X POST https://your-server:8443/api/tokens \
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine

Gates applied: no_behavioural_pass.

Audited 2026-09-28 · audit v0.4.1 · source sha 94748dc82682full audit observations/trust-audit/mcp-server/joaoh82__rustunnel.json · Report an issue / request a re-scan
04

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-2894748dc82682BLOCKF47first audit
05

Questions

What is the Rustunnel MCP server?

Self-hosted, secure tunnel server in Rust. Expose local HTTP/HTTPS/TCP/UDP services to the public internet via TLS-encrypted WebSocket. Open-source, pay-as-you-go managed option, MCP server for AI agents.

Is Rustunnel safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (47/100) and found 8 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Rustunnel need?

It reads RUSTUNNEL_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Rustunnel run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as rustunnel-dashboard at 0.1.0.

How current is this page?

The grade is for one exact copy of the source (94748dc82682), read on 2026-09-28. The repository is watched and re-audited when it changes.

Advertisement