Back to Browse

Marzban Sdk MCP Server

Developer Tools10.0Low riskMCP RegistryLocal
Free

Server data from the Official MCP Registry

Manage Marzban panels through the Model Context Protocol.

About

Manage Marzban panels through the Model Context Protocol.

At a glance

Runs
On your computer, from the npm package marzban-mcp, which we verified belongs to this listing.
Works with
Claude Desktop, Claude Code, Grok Build (formerly Cursor), Windsurf, VS Code, Codex, Antigravity CLI, Gemini CLI, ChatGPT.

Security report

How we score
10.0out of 10Low riskMCP Marketplace security score

Valid MCP server (1 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

13 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

URL of the Marzban panel.Optional

Environment variable: MARZBAN_BASE_URL

Marzban administrator username.Optional

Environment variable: MARZBAN_USERNAME

Marzban administrator password.Required

Environment variable: MARZBAN_PASSWORD

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "marzban-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "marzban-mcp@0.4.0"
      ],
      "env": {
        "MARZBAN_BASE_URL": "your-marzban-base-url-here",
        "MARZBAN_PASSWORD": "your-marzban-password-here",
        "MARZBAN_USERNAME": "your-marzban-username-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

MarzbanSDK

A TypeScript toolkit for the Marzban API.

CI license

Documentation · SDK · MCP Server


One TypeScript SDK for Marzban, and everything built on top of it. Fix a bug or add an endpoint in the SDK, and the MCP server, the CLI, and every app built on it get it for free.

How it fits together

flowchart LR
    Panel(["Marzban Panel"])
    SDK["marzban-sdk"]
    MCP["marzban-mcp<br/>MCP server"]
    CLI["marzban-cli<br/>CLI · WIP"]
    App["Your app<br/>Node · Bun · Deno · Browser"]
    Agents(["Claude · Cursor · any MCP client"])

    Panel <--> SDK
    SDK --> MCP --> Agents
    SDK --> CLI
    SDK --> App

The SDK talks to your Marzban panel. The MCP server and CLI are just clients of that same SDK — same auth, same retries, same typed errors — so they never drift from each other or from your own code.

Packages

PackagenpmDockerWhat it is
packages/sdkmarzban-sdk—The TypeScript SDK — auth, retries, resilient WebSocket reconnects, webhooks, lifecycle
packages/mcpmarzban-mcpilmar7786/marzban-mcpAn MCP server exposing Marzban operations as tools for AI agents
packages/cli——A CLI on top of the SDK — WIP, unpublished
apps/docs——The documentation site

Each publishable package has its own version, README.md, changelog and release tags (sdk-v*, mcp-v*, cli-v*).

Documentation

Full guides, configuration reference and the complete typed API live at ilmar7786.github.io/marzban-sdk.

For how the repository itself is built — architecture, conventions, testing, CI and releases — see docs/.

Contributing

Contributions are welcome — see CONTRIBUTING.md for how to submit a patch. Found a bug or have an idea? Open an issue.

License

MIT © ilmar7786

Reviews

No reviews yet

Be the first to review this server!