Skip to content
VS Code

Marzban MCP for VS Code

io.github.ilmar7786/marzban-mcp

Manage Marzban panels through the Model Context Protocol.

client:VS Code transport:stdio runtime:npm

Install Marzban MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "marzban-base-url",
      "description": "MARZBAN_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "marzban-username",
      "description": "MARZBAN_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "marzban-password",
      "description": "MARZBAN_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "marzban-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "marzban-mcp"
      ],
      "env": {
        "MARZBAN_BASE_URL": "${input:marzban-base-url}",
        "MARZBAN_USERNAME": "${input:marzban-username}",
        "MARZBAN_PASSWORD": "${input:marzban-password}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Marzban MCP in other clients