What CMonitor tracks
Tester servers run temporary Xray/V2Ray probes. V2Ray nodes are monitored proxy configurations, arranged into groups. The dashboard shows tester health, recent latency, loss, uptime, and quality history.
This page explains how CMonitor works and how to connect an AI client to its monitoring tools. You can share cmonitor.realkia.com/mcp with an AI as product context.
Tester servers run temporary Xray/V2Ray probes. V2Ray nodes are monitored proxy configurations, arranged into groups. The dashboard shows tester health, recent latency, loss, uptime, and quality history.
The panel synchronizes tester assignments and results every five seconds. Probe history is stored in SQLite for up to seven days. Public group pages return a redacted status view.
public/ contains the browser interface. public/js/app.js drives dashboard views and polling. src/routes/api.js defines the API, src/db.js owns schema/migrations, and src/collector.js syncs tester results.
The project MCP server uses stdio and connects to this website over its authenticated API. Run it on the same computer as your MCP client, or on a computer that can reach this site. You can authenticate using an API Key (recommended) or account credentials.
Using an API key lets you grant scoped access (such as Read-only or Read+Test) to AI assistants without exposing your real admin password:
export CMONITOR_MCP_URL=https://cmonitor.realkia.com
export CMONITOR_MCP_API_KEY=cmon_your_api_key_here
npm run mcp
Or with username and password:
export CMONITOR_MCP_URL=https://cmonitor.realkia.com
export CMONITOR_MCP_USERNAME=your_username
export CMONITOR_MCP_PASSWORD='your_password'
npm run mcp
In the AI client's MCP configuration (e.g. Claude Desktop or Cursor), run node /absolute/path/to/cmonitor/mcp/server.js and pass CMONITOR_MCP_URL and CMONITOR_MCP_API_KEY.
Security model: this public page is documentation, not an unauthenticated monitoring API. MCP data access happens through the local process. Read-only keys never receive raw V2Ray URLs, passwords, or UUIDs.
Tools respect your key's permission level (Read-only, Read+test, or Full access):
It can inspect dashboard state, group and node summaries, tester health, and up to seven days of node quality history. It can also request a fresh probe for a saved node, run a single-config Quick Check, or check a subscription without saving configs or monitoring history. It can create, edit, move, and delete configs, groups, and subscriptions using the signed-in account’s permissions and slot limits. It provides no user/admin or infrastructure management.
list_v2ray_nodes returns compact rows (health, uptime, latency, loss, exit country) for every group unless you pass group. Narrow it with search, status (problems, down, unstable, ok, unknown, disabled) or enabled_only; use sort: "urgent" for the most problems first. Results are paged (limit default 50, offset) and detail: "full" adds notes, labels, IPs, tester and last probe. Results are compact JSON without empty fields to keep token use low.
get_v2ray_configs returns the saved proxy links so an assistant can hand them over: select by config_ids, group, search or status (up to 100). format: "text" (default) prints one #id name | link line per config; json returns objects. It needs a Read+test or Full key; Read-only keys are refused.
Use list_groups, list_v2ray_nodes, and list_subscriptions to discover IDs. Create or rename groups, reorder them with reorder_groups (ids), and move individual configs with move_v2ray_config (config_id, group_id). Group deletion reassigns configs/subscriptions to another group and cannot delete the last group.
create_v2ray_config accepts a proxy url and optional name, group, tester, and core. New configs begin monitoring. update_v2ray_config accepts config_id and changed fields, including boolean enabled. Results omit proxy URLs and credentials.
Subscription creation accepts name, HTTP(S) URL, enabled, auto_update, and update_interval_hours (1–168). It creates a dedicated group and fetches immediately when enabled. update_subscription uses sub_id; its group setting applies to new imports. Existing manually moved configs keep their destination group across refreshes. Provider refreshes can overwrite edits to imported config URLs.
list_subscription_configs lists sanitized imported config IDs; set_subscription_config_tracking takes sub_id, config_id, and boolean enabled. Deleting a config removes its history and a later feed refresh may import it again. delete_subscription requires an explicit purge_configs: true deletes its configs/history, false preserves them as standalone configs. Refresh and deletion tools are marked destructive.
get_network_nodes returns tester node IDs, names, location, and ISP/ASN/BGP details cached for 24 hours.
net_ping runs four ICMP probes and returns packet loss, per-probe latency, min/avg/max ms, resolved IP, and cached ISP/location/ASN/BGP prefix details. tester_ids is optional and automatically defaults to all enabled nodes if omitted.
net_tcp checks a TCP port from selected or all enabled nodes. You can specify port or include it in target (e.g. example.com:443).
search_ip finds saved configurations whose exact endpoint IN or exit OUT IP matches the target IPv4 or IPv6 address.
Log in with POST /api/auth/login and include the returned session cookie. Complete interactive documentation is available at /docs (or /api).
POST /api/vless/net-tools/ping
{"target":"example.com"}
POST /api/vless/net-tools/tcp
{"target":"example.com:443"}
GET /api/vless/net-tools/nodes
GET /api/vless/ip-search?ip=8.8.8.8
POST endpoints return JSON by default. For progressive streaming, pass stream: true or Accept: text/event-stream. Events contain type: result per tester, followed by type: done.
Discover tester IDs with get_tester_health, including Quick Check only testers. Call quick_check_config with your proxy URL (tester_ids is optional and defaults to all enabled testers):
{"url":"vless://YOUR_CONFIG", "tester_ids":[3,6], "core":"auto", "speed_test":{"download":true,"upload":true,"bytes":10485760}}
For quick_check_subscription, provide an HTTP(S) subscription url or a saved sub_id from list_subscriptions, plus tester_ids. Optional max_configs ranges from 1 to 100 (default 30; capped at 10 when speed_test is requested). Supported cores are auto, xray, and v2ray. Optional speed_test: {"download": true, "upload": true, "bytes": 10485760, "max_seconds": 3} runs tunnel throughput checks with configurable runtime cutoffs (e.g. 2s or 3s) and custom download/upload byte limits (capped at 10 MB for subscriptions). Cannot be combined with check_method: "download". Saved subscriptions follow account permissions. Results omit subscription and proxy URLs. Large checks can take several minutes; allow a suitable tool timeout in the MCP host.
Subscription checks accept concurrency from 1 to 8 (default 4). Ping and TCP accept a targets array of up to 20 addresses, checked concurrently; TCP targets can include their own port, such as example.com:8443 or [2001:db8::1]:443. Results identify both the target and tester.
The MCP server identifies as cmonitor version 1.9.0. Full REST API and schema docs are hosted at /docs.
Ask the AI to read this page for CMonitor's product and code context. For live data and probe refresh, configure the project MCP server in the AI client as described above. The local MCP resources are cmonitor://guide and cmonitor://api-map.
For current monitoring details, the AI should use MCP tools rather than infer health from a screenshot or this static guide.