mcp gateway · public betav0.4.1

Every MCP server.
One URL.

Configure a single endpoint, connect upstreams through OAuth, and reach every tool behind it. Relay scopes the tool list per client and keeps credentials synced in the cloud, so nothing secret ever lands in your config.

  • One endpoint per account
  • Per-client tool scoping
  • Credentials synced in the cloud
relay · setuptty0 · 41s
relay clizsh

relay --version 0.4.1

relay connect linear

upstreammcp.linear.appstreamable http · 31 tools

oauthgrantedtoken stored in relay cloud

toolslinear.*31 namespaced tools

relay client add cursor

clientcli_4c91active · scoped endpoint

endpointrelay.sh/mcp/ws_8f2a/cursor

scopesgithub.* · linear.read51 tools

relay status

ready3 upstreams · 102 tools3 clients · 0 tokens in config

Prompt awaiting input

transcript00:00:41no credentials leave the cloud
upstream kinds
03
transport
http + sse
token in config
00

01 / upstreams

Three ways in, one namespace out.

Whatever shape the server takes, it becomes a prefixed set of tools behind the same endpoint. Nothing to rewrite on the client side.

01

Remote

Point Relay at a hosted MCP endpoint.

Streamable HTTP or SSE, with OAuth or bearer tokens.

02

Serverless

Run a provider you own on our edge.

Bring a container or a function; we handle cold starts.

03

Integration

First-party connectors, pre-authorized.

Linear, GitHub, Vercel, Slack and a growing catalogue.

02 / how it works

Three steps, then it is out of your way.

Relay owns the handshake and the credential lifecycle. Your client only ever learns one URL and one scoped token.

  1. 01

    Add a provider

    Paste an MCP URL and claim a namespace. Every tool it exposes is prefixed with that slug, so two servers can never collide.

  2. 02

    Authorize once

    Relay runs the OAuth handshake and stores the credential in the cloud. Tokens refresh server-side, never in your client config.

  3. 03

    Point your client at the URL

    One endpoint serves every client. Scope tools per client, revoke per client, and watch requests in the activity log.

03 / endpoint

Point the client at one URL.

The endpoint is stable for your account, and each client gets its own path. Scopes travel with the client, so a revoked token only affects that one.

primary endpointhttps://relay.sh/mcpstreamable httpoauth 2.1tools/list
  • Discovery lives at /.well-known/oauth-protected-resource
  • Tokens are minted per client and capped by the scope list.
client configmcp.json
{
  "mcpServers": {
    "relay": {
      "type": "streamable-http",
      "url": "https://relay.sh/mcp/ws_8f2a/cursor",
      "headers": {
        "Authorization": "Bearer $RELAY_TOKEN"
      }
    }
  }
}

Account path, no upstream URLs and no upstream tokens.

oauth flowhandshake
# 1. discover the resource metadata
GET https://relay.sh/mcp/.well-known/oauth-protected-resource

# 2. relay names itself as the authorization server
authorization_servers: ["https://relay.sh/mcp"]

# 3. your client opens the consent screen
GET /oauth/authorize?client_id=cli_4c91&scope=github.*

# 4. exchange the code for a scoped token
POST /oauth/token   ->   access_token (tools capped by scope)

Relay brokers every upstream token; the client only holds its own.

04 / pricing

Pay for the account, not the tool calls.

Every plan includes the full gateway: upstream aggregation, OAuth brokering and per-client scoping. Limits are on upstreams and clients, never on tool invocations.

Hobby

$0/ month

For one operator wiring up a personal toolchain.

  • 1 account
  • 3 upstream servers
  • 2 OAuth clients
  • 7-day activity log
Start free

Team

popular
$24/ seat / month

Shared upstreams, scoped endpoints and an audit trail.

  • Unlimited upstreams
  • Unlimited clients
  • Scope matrix per client
  • 90-day activity log
  • Member roles
Start 14-day trial

Enterprise

Customannual

Private regions, SSO and a support agreement.

  • Dedicated region
  • SAML SSO
  • BYO credential store
  • Uptime agreement
Talk to us

ready when you are

One account, every upstream, one URL.

Create an account