npm marzban-mcpstdioMITupdated 7d ago
A TypeScript toolkit for the Marzban API.
What can you do with Marzban MCP?
MarzbanSDK
A TypeScript toolkit for the Marzban API.
Documentation Ā· SDK Ā· MCP Server
One typed API client 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
| Package | npm | Docker | What it is |
|---|---|---|---|
packages/sdk |
marzban-sdk |
ā | The typed API client ā auth, retries, WebSocket log streams, webhooks |
packages/mcp |
marzban-mcp |
ilmar7786/marzban-mcp |
An 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
Install
Add Marzban MCP to your client. Pick the one you use.
claude mcp add marzban-mcp -- npx -y marzban-mcpcodex mcp add marzban-mcp -- npx -y marzban-mcpamp mcp add marzban-mcp -- npx -y marzban-mcp{
"mcpServers": {
"marzban-mcp": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"marzban-mcp": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"marzban-mcp","command":"npx","args":["-y","marzban-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"marzban-mcp": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"marzban-mcp": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"marzban-mcp": {
"command": "npx",
"args": [
"-y",
"marzban-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"marzban-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"marzban-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"marzban-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"marzban-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y marzban-mcpRun `goose configure`, choose **Add Extension ā Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation22/25
- Maintenance19/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 0 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint ā no local install
Version history
| Versions | Published |
|---|---|
| 0.2.2Latest | Aug 31, 2026 |