Marzban MCP Server
by ilmar7786io.github.Ilmar7786/marzban-mcpv0.3.0
Manage the Marzban proxy/VPN panel: users, subscriptions, nodes, hosts, config and system stats, with confirmation for destructive calls.
context tax
queued
security
queued
cold start
queued
freshness
Maintained32d ago
Install Marzban MCP server
Install in Claude Code
claude mcp add marzban -e MARZBAN_BASE_URL='<marzban-base-url>' -e MARZBAN_USERNAME='<marzban-username>' -e MARZBAN_PASSWORD='<marzban-password>' -- npx -y marzban-mcpInstall in Cursor
{
"mcpServers": {
"marzban": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
],
"env": {
"MARZBAN_BASE_URL": "<marzban-base-url>",
"MARZBAN_USERNAME": "<marzban-username>",
"MARZBAN_PASSWORD": "<marzban-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"marzban": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
],
"env": {
"MARZBAN_BASE_URL": "<marzban-base-url>",
"MARZBAN_USERNAME": "<marzban-username>",
"MARZBAN_PASSWORD": "<marzban-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"marzban": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"marzban-mcp"
],
"env": {
"MARZBAN_BASE_URL": "<marzban-base-url>",
"MARZBAN_USERNAME": "<marzban-username>",
"MARZBAN_PASSWORD": "<marzban-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"marzban": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
],
"env": {
"MARZBAN_BASE_URL": "<marzban-base-url>",
"MARZBAN_USERNAME": "<marzban-username>",
"MARZBAN_PASSWORD": "<marzban-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MARZBAN_BASE_URL | yes | — | URL of the Marzban panel. |
| MARZBAN_USERNAME | yes | — | Marzban administrator username. |
| MARZBAN_PASSWORD | yes | yes | Marzban administrator password. |
Freshness
Maintained — last maintenance signal 32d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-07 · 32d ago · GitHub
Latest release
2026-09-06 · 33d ago · GitHub · mcp-v0.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-06 · 33d ago · official registry · v0.3.0
FAQ
›How do I install the Marzban MCP server in Claude Code?
Run: claude mcp add marzban -e MARZBAN_BASE_URL='<marzban-base-url>' -e MARZBAN_USERNAME='<marzban-username>' -e MARZBAN_PASSWORD='<marzban-password>' -- npx -y marzban-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Marzban require an API key?
Yes. It expects MARZBAN_BASE_URL, MARZBAN_USERNAME, MARZBAN_PASSWORD, of which 1 is a secret.
›Can I use Marzban as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Marzban in the official MCP registry?
Yes, as io.github.Ilmar7786/marzban-mcp.
Alternatives to Marzban
Other cloud platforms MCP servers.