relayer-mcp
This server lets an AI agent install, onboard, and operate a self-hosted XNS Relayer — an S3-compatible storage gateway running in Docker — end to end (15 tools in the README; 14 exposed in this schema).
Preflight checks —
check_prerequisitesverifies Docker (local or remote viaDOCKER_HOST/ssh context), required ports (8888, 9000), existing installations, disk space, and connectivity to XNS services.Account setup —
register_accountcreates an XNS account from email + password, andcheck_email_verifiedpolls (15s interval, 30-min timeout) until the verification link is clicked.Install —
install_relayerpulls the released compose bundle plus Prometheus/Grafana monitoring, writes.env, and runsdocker compose up -d; supports customui_port,s3_port,install_path, and an optionalcompose_urloverride.Health monitoring —
check_relayer_healthpolls UI, S3 gateway, HostIO, and monitoring sidecars (10s/300s), per-component, withhost/port overrides for remote Docker hosts.Claiming —
start_claimreturns a browser URL to link the install to an XNS account;check_claim_statuspolls toSTATE_3(completed).VPD configuration —
get_host_tagslists available host tags and the current selection;configure_vpdapplies data/parity CEL expressions, withdry_runpreview when supported.Storage verification —
verify_storageruns an S3 round-trip (create bucket, put, get) against a given endpoint using full-access key pair.CLI credentials —
setup_cli_credentialsprovisions an IAM user and writes~/.xns/credentialsso the XNS CLI works out of the box.Settings management —
describe_settingslists the curated adjustable settings (workers/concurrency, backup schedule, cost center) andupdate_settingsapplies whitelisted changes, returningrequire_restart.Service control —
restart_servicerestartshostio,gateway,s3gateway,database, or all.Backups —
manage_backupslists, starts, restores (selectively bydb/conf/hostio/samba), or deletes configuration archives.Auth — tools touching the Relayer API/HostIO use an OIDC (Authorization Code + PKCE) browser sign-in; tokens are held in memory only.
Note: the schema differs from the README in places — it exposes register_account (email/password) instead of start_registration's browser sign-up URL, and verify_storage/setup_cli_credentials require manually supplied keys/tokens rather than auto-provisioning.
Manages Docker containers for the XNS Relayer installation: checks Docker availability (local or remote via SSH context), installs the Relayer via Docker Compose, and restarts services.
Deploys and monitors the Grafana dashboard as part of the Relayer's Prometheus/Grafana monitoring stack for visualizing metrics.
Leverages Keycloak for OIDC authentication to obtain tokens used for configuring VPD host selection and provisioning S3 CLI credentials.
Deploys and monitors Prometheus as part of the Relayer's monitoring stack to collect and store metrics from the Relayer services.
@xns-cloud/relayer-mcp
S3-compatible cloud object storage from XNS, set up and managed by your AI assistant. This is the MCP server for XNS. Provides 15 tools that let an AI agent set up the Relayer, the small gateway that runs on your own machine, and manage it day to day over stdio.
In Claude, use the xns-storage plugin: it registers this server and adds the step-by-step skills. In Claude Code, run:
/plugin marketplace add xns-cloud/xns-storage-plugin
/plugin install xns-storage@xns-cloudthen say: set up XNS storage
For any other MCP client, run the server with npx:
npx @xns-cloud/relayer-mcp@latestPricing: $6.00 per TB per month. $0 egress, uncapped. 30-day minimum retention, no early-delete fee. See xns.tech/pricing.
Requirements
On Ubuntu 24.04 or Debian 12, one command sets up everything:
curl -fsSL https://releases.xns.tech/relayer/install.sh | shThe script installs Docker Engine and the compose plugin, adds you to the docker group, starts the Relayer in /opt/xns-relayer, and waits for the dashboard at http://localhost:8888. If Claude Code is present, it also installs Node.js 24 when Node is missing or older and registers this MCP. Log out and back in afterward so the docker group applies. On macOS or Windows it installs nothing and points you to Docker Desktop.
Without the script, the MCP needs:
Node.js 24+ — see Installing Node.js 24 if your distro ships an older version.
Docker Engine — on the same machine that runs the MCP.
install_relayerrefuses when the Docker daemon is on another machine (see Remote Docker hosts).
Installing Node.js 24
Ubuntu's default apt repository only ships Node 18, which is too old. Two ways to get Node 24:
nvm (recommended — no root required):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
\. "$HOME/.nvm/nvm.sh" && nvm install 24NodeSource (system-wide): follow https://github.com/nodesource/distributions#installation-instructions.
If you start the MCP on an older Node, it exits immediately with this same guidance instead of a dependency stack trace.
Related MCP server: solfleet
Environment
The Relayer runs as a Docker container and persists its data in a Docker volume. If the MCP is running inside an ephemeral environment (a sandbox container, a CI runner, or a throwaway VM), any installation performed there will be lost when that environment exits. check_prerequisites detects this automatically and reports it as a warning with a concrete next step — it never blocks the flow.
If your environment is ephemeral, run the MCP on a persistent Docker host instead (install Node.js 24 there and point your MCP client at it). Alternatively, hand the install step to a human operator on the target machine and continue onboarding from check_relayer_health onwards.
Install
On Ubuntu 24.04 or Debian 12, one command installs the Relayer and registers this MCP when Claude Code is present:
curl -fsSL https://releases.xns.tech/relayer/install.sh | shIf you use Claude Code with the xns-storage plugin, remove the relayer registration the script made; the plugin registers its own.
To set it up yourself instead:
Claude Code (with the plugin, which registers this server for you):
/plugin marketplace add xns-cloud/xns-storage-plugin
/plugin install xns-storage@xns-cloudWithout the plugin, register it by hand:
claude mcp add --scope user relayer -- npx @xns-cloud/relayer-mcp@latestDo one or the other, not both: with both, the 15 tools load twice.
Claude Desktop / any MCP client — add to your claude_desktop_config.json (or equivalent):
{
"mcpServers": {
"relayer": {
"command": "npx",
"args": ["@xns-cloud/relayer-mcp@latest"]
}
}
}Cursor — add to .cursor/mcp.json:
{
"mcpServers": {
"relayer": {
"command": "npx",
"args": ["@xns-cloud/relayer-mcp@latest"]
}
}
}No separate install step required — npx fetches the package on demand.
Tools
# | Tool | Purpose |
1 |
| Verify Docker (local or remote), the compose plugin, Docker socket access (when it is denied, whether the |
2 |
| Get the browser sign-up URL for creating an XNS account — the agent never handles credentials. |
3 |
| Poll email verification status (15s interval, 30-min timeout). |
4 |
| Fetch the canonical release channel bundle — relayer + Prometheus/Grafana monitoring stack ( |
5 |
| Poll UI, S3, HostIO, and the monitoring sidecars (10s interval, 300s timeout). A missing monitoring stack reports as degraded without blocking the flow. Before the owner claims the Relayer and signs in, the S3 gateway is not started yet, so the tool returns |
6 |
| Initiate a claim session — returns a URL for browser confirmation. |
7 |
| Poll claim state (STATE_1 / STATE_2 / STATE_3). |
8 |
| Retrieve available host tags for VPD configuration, plus the currently applied data/parity selection (read-back with an |
9 |
| Set data/parity host selection via CEL expressions. |
10 |
| Round-trip S3 test (create bucket, put object, get object) against the S3 gateway. Provisions a temporary scoped IAM credential automatically from your OIDC session — no manual key management needed. The tool attempts to remove test data and the throwaway credential after the test; a |
11 |
| Provision S3 IAM credentials and write |
12 |
| List the adjustable settings — worker/concurrency tuning, backup schedule, cost center (CCID) — with current values, defaults, and guidance. The MCP deliberately exposes only this curated set, never the full advanced catalog. |
13 |
| Apply a map of setting changes (whitelist-enforced). Returns |
14 |
| Restart |
15 |
| List / start / restore / delete configuration backups. Restore is destructive and supports selective components ( |
Onboarding Flow
Agent checks prerequisites (Tool 1).
Agent gets the browser sign-up URL; user creates an account in the browser (Tool 2).
User clicks email verification link; agent polls (Tool 3).
Agent installs and starts Relayer containers (Tool 4) — it writes the released compose +
.envitself; the user is never asked for a compose URL.Agent polls health until the UI is up (Tool 5); the S3 gateway starts once the Relayer is claimed and its owner signs in to the Relayer web UI.
Agent initiates claim; user opens claim URL in browser (Tools 6 + 7).
Agent signs in via OIDC to configure host preferences (Tools 8 + 9).
Agent verifies S3 storage is working (Tool 10).
Optionally, agent provisions CLI credentials (Tool 11).
The operator's only required actions are: clicking one email link, completing one browser sign-in, and confirming one claim.
Day-2 Management
After onboarding, tools 12-15 cover routine adjustments: describe_settings → update_settings → restart_service for tuning (workers, concurrency, backup schedule, cost center), and manage_backups for the backup lifecycle. All four use the same OIDC session as tools 8-9. Destructive operations (restore, restart, changing the cost center) are agent-confirmed with the operator before execution — the tool descriptions and responses carry the warnings.
Fresh installs vs. existing deployments
install_relayer performs fresh installs only — it does not upgrade an existing deployment in place. Docker container names are unique per daemon, so any existing xns-relayer container (running or stopped, any channel — including an alpha-channel install from releases.xns.tech) blocks the install. Both check_prerequisites and install_relayer detect this and tell you before anything breaks.
To replace an existing deployment:
docker stop xns-relayer && docker rm xns-relayer # does NOT delete the data directorythen run install_relayer again. To keep the existing deployment, skip install_relayer and continue onboarding against it (check_relayer_health onwards).
Remote Docker hosts
install_relayer writes docker-compose.yml and .env on the machine running the MCP, then runs docker compose up against whichever daemon the Docker CLI points at. When that daemon is on another machine (DOCKER_HOST=ssh://… or tcp://…, or an SSH Docker context), it refuses before writing or starting anything, and the error names the Docker host.
To install, run the MCP on the Docker host (Node.js 24 there, MCP client pointed at it) and run install_relayer again. Or unset DOCKER_HOST / switch to the default Docker context to install on the machine running the MCP.
check_prerequisites reports the same condition as a failed install_file_location check. Health checks still work against a remote daemon: the MCP honors DOCKER_HOST and the active Docker context, check_relayer_health and verify_storage probe the remote host's ports 8888/9000 instead of localhost, and check_prerequisites skips the local port probes. check_relayer_health accepts a host override, and verify_storage an endpoint override, for setups the auto-detection can't see (port forwards, NAT).
Troubleshooting
Symptom | Cause | Fix |
MCP exits with "requires Node.js 24 or newer" | Distro Node is too old (Ubuntu apt ships Node 18) | |
| A previous deployment (any channel) owns the container name | |
Port 8888/9000 already in use | Another service on the Docker host (another S3-compatible service squatting 9000) | Stop it, or install with custom ports: |
Port 9443 already in use | Another service on the Docker host holds the S3 HTTPS port the release compose publishes | Stop that service ( |
Docker socket permission denied | You were added to the |
|
Docker is not running | The Docker daemon is stopped |
|
Not enough disk space | Under 10 GB free on the Docker root or the install directory | Free space there, then re-run |
Image pull refused |
| Check the connection; |
Health checks fail but containers run on a remote Docker host | Ports 8888/9000 not reachable from the management node | Open them, or pass |
|
| Run the MCP on that host and re-run, or unset |
| The install path needs root on the machine running the MCP (common on macOS/Windows workstations for paths under | Pass a writable |
| The release files could not be downloaded, were incomplete, do not support the requested | The message names it; then run |
Authentication
Tools 8-9 and 12-15 require an OIDC token to access the Relayer API and HostIO proxy. The MCP acquires one automatically using Authorization Code + PKCE (S256) flow against the scprime Keycloak realm with the relayer-native public client. The user completes a browser sign-in; the MCP captures the code on a local 127.0.0.1 loopback listener and exchanges it for a token.
Prerequisite: The relayer-native public client must be registered on the Keycloak scprime realm (PKCE S256, redirect http://127.0.0.1:*).
Development
npm install
npm testRequires Node.js 24+.
Note on relayer-native client
This package uses the relayer-native Keycloak client ID for OIDC authentication. The same client ID is intended for reuse by a future standalone Relayer CLI (@xns-cloud/relayer-cli), with the OIDC module (src/lib/oidcAuth.js) extracted to a shared @xns-cloud/relayer-auth package.
Privacy Policy
Canonical policy: https://xns.tech/privacy-policy/. Product-specific detail for this server is in PRIVACY.md.
The short version:
No telemetry. No analytics, crash reporting, or usage counters. It does not phone home.
Tokens live in memory only. OIDC access tokens are never written to disk; they are discarded when the process exits.
The agent never sees your password. Sign-in happens in your own browser against
auth.xns.tech.Credentials stay on your network.
verify_storageruns the Relayer host you pass through an allowlist (localhost, loopback, RFC 1918,*.local) before sending a token, andsetup_cli_credentialstakes no URL and sends its token only to the server's own Relayer UI.check_relayer_healthsends plain HTTP health probes, with no credentials, to the Docker host or thehostyou pass, which is not limited to private addresses,install_relayerdownloads acompose_urloverride only from https onreleases.xns.tech, afile://URL, or a loopback, private-network or.localhost, and the S3 test inverify_storagegoes to theendpointyou pass (requests are signed, so the secret key is never sent). Otherwise the public hosts contacted are the three XNS servicesauth.xns.tech,console.xns.techandreleases.xns.tech, and Docker Hub for theprom/node-exporterimage that an install pulls.Your stored objects never pass through it. The Relayer you host handles your data directly.
Desktop extension (MCPB)
The same server ships as an MCP Bundle for one-click install in Claude Desktop. Build it from a clean checkout:
npm run bundleThat reinstalls production-only dependencies, validates the manifest, and writes the .mcpb. The MCPB CLI version is pinned in the script — do not invoke it unversioned, or the bundle you ship is not the bundle that was validated. Run npm ci afterwards to get the dev dependencies back for testing.
To validate the manifest alone without repacking:
npm run bundle:validatemanifest.json at the repo root is the bundle manifest. mcpbManifest.test.js pins its version and tool list to package.json, server.json, and the running server, so drift fails the suite rather than shipping.
License
Available Tools
15 toolscheck_claim_statusA
Poll the status of a claim session. Checks every 10 seconds. States: STATE_1 (pending — user has not yet opened the claim URL), STATE_2 (in progress — user is completing the claim in browser), STATE_3 (completed — claim successful). Automatically proceeds when STATE_3 is reached.
Inputs: claim_id (required), timeout_ms.
check_email_verifiedA
Poll to check if the user has verified their email address. Automatically polls every 15 seconds for up to 30 minutes. Returns immediately if already verified. If the email has no account, indicates registration is needed.
Inputs: email (required), poll.
check_prerequisitesA
Check system prerequisites for XNS Relayer installation: Docker availability (local or remote via DOCKER_HOST / ssh:// context), required ports (8888, 9000), an existing xns-relayer installation, disk space, and network connectivity to console.xns.tech and auth.xns.tech. Run this first before any other relayer tool.
Inputs: no named parameters.
check_relayer_healthA
Check the health of all Relayer services: UI (port 8888), S3 gateway (port 9000), HostIO, and the monitoring sidecars (Prometheus + Grafana containers). Polls every 10 seconds for up to 300 seconds. Reports each component status individually and names any unhealthy component; a missing monitoring stack reports as degraded (dashboards empty) without blocking the install flow. Targets the machine the Docker daemon runs on (auto-detected from the Docker context — supports remote ssh:// Docker hosts); pass host to override. Note: HostIO health status is unknown until OIDC authentication is completed.
Inputs: host, poll, s3_port, ui_port.
configure_vpdA
Configure VPD (Virtual Private Datacenter) host selection for the Relayer, or preview it with dry_run. Use defaults ("true" for both expressions) or a CEL expression filtering hosts by tags. The Relayer requires a minimum of 10 data hosts and 20 parity hosts — if too few match, broaden the criteria. Requires OIDC sign-in (same session as get_host_tags).
Inputs: data_expression (required), parity_expression (required), dry_run.
describe_settingsA
List the adjustable Relayer settings: worker/concurrency tuning, backup schedule, and cost center (CCID). Returns current value, default, type, and guidance per setting. Use before update_settings. Requires OIDC sign-in (same session as the other tools).
Inputs: no named parameters.
get_host_tagsA
Get the available host tags for VPD (Virtual Private Datacenter) configuration, plus the currently applied VPD host selection. Translate tags into plain-language options for the operator — never show raw CEL expressions. Requires OIDC sign-in on first use (the user will be prompted to sign in via browser).
Inputs: no named parameters.
install_relayerA
Install and start the XNS Relayer. By default fetches the canonical beta channel bundle — relayer + the Prometheus/Grafana monitoring stack — from releases.scpri.me (anonymous pull) and writes a .env, then runs docker compose up -d — the user does NOT need to author any file. Falls back to a bundled copy of the bundle if the fetch fails. Pass compose_url only to override with a custom compose.
Inputs: s3_port, ui_port, compose_url, install_path.
manage_backupsA
Manage Relayer configuration backups: list archives, start a backup, restore from an archive, or delete one. Restore OVERWRITES current state and restarts services — always confirm with the operator and state which archive and components first. Backups must be enabled (BACKUP_ENABLED) for list/start.
Inputs: action (required), file, components.
register_accountA
Register a new XNS account with an email and password. After registration, the user must verify their email at auth.xns.tech by clicking the link sent to their inbox. Use check_email_verified to poll for verification status. If the email already has an account, you can skip to install_relayer.
Inputs: email (required), password (required).
restart_serviceA
Restart a Relayer service (hostio, gateway, s3gateway, database) or all services. Disruptive: in-flight S3 requests will fail during the restart — confirm with the operator before calling. Verify recovery afterwards with check_relayer_health.
Inputs: service.
setup_cli_credentialsA
Provision S3 IAM credentials for the XNS CLI. Creates an IAM user in the Relayer and writes ~/.xns/credentials so that xns ls and other S3 verbs work without further configuration. Call once after check_claim_status reaches STATE_3.
Inputs: muse_token (required), relayer_ui_url, installation_id.
start_claimA
Start a claim session to link this Relayer installation to an XNS account. Returns a claim URL that the user must open in a browser to complete the claim. The claim has an expiration time. After calling this, use check_claim_status to monitor claim progress.
Inputs: no named parameters.
update_settingsA
Update adjustable Relayer settings (see describe_settings for the allowed set). Pass a map of setting name to new value, e.g. {"HOSTIO_UPLOAD_WORKERS": 20}. Returns require_restart — if true, follow up with restart_service after confirming with the operator. Changing CostCenter re-bills to a different cost center; always confirm first.
Inputs: settings (required).
verify_storageA
Verify the S3-compatible storage gateway is working by performing a round-trip test: create a test bucket, upload a small object, download it, and compare. IMPORTANT: you must supply fullaccess credentials — the admin key pair created via the Relayer UI IAM page (not a read-only or bucket-scoped key). By default targets port 9000 on the machine the Docker daemon runs on (auto-detected from the Docker context — supports remote ssh:// Docker hosts); pass endpoint to override with an explicit IP when auto-detection cannot reach the host.
Inputs: access_key_id (required), secret_access_key (required), endpoint.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct phase or action in the relayer lifecycle: prerequisites, account, install, health, claim, VPD, storage, CLI, settings, restart, backups. There is no overlap or ambiguity between tools.
All tool names follow a consistent verb_noun pattern with snake_case (e.g., check_prerequisites, start_claim, update_settings). The verbs clearly indicate the action and the noun indicates the target, making the naming predictable and readable.
With 15 tools, the set covers the full installation and management workflow without being bloated. Each tool serves a specific, necessary function in the operator's journey, and the count is within the well-scoped range for a server with this purpose.
The tool set covers the entire lifecycle from prerequisites to installation, claiming, configuration, verification, settings tuning, restart, and backups. There are no obvious dead ends or missing operations for the intended use case of installing and managing an XNS Relayer.
Maintenance
Related MCP Connectors
Create a free sandbox object storage bucket; upload, download, list, inspect, and delete objects.
Create Xyvenra Cloud sites and Data projects, deploy static HTML, and query Data.
Safety-first EVM and Bitcoin RPC tools for balances, contracts, blocks, and transactions
Inspect Exoscale: instances, volumes, SKS, DNS, IPs, quotas and usage; start, stop, reboot VMs.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables automated VPS initialization and management through SSH connections. Supports installing common services like Node.js, Nginx, and Redis, configuring domains with SSL certificates, and setting up GitHub CI/CD pipelines with deploy keys.53MIT
- AlicenseAqualityCmaintenanceAgent-safe management of independent Solana validators and RPC nodes over MCP and CLI: Solana-aware status, in-place upgrades, and DNS failover. Every change is dry-run by default, policy-gated, and audited, and it never touches keypairs.15Apache 2.0
- AlicenseBqualityCmaintenanceEnables users to inspect and manage domains, DNS records (including A, AAAA, CNAME, MX, TXT and more), HTTP forwards, invoices and dynamic DNS through a hosting provider's API, with previewed change plans, conflict detection, backups and independent readback before writes. Offers DNS shortcuts such as website setup, verification records, bulk IP replacement, zone import/export and backup restore, exposed via local stdio or authenticated Streamable HTTP for a central gateway.27MIT
- AlicenseNot gradedqualityCmaintenanceProvides an agent toolbelt exposing 74 tools spanning files, shell, web, code graph, git, memory, computer, and axodex behind a single process, plus optional gateway endpoints for model routing, verification, and context packing. Ships dual-era MCP support over stdio or Streamable HTTP, with hardcoded tool groups importable for the axo ecosystem.23 npmMIT