Skip to main content
Glama

3xui-mcp

MCP (Model Context Protocol) server for the 3x-ui panel, built on 3xui-api-client.

Scoped intentionally to keep tool context small: read operations plus full CRUD for inbounds and clients. Nodes, groups, geo files, backups, Xray config, and panel settings are out of scope — extend src/tools/ if you need them.

Tools

Tool

Type

Description

list_inbounds

read

List all inbounds

get_inbound

read

Get one inbound by ID

create_inbound

write

Create an inbound

update_inbound

write

Replace an inbound's config

delete_inbound

write

Delete an inbound

list_clients

read

List all clients across inbounds

get_client

read

Get one client by email

get_client_traffic

read

Get a client's traffic usage

list_online_clients

read

List currently connected clients

create_client

write

Add a client with auto-generated credentials

update_client

write

Update a client's limits/expiry/state

delete_client

write

Delete a client by email

Related MCP server: Open WebUI MCP Server

Configuration

Set credentials via environment variables — pick one auth mode:

# Required
THREEXUI_BASE_URL=https://your-panel.example.com

# Cookie auth (admin username/password)
THREEXUI_USERNAME=admin
THREEXUI_PASSWORD=your-password

# OR API token auth (skips username/password)
THREEXUI_API_TOKEN=your-token

# Optional, default "auto"
THREEXUI_PANEL_TYPE=auto   # auto | modern | legacy

Build & run

npm install
npm run build
npm start

Use with an MCP client

Add to your client's MCP config (e.g. Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "3xui": {
      "command": "node",
      "args": ["/absolute/path/to/3xui-mcp/dist/index.js"],
      "env": {
        "THREEXUI_BASE_URL": "https://your-panel.example.com",
        "THREEXUI_USERNAME": "admin",
        "THREEXUI_PASSWORD": "your-password"
      }
    }
  }
}

Once published to npm, command/args can be replaced with "npx" / ["-y", "3xui-mcp"].

Test locally

npm run inspector

Opens the MCP Inspector against this server.

Agent skill

skills/3xui-mcp/SKILL.md documents every tool's required/optional fields, units (GB vs bytes, ms timestamps), and common workflows for an AI agent driving this server — load it alongside the server so the agent doesn't have to guess input shapes from tool descriptions alone.

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables LLM agents to perform CRUD operations across multiple databases including PostgreSQL, MySQL, and SQL Server using SQLAlchemy. It features configurable permission management and secure connection handling with automatic password redaction.
    4
  • A
    license
    B
    quality
    F
    maintenance
    Exposes Open WebUI's admin APIs as tools, allowing AI assistants to manage users, groups, models, knowledge bases, and chats. It enables comprehensive administrative control and resource discovery while respecting the platform's native permission and authentication systems.
    82
    10
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    Enables AI agents to manage server infrastructure through the 1Panel API, including Docker containers, databases, and system monitoring. It provides tools for website management, file operations, and application deployment via natural language commands.
    15
    28
    MIT

View all related MCP servers

Related MCP Connectors

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • x402-paid agent tools: 18 over HTTP, 14 over stdio. USDC per call, no API key.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iamhelitha/3xui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server