Skip to main content
Glama

@xns-cloud/relayer-mcp

npm version license node

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-cloud

then say: set up XNS storage

For any other MCP client, run the server with npx:

npx @xns-cloud/relayer-mcp@latest

Pricing: $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 | sh

The 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_relayer refuses 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 24

NodeSource (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 | sh

If 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-cloud

Without the plugin, register it by hand:

claude mcp add --scope user relayer -- npx @xns-cloud/relayer-mcp@latest

Do 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

check_prerequisites

Verify Docker (local or remote), the compose plugin, Docker socket access (when it is denied, whether the docker group membership is missing or not yet live), ports (8888, 9000, 9443), an existing installation, free disk (10 GB on the Docker root and the install directory), the root mount's propagation for the Docker daemon (a private /, the WSL2 default, leaves the containers stuck in "Created"), and network connectivity. Each failure names the command that fixes it; ports held by a running xns-relayer pass.

2

start_registration

Get the browser sign-up URL for creating an XNS account — the agent never handles credentials.

3

check_email_verified

Poll email verification status (15s interval, 30-min timeout).

4

install_relayer

Fetch the canonical release channel bundle — relayer + Prometheus/Grafana monitoring stack (https://releases.xns.tech/relayer/release/docker-compose.yml and its .env, anonymous pull, no docker login) — add the ports to that .env, and start the containers. If the release files cannot be downloaded or used it stops, says why and what to do, and installs nothing. A failure names its cause (port in use, image pull refused, Docker stopped, out of disk, Docker socket permission) and the fix. Fresh installs only — see Fresh installs vs. existing deployments. The user authors nothing; compose_url is an optional override for custom installs.

5

check_relayer_health

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 awaiting_claim: true when the UI answers, the Docker CLI reaches the checked host, and the xns-relayer container holds no Muse token yet. When the token cannot be read (no such container, Docker unreachable), S3 down stays unhealthy. Targets the Docker host automatically.

6

start_claim

Initiate a claim session — returns a URL for browser confirmation.

7

check_claim_status

Poll claim state (STATE_1 / STATE_2 / STATE_3).

8

get_host_tags

Retrieve available host tags for VPD configuration, plus the currently applied data/parity selection (read-back with an is_default flag).

9

configure_vpd

Set data/parity host selection via CEL expressions. dry_run: true previews the matched host counts without applying (requires a Relayer build with the HostIO evaluate endpoint; older builds report preview_supported: false).

10

verify_storage

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 cleanup_warning is reported if any resource could not be removed. relayer_ui_url must point at a loopback or private-network host.

11

setup_cli_credentials

Provision S3 IAM credentials and write ~/.xns/credentials so the XNS CLI works without further configuration. Takes an optional ui_port (default 8888) for a Relayer installed on another UI port; the host is always this machine.

12

describe_settings

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

update_settings

Apply a map of setting changes (whitelist-enforced). Returns require_restart. Requires relayer-ui >= 3.43.3 — older servers can clobber the database password on config round-trips.

14

restart_service

Restart hostio, gateway, s3gateway, database, or all services. Disruptive; pairs with check_relayer_health to verify recovery.

15

manage_backups

List / start / restore / delete configuration backups. Restore is destructive and supports selective components (db, conf, hostio, samba).

Onboarding Flow

  1. Agent checks prerequisites (Tool 1).

  2. Agent gets the browser sign-up URL; user creates an account in the browser (Tool 2).

  3. User clicks email verification link; agent polls (Tool 3).

  4. Agent installs and starts Relayer containers (Tool 4) — it writes the released compose + .env itself; the user is never asked for a compose URL.

  5. 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.

  6. Agent initiates claim; user opens claim URL in browser (Tools 6 + 7).

  7. Agent signs in via OIDC to configure host preferences (Tools 8 + 9).

  8. Agent verifies S3 storage is working (Tool 10).

  9. 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 directory

then 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)

Installing Node.js 24

install_relayer reports an existing xns-relayer container

A previous deployment (any channel) owns the container name

Fresh installs vs. existing deployments

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: install_relayer ui_port / s3_port (health checks accept the same). After a failed install_relayer, remove the leftover container with docker rm -f xns-relayer before retrying

Port 9443 already in use

Another service on the Docker host holds the S3 HTTPS port the release compose publishes

Stop that service (sudo ss -ltnp 'sport = :9443' names it); ui_port / s3_port do not move 9443. Then docker rm -f xns-relayer and retry

Docker socket permission denied

You were added to the docker group after this session started, or not at all

sudo usermod -aG docker $USER if needed, then log out and back in

Docker is not running

The Docker daemon is stopped

sudo systemctl start docker

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

releases.xns.tech unreachable, or a stale registry login

Check the connection; docker logout releases.xns.tech

Health checks fail but containers run on a remote Docker host

Ports 8888/9000 not reachable from the management node

Open them, or pass host / endpoint overrides

install_relayer fails with "The Docker daemon is on , not this machine"

DOCKER_HOST or an SSH/TCP Docker context points at another machine, and the install files would be written here instead

Run the MCP on that host and re-run, or unset DOCKER_HOST / use the default Docker context (Remote Docker hosts)

install_relayer fails with "Failed to create directory …"

The install path needs root on the machine running the MCP (common on macOS/Windows workstations for paths under /opt), or a regular file sits at or along it

Pass a writable install_path; the exact OS error is in the MCP server's stderr log

install_relayer stops with '… nothing was installed'

The release files could not be downloaded, were incomplete, do not support the requested bind_address, or could not be held in the temporary folder

The message names it; then run install_relayer again

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 test

Requires 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_storage runs the Relayer host you pass through an allowlist (localhost, loopback, RFC 1918, *.local) before sending a token, and setup_cli_credentials takes no URL and sends its token only to the server's own Relayer UI. check_relayer_health sends plain HTTP health probes, with no credentials, to the Docker host or the host you pass, which is not limited to private addresses, install_relayer downloads a compose_url override only from https on releases.xns.tech, a file:// URL, or a loopback, private-network or .local host, and the S3 test in verify_storage goes to the endpoint you pass (requests are signed, so the secret key is never sent). Otherwise the public hosts contacted are the three XNS services auth.xns.tech, console.xns.tech and releases.xns.tech, and Docker Hub for the prom/node-exporter image 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 bundle

That 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:validate

manifest.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

Apache-2.0 © SCP Corp. See LICENSE and NOTICE.

Available Tools

15 tools
check_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

    A4.4/5.0

    Scored across 15 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      5
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Agent-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.
      15
      Apache 2.0
    • A
      license
      B
      quality
      C
      maintenance
      Enables 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.
      27
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides 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 npm
      MIT