What it does
MCP server for managing Podkop and Forkop on OpenWrt over SSH
- Connects Runs on your computer
- Account or key Needs PODKOP_MCP_HOST_KEY_POLICY · 1 setting to fill in (PODKOP_MCP_SSH_HOST)
- Category Developer tools
Use together with
Skills that teach the AI this kind of work; they work alongside this one
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Why it ranks here
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 4/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 16/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Install
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install podkop-mcp. Follow https://mcp.popnx.com/i/mikel38487-podkop-mcp.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Let AI install it
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server podkop-mcp for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "podkop": { "command": "uvx", "args": [ "podkop-mcp" ], "env": { "PODKOP_MCP_SSH_HOST": "your-value", "PODKOP_MCP_HOST_KEY_POLICY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PODKOP_MCP_HOST_KEY_POLICY, PODKOP_MCP_SSH_HOST, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the podkop-mcp tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a podkop-mcp key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PODKOP_MCP_SSH_HOSTRouter address
Descriptions are as written by the maker.
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "podkop": { "command": "uvx", "args": [ "podkop-mcp" ], "env": { "PODKOP_MCP_SSH_HOST": "your-value", "PODKOP_MCP_HOST_KEY_POLICY": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use podkop-mcp and tell me what you can do for me, then show me one thing✓ If Claude says it is using podkop-mcp or shows a podkop-mcp tool in the answer, you are connected
3 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
PODKOP_MCP_SSH_USERSSH user (root on OpenWrt)PODKOP_MCP_SSH_KEY_PATHPath to the private SSH keyPODKOP_MCP_READ_ONLY1 blocks all writes
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect podkop-mcp yet
podkop-mcp runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect podkop-mcp
- You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time)
- You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time)
- You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time)
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Works with Claude Code, with some setup first
You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server podkop-mcp for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user podkop --env PODKOP_MCP_SSH_HOST=your-value --env PODKOP_MCP_HOST_KEY_POLICY=your-value -- uvx podkop-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PODKOP_MCP_HOST_KEY_POLICY, PODKOP_MCP_SSH_HOST, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the podkop-mcp tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a podkop-mcp key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PODKOP_MCP_SSH_HOSTRouter address
Descriptions are as written by the maker.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add --scope user podkop --env PODKOP_MCP_SSH_HOST=your-value --env PODKOP_MCP_HOST_KEY_POLICY=your-value -- uvx podkop-mcpReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see podkop-mcp listed as connected
Try it
Use podkop-mcp and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using podkop-mcp or shows a podkop-mcp tool in the answer, you are connected
3 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
PODKOP_MCP_SSH_USERSSH user (root on OpenWrt)PODKOP_MCP_SSH_KEY_PATHPath to the private SSH keyPODKOP_MCP_READ_ONLY1 blocks all writes
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server podkop-mcp for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "podkop": { "command": "uvx", "args": [ "podkop-mcp" ], "env": { "PODKOP_MCP_SSH_HOST": "your-value", "PODKOP_MCP_HOST_KEY_POLICY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PODKOP_MCP_HOST_KEY_POLICY, PODKOP_MCP_SSH_HOST, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the podkop-mcp tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a podkop-mcp key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PODKOP_MCP_SSH_HOSTRouter address
Descriptions are as written by the maker.
Fill in your key
In the podkop-mcp settings, PODKOP_MCP_HOST_KEY_POLICY, PODKOP_MCP_SSH_HOST is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use podkop-mcp and tell me what you can do for me, then show me one thing✓ If Cursor says it is using podkop-mcp or shows a podkop-mcp tool in the answer, you are connected
3 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
PODKOP_MCP_SSH_USERSSH user (root on OpenWrt)PODKOP_MCP_SSH_KEY_PATHPath to the private SSH keyPODKOP_MCP_READ_ONLY1 blocks all writes
Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a podkop-mcp key (create it on the maker’s site) · 1 setting(s) to fill in (PODKOP_MCP_SSH_HOST) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server podkop-mcp for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "podkop": { "type": "stdio", "command": "uvx", "args": [ "podkop-mcp" ], "env": { "PODKOP_MCP_SSH_HOST": "your-value", "PODKOP_MCP_HOST_KEY_POLICY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PODKOP_MCP_HOST_KEY_POLICY, PODKOP_MCP_SSH_HOST, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the podkop-mcp tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a podkop-mcp key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PODKOP_MCP_SSH_HOSTRouter address
Descriptions are as written by the maker.
Fill in your key
In the podkop-mcp settings, PODKOP_MCP_HOST_KEY_POLICY, PODKOP_MCP_SSH_HOST is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use podkop-mcp and tell me what you can do for me, then show me one thing✓ If VS Code says it is using podkop-mcp or shows a podkop-mcp tool in the answer, you are connected
3 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
PODKOP_MCP_SSH_USERSSH user (root on OpenWrt)PODKOP_MCP_SSH_KEY_PATHPath to the private SSH keyPODKOP_MCP_READ_ONLY1 blocks all writes
Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add --scope user podkop --env PODKOP_MCP_SSH_HOST=your-value --env PODKOP_MCP_HOST_KEY_POLICY=your-value -- uvx podkop-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"podkop": {
"command": "uvx",
"args": [
"podkop-mcp"
],
"env": {
"PODKOP_MCP_SSH_HOST": "your-value",
"PODKOP_MCP_HOST_KEY_POLICY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"podkop": {
"command": "uvx",
"args": [
"podkop-mcp"
],
"env": {
"PODKOP_MCP_SSH_HOST": "your-value",
"PODKOP_MCP_HOST_KEY_POLICY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"podkop": {
"type": "stdio",
"command": "uvx",
"args": [
"podkop-mcp"
],
"env": {
"PODKOP_MCP_SSH_HOST": "your-value",
"PODKOP_MCP_HOST_KEY_POLICY": "your-value"
}
}
}
}Values you fill in
PODKOP_MCP_SSH_HOSTrequired envRouter addressPODKOP_MCP_SSH_USERenvSSH user (root on OpenWrt)PODKOP_MCP_SSH_KEY_PATHenvPath to the private SSH keyPODKOP_MCP_HOST_KEY_POLICYsecret required envreject (default), accept-new or ignorePODKOP_MCP_READ_ONLYenv1 blocks all writes
Descriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 18, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account mikel38487, which owns the repo
- ✓ Pass
Still maintained
Code last changed 6 days ago
- ✓ Pass
Has a licence
Uses MIT
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Published vulnerabilities (OSV.dev)
No entries on OSV.dev for podkop-mcp@0.3.0
Checks only this package version, not every dependency · checked Nov 15, 2026
Makers: ask for a re-check or report wrong info
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/mikel38487-podkop-mcp)Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Developer toolsi
- More stars than 69% of the other 6083 servers in this category
- Published to the registry more recently than 86% of the other 6083 servers in this category
- Basic checks equal to or better than 99% of the other 6083 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is podkop-mcp safe?
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: PODKOP_MCP_HOST_KEY_POLICY
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed 6 days ago, and the latest version (0.3.0) reached the registry 6 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
What can I use instead?
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Similar alternatives
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| This one podkop-mcp | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | No | No | Yes | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| License | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
podkop-mcp
MCP server for managing [Podkop](https://github.com/itdoginfo/podkop) and [Forkop](https://github.com/ushan0v/forkop) on OpenWrt over SSH.
Stop editing UCI by hand, remembering the uci add_list trap and passing base64-wrapped scripts to PowerShell. Ask your MCP client to add domains, list sections, inspect live connections, reload the service and roll back a bad change — with dry-run, backups and redaction built in.
Status: alpha. Live read-only tested against Forkop 1.0.5 and Forkop 2.0.0
(OpenWrt 25.12.6). Write/apply paths were verified in disposable OpenWrt
Docker containers with real Forkop 2.0.0 and Podkop 0.7.24. Backend schema is
revalidated every
PODKOP_MCP_PROFILE_TTLseconds (default 30).
Why
Managing Podkop/Forkop by hand is error-prone:
- Forkop 1.x stores domains in one space-separated string (
section.domain). Oneuci add_listturns it into an exact-matchdomainlist and subdomains silently stop being routed. - Forkop 2.x uses a multi-line
section.destinationstext with#comments. - Podkop uses a real UCI list (
section.user_domains). - Forkop reloads asynchronously; a failed reload must be detected and rolled back.
- Subscription URLs and proxy strings are secrets and end up in logs.
Unlike MCP servers that run on the router itself, podkop-mcp runs on the administrator's machine, talks to OpenWrt over SSH and understands Podkop/Forkop semantics: dry-run, backups, rollback and secret redaction. All of that is hidden behind typed MCP tools.
Features
- SSH transport with a key from MCP parameters: key file, inline base64/PEM, or
~/.ssh/configalias. Host key verification, keepalive, timeouts. - Backend detection: Forkop 1.x, Forkop 2.x, Podkop; capabilities derived from the installed CLI.
- Full UCI access via
ubus call uci getJSON anducifor writes. Any option can be read or changed; the package is restricted toforkop/podkop. - Domain operations that preserve the backend format: add/remove/replace, search coverage, suggest uncovered hosts from live connections, check FakeIP.
- Sections: list, inspect, create, update, enable/disable, delete with cascade of child subscriptions/URLTest items.
- Subscriptions and proxy groups: list, add, delete, update, test latency, select a proxy (Forkop 2.x).
- Monitoring: service/system status, health checks, logs, live connections, traffic rates, proxy delays.
- Safety: mutating tools are dry-run by default;
apply=truecreates a router-side backup, commits UCI, reloads and verifies. On failure the backup is restored automatically.PODKOP_MCP_READ_ONLY=1blocks all writes. - Secrets redacted by default: subscription URLs,
proxy_string, keys, tokens. Raw export requiresreveal_secrets=true. - Bilingual docs (English / Russian) and CI.
Support matrix
| Capability | Forkop 1.x | Forkop 2.x | Podkop |
|---|---|---|---|
| UCI package | forkop | forkop | podkop |
| Domain option | domain (string) | destinations (multiline) | user_domains (list) |
| Community lists | yes | yes | yes |
| Rule sets | no | yes | yes |
| Clash API | action CLI | HTTP CLI | action CLI |
| Proxy runtime select | — | yes | — |
| Read-only monitoring | yes | yes | yes |
Install
Requirements:
- Python 3.10+ (CI tests 3.10 through 3.14)
- OpenWrt router with Forkop or Podkop installed
- SSH key access to the router
Install from PyPI:
pip install podkop-mcp
or run without installing
uvx podkop-mcp
Install from source:
git clone https://github.com/mikel38487/podkop-mcp.git
cd podkop-mcp python -m venv .venv . .venv/bin/activate # Windows: .venv\Scripts\activate pip install -e .
Configure your MCP client (Claude Desktop, Cursor, DSH, etc.):
{
"mcpServers": { "podkop": { "command": "podkop-mcp", "env": { "PODKOP_MCP_SSH_HOST": "192.168.1.1", "PODKOP_MCP_SSH_USER": "root", "PODKOP_MCP_SSH_KEY_PATH": "C:/Users/ /.ssh/router_key", "PODKOP_MCP_KNOWN_HOSTS": "C:/Users/ /.ssh/known_hosts", "PODKOP_MCP_HOST_KEY_POLICY": "reject" } } } }
Or use an existing ~/.ssh/config alias:
"env": {
"PODKOP_MCP_SSH_CONFIG_HOST": "router-home", "PODKOP_MCP_SSH_KEY_PATH": "C:/Users/ /.ssh/router_key", "PODKOP_MCP_HOST_KEY_POLICY": "reject" }
Host key policy defaults to reject. Add the router key to known_hosts first (for example with a normal ssh login). accept-new is a one-time TOFU convenience for a new router; it does not protect against a MITM on the first connection.
Ask the model:
- “Run
podkop_doctorand show the backend version.” - “Add
example.comandcdn.example.comtomain; show me the diff first.” - “List sections with domain counts.”
- “Which hosts in live connections are not covered by any section?”
- “Show traffic for the last 2 seconds and the top clients.”
- “Disable the
youtubesection and reload.”
Documentation
- Tool reference · Справочник инструментов
- Architecture · Архитектура
- Compatibility · Совместимость
- Troubleshooting · Диагностика
- Testing in OpenWrt Docker · Тестирование в Docker
- Security · Безопасность
- Security policy, contributing
How write operations work
dry-run (default)
→ read config, compute normalized diff, show uci commands
apply=true → cp /etc/config/ /etc/podkop-mcp/backups/ - .uci → uci set/add_list/delete (package restricted to forkop/podkop) → uci commit → /etc/init.d/ reload → poll get_status up to ~35 s → on failure: restore backup, commit, reload → return diff, backup id, health summary
No command is executed through a shell string built from user input; values are shell-quoted with shlex and the script is sent to sh via stdin. Paths are validated; no base64 applet is required on the router.
Tool overview
| Group | Tools |
|---|---|
| System | podkop_doctor, podkop_status, podkop_system_info, podkop_health, podkop_logs, podkop_cli, podkop_core_features, podkop_import_check, podkop_installer_status, podkop_installer_log |
| Config | podkop_config_get, podkop_config_export, podkop_option_get/set/delete, podkop_backup_create/list/restore |
| Sections | podkop_sections_list, podkop_section_get/create/update/delete/enable, podkop_tunnel_create, podkop_child_create |
| Domains | podkop_domains_list/add/remove/replace/find/suggest, podkop_domain_check |
| Lists | podkop_community_lists_get/update |
| Connections | podkop_connections_config, podkop_subscription_add/delete/update, podkop_proxies_list, podkop_proxy_select/test |
| Monitoring | podkop_monitor_snapshot, podkop_connections_live, podkop_traffic |
| Service | podkop_service_action, podkop_lists_update |
Full reference: docs/tools.md.
Configuration reference
| Variable | Default | Meaning |
|---|---|---|
PODKOP_MCP_SSH_HOST | — | Router address |
PODKOP_MCP_SSH_PORT | 22 | SSH port |
PODKOP_MCP_SSH_USER | root | SSH user |
PODKOP_MCP_SSH_KEY_PATH | — | Private key path |
PODKOP_MCP_SSH_KEY | — | Inline private key (PEM) |
PODKOP_MCP_SSH_KEY_B64 | — | Inline key, base64 |
PODKOP_MCP_SSH_KEY_PASSPHRASE | — | Key passphrase |
PODKOP_MCP_SSH_PASSWORD | — | Password instead of a key (secret: pass it through the environment, never commit it) |
PODKOP_MCP_SSH_CONFIG_HOST | — | Alias from ~/.ssh/config |
PODKOP_MCP_KNOWN_HOSTS | ~/.ssh/known_hosts | Host key file |
PODKOP_MCP_HOST_KEY_POLICY | reject | reject, accept-new, ignore |
PODKOP_MCP_CONNECT_TIMEOUT | 8 | SSH connect timeout, seconds |
PODKOP_MCP_COMMAND_TIMEOUT | 45 | Command timeout, seconds |
PODKOP_MCP_BACKEND | auto | auto, forkop or podkop; the requested CLI must be installed |
PODKOP_MCP_READ_ONLY | 0 | Block all writes |
PODKOP_MCP_BACKUP_DIR | /etc/podkop-mcp/backups | Router-side backups |
PODKOP_MCP_BACKUP_KEEP | 30 | Number of backups to keep |
PODKOP_MCP_MAX_OUTPUT_BYTES | 200000 | Cap on captured command output, bytes |
PODKOP_MCP_LOG_LEVEL | INFO | Server log level on stderr (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
PODKOP_MCP_PROFILE_TTL | 30 | Seconds before the backend profile is revalidated against the router |
PODKOP_MCP_TARGETS | — | JSON with multiple routers |
PODKOP_MCP_CONFIG | — | Path to a JSON file with multiple routers; takes precedence over PODKOP_MCP_TARGETS and the single-router variables |
PODKOP_MCP_TARGET_NAME | router | Name of the single router defined by PODKOP_MCP_SSH_HOST / PODKOP_MCP_SSH_CONFIG_HOST; ignored when a JSON target list is used |
To manage several routers, put them in a JSON file and point PODKOP_MCP_CONFIG at it:
{
"targets": { "home": {"host": "192.0.2.10"}, "office": {"host": "192.0.2.11", "port": 2222} }, "default_target": "home" }
"env": {
"PODKOP_MCP_CONFIG": "~/.config/podkop-mcp/targets.json" }
The default_target router (or the first one when it is omitted) is used when a tool call does not pass target; pass "target": "office" to use the other router. PODKOP_MCP_TARGET_NAME does not select a target from this file — it only names the single router defined by PODKOP_MCP_SSH_HOST / PODKOP_MCP_SSH_CONFIG_HOST.
Testing
python -m pytest -q # unit + fake router + live/docker skipped
python scripts/smoke_mcp.py # MCP stdio handshake PODKOP_MCP_LIVE=1 python -m pytest -q -m live # read-only, real router
For the real SSH/UCI/apply path there is an OpenWrt Docker container: real openwrt/rootfs userland, real ubus/rpcd/dropbear/uci, with stubs for the Forkop CLI/init (no sing-box/nft).
.\scripts\openwrt-docker.ps1
. .\.tmp\openwrt-env.ps1 .\.venv\Scripts\python.exe -m pytest -q -m docker_ssh .\scripts\openwrt-docker.ps1 -Stop
This is a contai