Purpose
Portveil MCP server is used to let AI assistants manage VPN networks in Portveil accounts. Through natural language instructions, users can have the AI assistant view the devices under the account and their real-time speeds, and move devices between different VPN exit locations. Example instructions include: "Move my scraper machine to Finland", "Rotate all proxies to a new location", "Which devices are currently unprotected?", "Rotate the scraper between the United States and Finland every 15 minutes".
Main capabilities
- Device viewing: List the devices in the account and their real-time speeds.
- Device moving: Move devices to different VPN exit countries. Move operations verify: the tool reports success only after the device has successfully switched and the exit server at the new location confirms it can see the device.
- Device rotation: Supports rotating devices among multiple locations at set intervals, for example switching between the United States and Finland every 15 minutes.
- Reconnect and disconnect: Can perform reconnect or disconnect operations on proxy machines.
- Loose name matching: Device names can be matched loosely (for example, "scraper" will find "Scraper box"); when a name is ambiguous, return the available options instead of guessing.
Tool names were changed in version 0.3.0 to a unified verb_noun format:device_status → get_device,account_info → get_account,recent_activity → list_activity,set_rotation → start_rotation.
How to use
- If you do not yet have a Portveil account, you can start for free with an email, no credit card required.
- Create an API token in the Portveil dashboard. Choose the
controlscope to allow the assistant to move devices, or choose thereadscope to allow viewing only. Do not provide the account key. - Note the account ID (format
acct_…). - Add the server to the AI assistant:
Claude Desktop (claude_desktop_config.json)、Cursor(.cursor/mcp.json) and most other clients:
{
"mcpServers": {
"portveil": {
"command": "npx",
"args": ["-y", "portveil-mcp"],
"env": {
"PORTVEIL_API_TOKEN": "你的令牌",
"PORTVEIL_ACCOUNT_ID": "acct_你的账户ID"
}
}
}
}
Hermes Agent: Hermes only installs npm packages published more than 14 days ago, so it must be installed into a separate folder and run with node:
mkdir -p ~/.hermes/portveil && cd ~/.hermes/portveil
npm init -y
npm install portveil-mcp
node node_modules/portveil-mcp/dist/index.js
To help Hermes use it better (when to act, what to confirm first, how to add devices), you can also install the Portveil skill from ClawHub:
npx clawhub install portveil
(Source: skills/portveil/SKILL.md)
Suitable scenarios
- Users who need to automate the management of exit locations for multiple proxy machines or scraper devices.
- Scenarios that require rotating IPs among exits in different countries on a schedule.
- Users who want to interact with the VPN network through natural language instead of manually logging into the dashboard to operate.
Limitations
- Devices must be running the Portveil app or a Portveil agent with remote control enabled. Devices using only WireGuard will be displayed but cannot be moved.
- Scoped API tokens should be used. Every operation performed by a token is recorded in the account activity log, and the record includes the token used to initiate the operation; users can revoke the token in the dashboard at any time.
- The server communicates only with
https://api.portveil.com(can be overridden via the environment variablePORTVEIL_API), and does not store any data. - Some usage details (such as the specific method for configuring rotation intervals, the units for speed display, etc.) are not yet provided.
Security and privacy
It is recommended to use scoped API tokens rather than the account key. All operations are logged, and tokens can be revoked at any time. The server does not communicate with any third party and does not store data.