Skip to main content
Glama

DXRP MCP server

An MCP server that lets an AI agent drive the DXRP network API — read players, servers, ranks, factions, sanctions, items, maps and audit logs, and (with the right scopes) act on them.

v1.0.1 is live and still in development. The next major release is the v2 admin Discord bot: operator ranks, Steam-ID linking, sanctions, economy and tickets. v2 and v3 are planned, not shipped. See the visual roadmap and CONTRIBUTING.md.

This repository is built in three layers, in this order:

Layer

What it is

Where

1. API reference

Every endpoint, verb, parameter and response DTO, extracted from the portal's own generated client and verified against the live API

docs/api/, spec/openapi.yaml

2. Typed client

One typed function per operation, scope-aware, rate-limit-aware

src/dxrp_client/

3. MCP server

Tools, resources and prompts an agent can call

src/dxrp_mcp/

The API reference comes first because everything else consumes it: the MCP tools, the optional Discord bot, and any future admin tooling all read the same generated contract.

The MCP server is the primary product. The planned v2 admin Discord bot is a separate project that reuses the same client — no bot code lives here yet.

Demo

Watch the 90-second narrated demo — the plugin, the live subagent call and the v1 → v3 roadmap.

Related MCP server: remnawave-mcp

Install

uvx --from dxrp-mcp==1.0.1 dxrp-mcp --list-tools

--list-tools needs no credentials and prints the read-only catalog (115 tools; the catalog holds 154 read operations, and the other 39 are session-only and hidden by default). Set DXRP_API_KEY and DXRP_TENANT to call the API. A local wheel can be built with uv build and used via uvx --from dist/dxrp_mcp-1.0.1-py3-none-any.whl dxrp-mcp --list-tools. Client-specific instructions: docs/install/. Hermes users can install the portable package from the public GitHub mirror:

uv tool install dxrp-mcp==1.0.1
# uv tool installs into ~/.local/bin; make sure the PATH Hermes sees includes it
export PATH="$HOME/.local/bin:$PATH"
hermes plugins install THEROCKSSS/dxrp-mcp/integrations/hermes --ref 0278cdea425cd0b672364053c1f31af766d178ec  # v1.0.1
hermes plugins enable dxrp-mcp

The plugin is pinned to the commit tagged v1.0.1, so it matches the CLI version installed above. The package, its validation output and a live subagent call are documented at docs/plugin/index.html.

Why the docs exist at all

The public docs at https://dxrp.net/docs/api/api-documentation cover authentication and scopes but state, in their own words, that "the full endpoint schema isn't documented yet". The DXRP portal is an Angular app that ships an NSwag-generated TypeScript client — one method per API operation — so the complete surface is recoverable, and this repo recovers it. The point-by-point comparison — what the official page covers, what it omits, and which of its examples are wrong — is docs/api/official-docs-coverage.md. The ready-to-apply upstream proposal is docs/api/official-docs-update.md; it has not been submitted.

Number

Meaning

333

operations (verb + path pairs)

263

distinct paths

321

response DTOs with their field lists

230

operations with a known response DTO

tools/extract_from_portal.py regenerates the inventory whenever the portal ships a new bundle; tools/probe_api.py re-verifies it against the live API.

Quick start

# regenerate the inventory from the live portal bundle (no credentials needed)
python tools/extract_from_portal.py --out spec/inventory.json

# probe the live API (needs a key; see docs/api/authentication.md)
export DXRP_API_KEY=...   # never commit this
export DXRP_TENANT=...
python tools/probe_api.py --inventory spec/inventory.json --out spec/probes.json

# render spec/openapi.yaml and docs/api/endpoints/*.md
python tools/build_docs.py

# fail if any hand-written doc names a route the API does not have
python tools/check_docs.py

Run the client and the MCP server

export PYTHONPATH=src DXRP_API_KEY=... DXRP_TENANT=...

python -m dxrp_client.ping players        # typed client: live roster
python -m dxrp_mcp                        # stdio, read-only (official SDK)
python -m dxrp_mcp --allow-writes         # write tools; each still needs confirm=true
python -m dxrp_mcp --transport http       # Streamable HTTP on 127.0.0.1:8765/mcp
python -m dxrp_mcp --doctor               # identity, tenant and scope diagnosis
python -m dxrp_mcp --list-tools           # catalog as JSON, no credentials needed

The server is built on the official MCP SDK and negotiates protocol 2026-07-28 alongside the older initialize handshake. It is read-only by default: a write tool appears only with --allow-writes, refuses without confirm=true, and dry_run=true previews the request. A tool whose scope the key does not hold is not listed; --toolsets players,servers narrows the surface further.

Layout

docs/api/          the API reference (overview, auth, scopes, errors, endpoints)
docs/tools/        the tool catalog — what an agent can call, grouped, with counts
docs/plan/         the MCP server and Discord bot designs
spec/              generated inventory, probes, tool catalog and OpenAPI document
src/dxrp_client/   the generated typed client (one function per operation)
src/dxrp_mcp/      the stdio MCP server (tools, resources, prompts)
tests/             contract tests for the client and end-to-end tests for the server
tools/             extractor, prober, client generator, catalog builder, docs and SVGs

Credentials

Nothing in this repository needs a credential to read the API surface — the bundle is public. Only tools/probe_api.py needs a key, and it reads DXRP_API_KEY / DXRP_TENANT from the environment. Keys are never written to the repo, a commit, or an issue.

Status

Documentation layer: generated and live-verified. Tool catalog: 333 tools across 10 groups, published as docs/tools/index.html. Typed client and MCP server: implemented in src/, exercised by tests/. Packaging, protocol 2026-07-28, stdio + Streamable HTTP and the wheel are implemented and verified. CI is green on the self-hosted VM100 runner. The project is MIT licensed; PyPI 1.0.1 and the MCP Registry entry are live. See

ROADMAP.md, AGENTS.md, ARCHITECTURE.md, SECURITY.md and CONTRIBUTING.md. The DXRP recognition pack and outreach draft are in docs/integrations/dxrp.md.

Tool catalog

Every API operation becomes exactly one MCP tool, named dxrp_<domain>_<operation>. The catalog is generated, so the counts on the page cannot drift from the contract:

python tools/build_catalog.py     # spec/tools.json + docs/tools/index.html

Counts, read/write splits and live-verification state live in the generated page: docs/tools/index.html. It is rebuilt from spec/tools.json, so the numbers cannot drift; this README intentionally does not repeat them.

The endpoint map

Every DXRP API operation as an MCP tool

Every one of the 333 operations is listed once in assets/endpoint-index.svg, grouped the same way. Both files are generated by python tools/build_diagrams.py. The Discord bot is not part of this map: it is an optional client of the same tools.

Architecture, lifecycle and protocol

dxrp-mcp architecture

A tool call from tools/call to a typed result

Protocol revision matrix

The searchable, filterable version is docs/map/index.html: every tool, its group, verb, path, scope and session-only flag.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to discover and call all Roblox Open Cloud API endpoints through five small tools, without loading an API reference into context.
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI clients to drive the full Remnawave panel API, exposing one tool per method+path operation (users, nodes, hosts, subscriptions, inbound, bulk actions) plus search, describe, status, audit and metrics helpers. Read-only/read-write gating, deny rules, confirm-preview and dry-run, response secret redaction and an audit journal keep mutations controlled.
      222
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Lets an AI assistant inspect and adjust TP-Link Omada WiFi networks by searching, describing, and calling any of roughly 1,650 Omada Open API operations through nine tools. It is read-only by default, refusing every non-GET request unless writes are explicitly unlocked, and even then returning a dry-run preview until a change is confirmed.
      9
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude or any MCP client to manage WHMCS clients, services, orders, invoices, quotes, domains, tickets and system settings through the WHMCS External API, with 128 typed tools plus a generic caller for any of the 162 API actions. Includes read-only mode, confirmation prompts for destructive operations, and opt-in gating for sensitive actions.
      10 npm
      MIT