Relay logo

Relay

Run Relay image, video, audio, and LLM models, manage async tasks and workflows, upload media, estimate costs, and search docs.

Install Relay

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "relay-4": {
      "command": "npx",
      "args": [
        "-y",
        "@relaygpu/mcp"
      ],
      "env": {
        "RELAY_API_KEY": "YOUR_VALUE_HERE",
        "RELAY_BASE_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Relay MCP server connects agents to Relay's model catalog, inference API, file hosting, workflow runs, account data, pricing, and bundled documentation. Agents can discover a model, inspect its input schema, submit synchronous or asynchronous runs, and poll results without model-specific MCP updates. Use it when an agent needs access to Relay's image, video, audio, embedding, speech, or text models, including multi-step workflow templates. It is available as a hosted Streamable HTTP endpoint or as a local stdio process.

Use cases

  • Find and run a Relay image or video model
  • Generate speech or transcribe audio through Relay
  • Upload media for a model URL input
  • Estimate inference and media-storage costs
  • Run and monitor a multi-step Relay workflow

Key features

  • Generic model discovery and schema inspection
  • Synchronous and asynchronous model execution
  • Media upload with configurable retention
  • Workflow submission, polling, and cancellation
  • Pricing, cost estimation, credits, and usage tools
  • Offline Relay documentation search

Tools14

What Relay lets your agent do. Expand a tool for its parameters.

Verified live~3.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 24d

What it can do

From the 14 tools this server returned when we ran it; 14 declare their own safety hints.

Can delete or modify data · 1Writes files · 1Handles credentials · 7Makes network requests · 13Read-only tools · 12
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age13 days
Maintainers1

Observed 2026-10-21 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @relaygpu/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.8kPackage downloads in the last 30 days.
Last commit14d agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Relay works

What Relay MCP server does

Relay exposes a generic MCP interface for running models by name rather than providing a separate tool for each model. It covers text, image, video, audio, embedding, and speech workloads, subject to the models available to the account. Agents can also inspect public or account-specific pricing, estimate request costs, upload media for URL-based inputs, and search Relay's bundled documentation.

The server includes workflow support for multi-step pipelines. An agent can list available templates, submit a workflow with structured inputs, inspect its progress, retrieve the final output, or cancel an unfinished run between steps.

How it works

Model discovery starts with search_models, which filters by text and tags such as text-to-image, text-to-video, text-to-speech, and speech-to-text. get_model returns the selected route, request schema, example input, availability, and pricing. The agent can then pass an input matching that schema to run_model.

Chat models return inline. Image, video, and audio requests are submitted as tasks; the initial call waits up to 45 seconds and returns a result or task ID. check_task waits up to 30 seconds and should be called again for an unfinished task instead of resubmitting it. Task results and unretained result links are kept for one hour after completion.

Workflow submissions follow the same pattern, using run_workflow and check_workflow_run. A webhook URL can receive one signed completion or failure delivery. Each workflow step is billed as a normal model request.

Setup and configuration

The hosted endpoint is https://mcp.relaygpu.com/mcp and accepts an API key in X-API-Key or a bearer token. No local installation is needed for hosted connections. Claude Code, Codex, Cursor, and VS Code can connect directly to this endpoint; Claude Desktop uses the downloadable relay.mcpb bundle because its remote-server setup requires OAuth.

For local stdio use, run:

Terminal
npx -y @relaygpu/mcp

Local execution requires Node.js 20 or newer and the RELAY_API_KEY environment variable. RELAY_BASE_URL can override the default https://relaygpu.com. The hosted server reads credentials from each request, while the local process reads the key from its environment and does not store it.

Tools and capabilities

  • Discover models, inspect request schemas, and retrieve model availability and pricing.
  • Run Relay models with model-specific inputs and optional idempotency keys.
  • Poll asynchronous model tasks without resubmitting billed requests.
  • Upload local, base64-encoded, or public media for URL-based model inputs.
  • List, start, monitor, and cancel workflow runs.
  • Estimate costs using billing fields such as tokens, image count, duration, characters, or media tokens.
  • Read credits and usage with a dashboard JWT or custom-tier superkey.
  • Search offline Relay documentation for authentication, limits, errors, retries, webhooks, files, and pricing.

Uploads accept one of path, base64, or url. Local paths are limited to 100 MB, while base64 uploads are limited to 4 MB. Uploaded media can use temporary one-hour retention or a storage SKU returned by get_pricing.

Limitations and notes

estimate_cost is an estimate based on the public price list, not an invoice; final billing uses provider-reported usage and account-specific pricing. Storage retention can add separate media fees. A plain inference key cannot call get_credits or get_usage; those tools require a dashboard JWT or custom-tier superkey.

Result URLs expire after one hour unless output storage is requested. Workflow cancellation takes effect between steps, so a step already running completes and is billed. Calls that may be retried should include an idempotency key, and unfinished tasks or workflow runs should be polled rather than submitted again.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Relay

Relay is an MCP server that connects AI agents to Relay's image, video, audio, text, embedding, and speech models. Its main tools discover models, inspect input schemas, run models, poll asynchronous tasks, upload media, execute workflows, estimate costs, read account data, and search Relay's documentation.

Install the local server with Node.js 20 or newer by running `npx -y @relaygpu/mcp` and setting `RELAY_API_KEY`. Alternatively, connect an MCP client to `https://mcp.relaygpu.com/mcp` using an API-key or bearer-token header; the hosted option requires no local installation.

Yes, Relay works with Cursor through its hosted Streamable HTTP endpoint or a local stdio process. Add the hosted URL and an `X-API-Key` header in Cursor's MCP settings, or configure the local command with `RELAY_API_KEY` in the environment.

Call `run_model` with the model name and input matching `get_model`'s request schema, then poll the returned task ID with `check_task`. Do not resubmit the request while it is running, because a new submission can create another billed run.

Call `upload_file` with exactly one local path, base64 value, or public URL, then pass the returned URL to the model's matching `*_url` input. Local paths can be up to 100 MB and base64 uploads up to 4 MB; retention defaults to one hour.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRelay AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/relay-4?style=directory)](https://allmcps.com/mcp/relay-4)
HTML Embed
<a href="https://allmcps.com/mcp/relay-4"><img src="https://allmcps.com/api/badge/relay-4?style=directory" alt="Relay on AllMCPs" /></a>