Skip to main content
Glama

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.

Related MCP server: Anycast MCP Server

Setup

No account yet? Start free with just an email, no card.

  1. 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.

  2. Note your account ID (acct_…).

  3. 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 talks only to https://api.portveil.com (override with PORTVEIL_API). It stores nothing.

Development

npm install
npm test        # builds, then runs the tests against a fake Portveil API

Available Tools

14 tools
add_deviceAdd deviceA

Add a new device to the account. kind "phone_or_computer" (iPhone, Android, Mac, Windows using the WireGuard app): creates the device now and saves one WireGuard tunnel file per location, with a private key made locally, into a folder on the machine running this MCP server; the key is never shown in the reply. Import a file in the WireGuard app to connect. These devices are view-only: they can't be moved remotely. kind "linux_machine" (a server or the machine an agent runs on): returns the exact commands to run as root on that machine; it makes its own key and registers itself, and can then be moved, rotated and switched with the other tools. Uses one device slot (see get_account). Needs an admin-scope token for phone_or_computer.

Inputs: kind (required), name (required), folder, split_tunnel, +1 more.

disconnect_deviceDisconnect deviceA
DestructiveIdempotent

Turn off a device's VPN tunnel. Its traffic stops going through Portveil (and loses VPN protection) until it reconnects. The device stays on the account. Confirm with the user first. Needs a control-scope token and a Portveil-agent device.

Inputs: device (required).

get_accountGet accountA
Read-only

Get the account's plan and how many devices it uses out of its limit. Use it when asked about the plan or before suggesting adding devices. Read-only.

Inputs: no named parameters.

get_deviceGet deviceA
Read-only

Get one device's current state: online or offline, the location it exits from, whether that exit server confirms the tunnel, its live speed, any rotation schedule, whether an agent machine's clock matches its exit's timezone, and when it last reported. Use it to check a device before or after an action. Read-only.

Inputs: device (required).

list_activityList activityA
Read-only

List recent actions on the account (moves, reconnects, rotations, renames, tokens created), newest first, with the token that made each. Use it to answer "what changed?" or to audit an assistant's actions. Read-only.

Inputs: limit.

list_devicesList devicesA
Read-only

List every device on the Portveil account, one line each: whether it's protected (connected AND confirmed by the exit server), which country it exits from, its live download/upload speed while connected, and whether it accepts remote control. Use this first to see what's there or to find a device's exact name; use get_device for one device. Read-only.

Inputs: no named parameters.

list_locationsList locationsA
Read-only

List the exit locations (country, city and location ID) that devices can be moved to, with each one's timezone and language settings. Use it before move_device or start_rotation when you're unsure what's available, or to make a browser on a moved machine match its exit (sites compare the browser's timezone with its IP's country). Every plan can use every location. Read-only.

Inputs: no named parameters.

move_deviceMove deviceA
Idempotent

Move a device's traffic to exit from a chosen location. Waits until the device switches and the new exit server confirms it (usually 10–30 s), and says plainly if that didn't happen. Safe to repeat: moving to where it already is does nothing. Only works on machines running the Portveil agent with remote control on (phones using the WireGuard app switch on the device itself). Needs a control-scope token. To just go somewhere different, use rotate_device.

Inputs: device (required), location (required).

reconnect_deviceReconnect deviceA
Idempotent

Tell a device to re-establish its VPN tunnel at its current location, without moving it. Use when it shows connected but not confirmed, or traffic seems stuck. Traffic may pause for a few seconds. Needs a control-scope token and a Portveil-agent device.

Inputs: device (required).

remove_deviceRemove deviceA
Destructive

Permanently remove a device from the account: its VPN key stops working at every exit and its slot is freed. It can't be undone; the device would have to be set up again. Confirm with the user first, naming the device. Needs an admin-scope token.

Inputs: device (required).

rotate_deviceRotate deviceA

Move a device once to the next location in the list, so its traffic exits from somewhere new. Same checks and waiting as move_device. Each call moves again, so it isn't idempotent. For repeated automatic moves use start_rotation instead. Needs a control-scope token.

Inputs: device (required).

start_rotationStart rotationA
Idempotent

Make Portveil move a device to the next location automatically every N minutes, optionally cycling through chosen locations only. Portveil runs the schedule itself, so the assistant doesn't need to stay running. Calling it again replaces the schedule. Stop it with stop_rotation. Needs a control-scope token and a Portveil-agent device.

Inputs: device (required), every_minutes (required), locations.

stop_rotationStop rotationA
Idempotent

Turn off a device's automatic rotation. The device stays at its current location. Safe to call when no rotation is set. Needs a control-scope token.

Inputs: device (required).

update_deviceUpdate deviceA
Idempotent

Rename a device and/or turn remote control on or off for it. Turning remote control off stops move, rotate, reconnect and disconnect for that device until it's turned back on. Change only what's given; safe to repeat. Needs an admin-scope token.

Inputs: device (required), name, remote_control.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action, and the descriptions explicitly disambiguate the tricky pairs: move_device vs rotate_device (chosen location vs next in list), rotate_device vs start_rotation (one-off vs scheduled), and list_devices vs get_device (all vs one). Even the connect/disconnect/reconnect trio is clearly separated by intent.

    Naming Consistency5/5

    Every tool follows a uniform snake_case verb_noun pattern (get_, list_, move_, rotate_, start_, stop_, reconnect_, disconnect_, update_, add_, remove_). The two-word forms like start_rotation/stop_rotation and move_device/rotate_device read as a coherent family.

    Tool Count5/5

    Fourteen tools sit in the well-scoped range for a device/VPN management server, and each one maps to a real operation (read, lifecycle, scheduling, account, locations). Nothing appears redundant or padding the surface.

    Completeness4/5

    Core lifecycle is fully covered: add/get/list/update/remove devices, connect/disconnect/reconnect, move/rotate/schedule, plus account and location lookups and an audit trail. The only visible gap is token management — list_activity reports 'tokens created' but no tool creates, lists, or revokes tokens.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers