P

Podkop MCP

by mikel38487 · io.github.mikel38487/podkop-mcp

Enables managing Podkop and Forkop on OpenWrt over SSH, including UCI configuration, domain and subscription operations, live monitoring, and safe dry-run, backup, and rollback workflows.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-mikel38487-podkop-mcp": {
      "command": "uvx",
      "args": [
        "podkop-mcp"
      ],
      "env": {
        "PODKOP_MCP_SSH_HOST": "<VALUE>",
        "PODKOP_MCP_SSH_USER": "root",
        "PODKOP_MCP_SSH_KEY_PATH": "<VALUE>",
        "PODKOP_MCP_HOST_KEY_POLICY": "reject",
        "PODKOP_MCP_READ_ONLY": "0",
        "PODKOP_MCP_CONFIG": "<VALUE>",
        "PODKOP_MCP_BACKEND": "auto",
        "PODKOP_MCP_SSH_KEY": "<VALUE>",
        "PODKOP_MCP_TARGETS": "<VALUE>",
        "PODKOP_MCP_SSH_PORT": "22",
        "PODKOP_MCP_LOG_LEVEL": "INFO",
        "PODKOP_MCP_BACKUP_DIR": "/etc/podkop-mcp/backups",
        "PODKOP_MCP_BACKUP_KEEP": "30",
        "PODKOP_MCP_KNOWN_HOSTS": "~/.ssh/known_hosts",
        "PODKOP_MCP_PROFILE_TTL": "30",
        "PODKOP_MCP_SSH_KEY_B64": "<VALUE>",
        "PODKOP_MCP_TARGET_NAME": "router",
        "PODKOP_MCP_SSH_PASSWORD": "<VALUE>",
        "PODKOP_MCP_COMMAND_TIMEOUT": "45",
        "PODKOP_MCP_CONNECT_TIMEOUT": "8",
        "PODKOP_MCP_SSH_CONFIG_HOST": "<VALUE>",
        "PODKOP_MCP_MAX_OUTPUT_BYTES": "200000",
        "PODKOP_MCP_SSH_KEY_PASSPHRASE": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-mikel38487-podkop-mcp": {
      "command": "uvx",
      "args": [
        "podkop-mcp"
      ],
      "env": {
        "PODKOP_MCP_SSH_HOST": "<VALUE>",
        "PODKOP_MCP_SSH_USER": "root",
        "PODKOP_MCP_SSH_KEY_PATH": "<VALUE>",
        "PODKOP_MCP_HOST_KEY_POLICY": "reject",
        "PODKOP_MCP_READ_ONLY": "0",
        "PODKOP_MCP_CONFIG": "<VALUE>",
        "PODKOP_MCP_BACKEND": "auto",
        "PODKOP_MCP_SSH_KEY": "<VALUE>",
        "PODKOP_MCP_TARGETS": "<VALUE>",
        "PODKOP_MCP_SSH_PORT": "22",
        "PODKOP_MCP_LOG_LEVEL": "INFO",
        "PODKOP_MCP_BACKUP_DIR": "/etc/podkop-mcp/backups",
        "PODKOP_MCP_BACKUP_KEEP": "30",
        "PODKOP_MCP_KNOWN_HOSTS": "~/.ssh/known_hosts",
        "PODKOP_MCP_PROFILE_TTL": "30",
        "PODKOP_MCP_SSH_KEY_B64": "<VALUE>",
        "PODKOP_MCP_TARGET_NAME": "router",
        "PODKOP_MCP_SSH_PASSWORD": "<VALUE>",
        "PODKOP_MCP_COMMAND_TIMEOUT": "45",
        "PODKOP_MCP_CONNECT_TIMEOUT": "8",
        "PODKOP_MCP_SSH_CONFIG_HOST": "<VALUE>",
        "PODKOP_MCP_MAX_OUTPUT_BYTES": "200000",
        "PODKOP_MCP_SSH_KEY_PASSPHRASE": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-mikel38487-podkop-mcp": {
      "command": "uvx",
      "args": [
        "podkop-mcp"
      ],
      "env": {
        "PODKOP_MCP_SSH_HOST": "<VALUE>",
        "PODKOP_MCP_SSH_USER": "root",
        "PODKOP_MCP_SSH_KEY_PATH": "<VALUE>",
        "PODKOP_MCP_HOST_KEY_POLICY": "reject",
        "PODKOP_MCP_READ_ONLY": "0",
        "PODKOP_MCP_CONFIG": "<VALUE>",
        "PODKOP_MCP_BACKEND": "auto",
        "PODKOP_MCP_SSH_KEY": "<VALUE>",
        "PODKOP_MCP_TARGETS": "<VALUE>",
        "PODKOP_MCP_SSH_PORT": "22",
        "PODKOP_MCP_LOG_LEVEL": "INFO",
        "PODKOP_MCP_BACKUP_DIR": "/etc/podkop-mcp/backups",
        "PODKOP_MCP_BACKUP_KEEP": "30",
        "PODKOP_MCP_KNOWN_HOSTS": "~/.ssh/known_hosts",
        "PODKOP_MCP_PROFILE_TTL": "30",
        "PODKOP_MCP_SSH_KEY_B64": "<VALUE>",
        "PODKOP_MCP_TARGET_NAME": "router",
        "PODKOP_MCP_SSH_PASSWORD": "<VALUE>",
        "PODKOP_MCP_COMMAND_TIMEOUT": "45",
        "PODKOP_MCP_CONNECT_TIMEOUT": "8",
        "PODKOP_MCP_SSH_CONFIG_HOST": "<VALUE>",
        "PODKOP_MCP_MAX_OUTPUT_BYTES": "200000",
        "PODKOP_MCP_SSH_KEY_PASSPHRASE": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-mikel38487-podkop-mcp": {
      "command": "uvx",
      "args": [
        "podkop-mcp"
      ],
      "env": {
        "PODKOP_MCP_SSH_HOST": "<VALUE>",
        "PODKOP_MCP_SSH_USER": "root",
        "PODKOP_MCP_SSH_KEY_PATH": "<VALUE>",
        "PODKOP_MCP_HOST_KEY_POLICY": "reject",
        "PODKOP_MCP_READ_ONLY": "0",
        "PODKOP_MCP_CONFIG": "<VALUE>",
        "PODKOP_MCP_BACKEND": "auto",
        "PODKOP_MCP_SSH_KEY": "<VALUE>",
        "PODKOP_MCP_TARGETS": "<VALUE>",
        "PODKOP_MCP_SSH_PORT": "22",
        "PODKOP_MCP_LOG_LEVEL": "INFO",
        "PODKOP_MCP_BACKUP_DIR": "/etc/podkop-mcp/backups",
        "PODKOP_MCP_BACKUP_KEEP": "30",
        "PODKOP_MCP_KNOWN_HOSTS": "~/.ssh/known_hosts",
        "PODKOP_MCP_PROFILE_TTL": "30",
        "PODKOP_MCP_SSH_KEY_B64": "<VALUE>",
        "PODKOP_MCP_TARGET_NAME": "router",
        "PODKOP_MCP_SSH_PASSWORD": "<VALUE>",
        "PODKOP_MCP_COMMAND_TIMEOUT": "45",
        "PODKOP_MCP_CONNECT_TIMEOUT": "8",
        "PODKOP_MCP_SSH_CONFIG_HOST": "<VALUE>",
        "PODKOP_MCP_MAX_OUTPUT_BYTES": "200000",
        "PODKOP_MCP_SSH_KEY_PASSPHRASE": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-mikel38487-podkop-mcp": {
      "command": "uvx",
      "args": [
        "podkop-mcp"
      ],
      "env": {
        "PODKOP_MCP_SSH_HOST": "<VALUE>",
        "PODKOP_MCP_SSH_USER": "root",
        "PODKOP_MCP_SSH_KEY_PATH": "<VALUE>",
        "PODKOP_MCP_HOST_KEY_POLICY": "reject",
        "PODKOP_MCP_READ_ONLY": "0",
        "PODKOP_MCP_CONFIG": "<VALUE>",
        "PODKOP_MCP_BACKEND": "auto",
        "PODKOP_MCP_SSH_KEY": "<VALUE>",
        "PODKOP_MCP_TARGETS": "<VALUE>",
        "PODKOP_MCP_SSH_PORT": "22",
        "PODKOP_MCP_LOG_LEVEL": "INFO",
        "PODKOP_MCP_BACKUP_DIR": "/etc/podkop-mcp/backups",
        "PODKOP_MCP_BACKUP_KEEP": "30",
        "PODKOP_MCP_KNOWN_HOSTS": "~/.ssh/known_hosts",
        "PODKOP_MCP_PROFILE_TTL": "30",
        "PODKOP_MCP_SSH_KEY_B64": "<VALUE>",
        "PODKOP_MCP_TARGET_NAME": "router",
        "PODKOP_MCP_SSH_PASSWORD": "<VALUE>",
        "PODKOP_MCP_COMMAND_TIMEOUT": "45",
        "PODKOP_MCP_CONNECT_TIMEOUT": "8",
        "PODKOP_MCP_SSH_CONFIG_HOST": "<VALUE>",
        "PODKOP_MCP_MAX_OUTPUT_BYTES": "200000",
        "PODKOP_MCP_SSH_KEY_PASSPHRASE": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-mikel38487-podkop-mcp": {
      "command": "uvx",
      "args": [
        "podkop-mcp"
      ],
      "env": {
        "PODKOP_MCP_SSH_HOST": "<VALUE>",
        "PODKOP_MCP_SSH_USER": "root",
        "PODKOP_MCP_SSH_KEY_PATH": "<VALUE>",
        "PODKOP_MCP_HOST_KEY_POLICY": "reject",
        "PODKOP_MCP_READ_ONLY": "0",
        "PODKOP_MCP_CONFIG": "<VALUE>",
        "PODKOP_MCP_BACKEND": "auto",
        "PODKOP_MCP_SSH_KEY": "<VALUE>",
        "PODKOP_MCP_TARGETS": "<VALUE>",
        "PODKOP_MCP_SSH_PORT": "22",
        "PODKOP_MCP_LOG_LEVEL": "INFO",
        "PODKOP_MCP_BACKUP_DIR": "/etc/podkop-mcp/backups",
        "PODKOP_MCP_BACKUP_KEEP": "30",
        "PODKOP_MCP_KNOWN_HOSTS": "~/.ssh/known_hosts",
        "PODKOP_MCP_PROFILE_TTL": "30",
        "PODKOP_MCP_SSH_KEY_B64": "<VALUE>",
        "PODKOP_MCP_TARGET_NAME": "router",
        "PODKOP_MCP_SSH_PASSWORD": "<VALUE>",
        "PODKOP_MCP_COMMAND_TIMEOUT": "45",
        "PODKOP_MCP_CONNECT_TIMEOUT": "8",
        "PODKOP_MCP_SSH_CONFIG_HOST": "<VALUE>",
        "PODKOP_MCP_MAX_OUTPUT_BYTES": "200000",
        "PODKOP_MCP_SSH_KEY_PASSPHRASE": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PODKOP_MCP_SSH_HOST Yes Router address
PODKOP_MCP_SSH_USER No SSH user Default: root
PODKOP_MCP_SSH_KEY_PATH No Private key path
PODKOP_MCP_HOST_KEY_POLICY No Host key policy: reject, accept-new, ignore Default: reject
PODKOP_MCP_READ_ONLY No Block all writes Default: 0
PODKOP_MCP_CONFIG No Path to a JSON file with multiple routers; takes precedence over PODKOP_MCP_TARGETS and the single-router variables
PODKOP_MCP_BACKEND No Backend type: auto, forkop or podkop; the requested CLI must be installed Default: auto
PODKOP_MCP_SSH_KEY No Inline private key (PEM)
PODKOP_MCP_TARGETS No JSON with multiple routers
PODKOP_MCP_SSH_PORT No SSH port Default: 22
PODKOP_MCP_LOG_LEVEL No Server log level on stderr (DEBUG, INFO, WARNING, ERROR, CRITICAL) Default: INFO
PODKOP_MCP_BACKUP_DIR No Router-side backups directory Default: /etc/podkop-mcp/backups
PODKOP_MCP_BACKUP_KEEP No Number of backups to keep Default: 30
PODKOP_MCP_KNOWN_HOSTS No Host key file Default: ~/.ssh/known_hosts
PODKOP_MCP_PROFILE_TTL No Seconds before the backend profile is revalidated against the router Default: 30
PODKOP_MCP_SSH_KEY_B64 No Inline key, base64
PODKOP_MCP_TARGET_NAME No Name of the single router defined by PODKOP_MCP_SSH_HOST / PODKOP_MCP_SSH_CONFIG_HOST; ignored when a JSON target list is used Default: router
PODKOP_MCP_SSH_PASSWORD No Password instead of a key (secret: pass it through the environment, never commit it)
PODKOP_MCP_COMMAND_TIMEOUT No Command timeout, seconds Default: 45
PODKOP_MCP_CONNECT_TIMEOUT No SSH connect timeout, seconds Default: 8
PODKOP_MCP_SSH_CONFIG_HOST No Alias from ~/.ssh/config
PODKOP_MCP_MAX_OUTPUT_BYTES No Cap on captured command output, bytes Default: 200000
PODKOP_MCP_SSH_KEY_PASSPHRASE No Key passphrase

Similar servers