MCP Server Studio

Marzban MCP MCP server

Manage Marzban panels through the Model Context Protocol.

Registry name: io.github.Ilmar7786/marzban-mcp

Publisher
Ilmar7786
Runs
Runs locally
Package
npm, Docker
Version
0.4.0
Category
AI & agents
Updated
2026-10-21

Source code on GitHub

Set up Marzban MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "marzban-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MARZBAN_BASE_URL": "<MARZBAN_BASE_URL>",
        "MARZBAN_USERNAME": "<MARZBAN_USERNAME>",
        "MARZBAN_PASSWORD": "<MARZBAN_PASSWORD>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add marzban-mcp -e MARZBAN_BASE_URL='<MARZBAN_BASE_URL>' -e MARZBAN_USERNAME='<MARZBAN_USERNAME>' -e MARZBAN_PASSWORD='<MARZBAN_PASSWORD>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "marzban-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MARZBAN_BASE_URL": "<MARZBAN_BASE_URL>",
        "MARZBAN_USERNAME": "<MARZBAN_USERNAME>",
        "MARZBAN_PASSWORD": "<MARZBAN_PASSWORD>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "marzban-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MARZBAN_BASE_URL": "<MARZBAN_BASE_URL>",
        "MARZBAN_USERNAME": "<MARZBAN_USERNAME>",
        "MARZBAN_PASSWORD": "<MARZBAN_PASSWORD>"
      }
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "marzban-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MARZBAN_BASE_URL": "<MARZBAN_BASE_URL>",
        "MARZBAN_USERNAME": "<MARZBAN_USERNAME>",
        "MARZBAN_PASSWORD": "<MARZBAN_PASSWORD>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
MARZBAN_BASE_URLYesURL of the Marzban panel.
MARZBAN_USERNAMEYesMarzban administrator username.
MARZBAN_PASSWORDYesMarzban administrator password.
MARZBAN_BASE_URLYesURL of the Marzban panel.
MARZBAN_USERNAMEYesMarzban administrator username.
MARZBAN_PASSWORDYesMarzban administrator password.

More ai & agents MCP servers