Portveil MCP Server
MCP server for Portveil: let AI assistants see your devices and move them between VPN locations.
Portveil scores 69 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 14 tools. Filed under Web scraping. GitHub shows 0 stars. Package registries report about 56 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
91/100 for listing completeness. Lost points: 3 of 14 tools barely described, short summary.
How quality is graded
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "roybogs-portveil-mcp": { "command": "npx", "args": [ "-y", "portveil-mcp@0.4.4" ], "env": { "PORTVEIL_ACCOUNT_ID": "", "PORTVEIL_TOKEN": "YOUR_PORTVEIL_TOKEN", "PORTVEIL_API": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PORTVEIL_ACCOUNT_ID | Required | Your Portveil account ID (acct_…), shown in the dashboard |
PORTVEIL_TOKENSecret | Required | A Portveil API token from the dashboard; control scope to move devices, read to only look |
PORTVEIL_API | Optional | API base URL (default https://api.portveil.com) |
Tools14Tool docs quality grade D
All capabilitiesadd_devicetoolAdd a device. Phones and laptops (WireGuard app): creates it and saves its tunnel files locally, key never shown in chat. Linux servers and agent machines: gives the exact commands to run on that machine, which makes its own key and registe
Turn a device's VPN off (flagged destructive: a hint that tells well-behaved assistants to check with you first)
get_accounttoolPlan and devices used
get_devicetoolOne device's current state, including live speed and any rotation
list_activitytoolRecent moves, reconnects and changes, and which token made them
list_devicestoolEvery device: protected or not, where it exits, live speed (↓/↑ Mbps), remote control on/off
list_locationstoolThe locations you can move to
move_devicetoolMove a device to a country or city ("Finland", "US", "Helsinki")
reconnect_devicetoolRe-establish a device's tunnel
remove_devicetoolRemove a device for good (flagged destructive)
rotate_devicetoolMove a device once to the next location
start_rotationtoolMove a device automatically every N minutes (5–10080), optionally among chosen locations. Portveil runs the schedule, so the assistant can close
About
Portveil MCP server
Let an AI assistant see the devices on your Portveil account and move them between VPN locations.
"Move my scraper box to Finland." "Rotate every agent to a new location." "Which of my devices aren't protected right now?" "Rotate the scraper between the US and Finland every 15 minutes."
Moves are verified: a tool only reports success after the device has switched and the exit server in the new location confirms it sees that device.
Tools
| Tool | What it does | Needs |
|---|---|---|
list_devices | Every device: protected or not, where it exits, live speed (↓/↑ Mbps), remote control on/off | read |
list_locations | The locations you can move to | read |
get_device | One device's current state, including live speed and any rotation | read |
get_account | Plan and devices used | read |
list_activity | Recent moves, reconnects and changes, and which token made them | read |
move_device | Move a device to a country or city ("Finland", "US", "Helsinki") | control |
rotate_device | Move a device once to the next location | control |
start_rotation | Move a device automatically every N minutes (5–10080), optionally among chosen locations. Portveil runs the schedule, so the assistant can close | control |
stop_rotation | Turn scheduled rotation off | control |
reconnect_device | Re-establish a device's tunnel | control |
disconnect_device | Turn a device's VPN off (flagged destructive: a hint that tells well-behaved assistants to check with you first) | control |
add_device | Add a device. Phones and laptops (WireGuard app): creates it and saves its tunnel files locally, key never shown in chat. Linux servers and agent machines: gives the exact commands to run on that machine, which makes its own key and registers itself | admin (phones/laptops) |
update_device | Rename a device and/or turn its remote control on or off | admin |
remove_device | Remove a device for good (flagged destructive) | admin |
Tool names changed in 0.3.0 to one verb_noun pattern: device_status → get_device, account_info → get_account, recent_activity → list_activity, set_rotation → start_rotation.
Devices can be named loosely ("scraper" finds "Scraper box"); an ambiguous name returns the choices instead of guessing.
Setup
No account yet? Start free with just an email, no card.
- In the Portveil dashboard, create an API token. Choose control scope to let the assistant move devices, or read to let it only look. Don't give it your account key.
- Note your account ID (
acct_…). - Add the server to your assistant:
Claude Code
claude mcp add portveil -e PORTVEIL_ACCOUNT_ID=acct_… -e PORTVEIL_TOKEN=clt_… -- npx -y portveil-mcp
Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and most other clients:
{
"mcpServers": {
"portveil": {
"command": "npx",
"args": ["-y", "portveil-mcp"],
"env": { "PORTVEIL_ACCOUNT_ID": "acct_…", "PORTVEIL_TOKEN": "clt_…" }
}
}
}
Hermes Agent: Hermes only installs npm packages older than 14 days, so install into its own folder and run it with node:
cd ~ && npm install --prefix ~/.hermes/mcp-servers/portveil portveil-mcp@0.4.3
echo 'PORTVEIL_TOKEN=clt_…' >> ~/.hermes/.env
hermes mcp add portveil --command node \
--env PORTVEIL_ACCOUNT_ID=acct_… 'PORTVEIL_TOKEN=${PORTVEIL_TOKEN}' \
--args ~/.hermes/mcp-servers/portveil/node_modules/portveil-mcp/dist/index.js
For Hermes to use it well (when to act, what to confirm first, how to add devices), also install the Portveil skill from ClawHub:
hermes skills install roybogs/portveil
(Source: skills/portveil/SKILL.md.)
Devices must be running the Portveil app or the Portveil agent with remote control on. Devices using the plain WireGuard app are shown but can't be moved.
Security
- Use a scoped API token. Every action it takes is recorded in your account's activity log with the token that made it, and you can revoke it in the dashboard at any time.
- The server defaults to
https://api.portveil.com;PORTVEIL_APIoverrides must use HTTPS (HTTP is accepted only for loopback fixtures). Redirects are refused; requests time out after 15 seconds and mutations are not automatically retried. - It does not persist the account/API token.
add_devicedeliberately stores newly generated device keys and tunnel files in a new private directory; they are never included in tool replies. Existing folders and files are never reused or overwritten. - “Protected”/move/reconnect confirmation requires connected status, a fresh handshake and exit confirmation, with observations aged from their actual receipt. This is tunnel evidence, not DNS privacy proof. An exit IP, resolver list, or simulator UI alone is insufficient.
Local device recovery
For phone/computer provisioning, choose a new folder. It is created with mode 0700, with 0600 private-key, device.json and per-exit .conf files. The key is saved and synced before registration; registration metadata excludes the device token. If registration's response is lost or export fails, the reply identifies the retained recovery directory and (when known) the exact device ID. Check list_devices/the dashboard before adding another device: the server may have committed the first registration. No automatic device deletion or blind retry occurs.
Back up the whole private directory securely. Restore into a separate private directory and verify file permissions, device ID, and that the private key derives the registered public key. device.json plus private-key can regenerate the configs using the existing wgConfig helper; no new registration is needed. npm test exercises actual fixture backup/restore, byte-identical config regeneration, interrupted registration and symlink/write failures. This does not establish that production infrastructure backups are current or restorable.
Linux setup instructions are Bash commands, not actions executed by this server. Full tunnel is designed to preserve inbound connections, but verify SSH and DNS separately in an approved isolated environment. Split tunnel reaches only Portveil's internal network: internet traffic is not protected. Never use setup commands to switch a working remote machine without independent management access and a guarded rollback plan.
Development
npm install
npm test # builds, then runs the tests against a fake Portveil API
Frequently asked questions
What is Portveil MCP Server?
MCP server for Portveil: let AI assistants see your devices and move them between VPN locations.
How do I install Portveil MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Portveil MCP Server runs locally from the npm package portveil-mcp with the command npx -y portveil-mcp@0.4.4.
Is Portveil MCP Server free and open source?
Yes. Portveil MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Portveil MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Portveil MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Portveil MCP Server provide?
Portveil MCP Server provides 14 tools, including add_device, disconnect_device, get_account, and get_device. See the full tool list for descriptions and parameters.
How is Portveil MCP Server's trust score calculated?
Portveil MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.