Skip to content

mcp-remote: install, tools and limits

Better Design

Direct answer

mcp-remote lets an MCP client that supports only local stdio servers connect to a remote MCP server, with OAuth support. It runs over stdio toward the client and Streamable HTTP or SSE toward the remote server, needs the remote server's own sign-in through browser OAuth, and bridges a local client to a remote server and passes through that server's tools.

A hand-drawn terminal that connects a coding agent to mcp-remote, with the server's name and tool count written beside it.

What mcp-remote does

mcp-remote lets an MCP client that supports only local stdio servers connect to a remote MCP server, with OAuth support. It is a community npm package, not part of the official MCP project, and it runs as a local stdio process that proxies requests to the remote URL.

punkpeye, from the original by Glen Maddern maintains it. The latest release on npm is mcp-remote 0.16.6, published November 11, 2026. It is licensed under MIT.

How a coding agent uses mcp-remote

The agent asks, mcp-remote acts, and the result comes back into the session.

A hand-drawn three-step flow from the coding agent to mcp-remote and back: Connect to this hosted MCP server, Runs a local stdio proxy and signs in with OAuth, The remote server's tools inside the local client.
  1. The agent asks: Connect to this hosted MCP server
  2. mcp-remote acts: Runs a local stdio proxy and signs in with OAuth
  3. The result comes back: The remote server's tools inside the local client

Install mcp-remote in Cursor

~/.cursor/mcp.json
{
  "mcpServers": {
    "remote-example": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://remote.mcp.server/sse"
      ]
    }
  }
}

Install mcp-remote in Claude Desktop

Claude Desktop
{
  "mcpServers": {
    "remote-example": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://remote.mcp.server/sse"
      ]
    }
  }
}

Install mcp-remote in Windsurf

Windsurf
{
  "mcpServers": {
    "remote-example": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://remote.mcp.server/sse"
      ]
    }
  }
}

Install mcp-remote in a terminal (debug client)

a terminal (debug client)
npx -p mcp-remote@latest mcp-remote-client https://remote.mcp.server/sse

The usage forms and flags mcp-remote documents

mcp-remote's own documentation lists these, read on November 12, 2026.

  • npx mcp-remote <url>: the proxy a client config starts
  • npx -p mcp-remote@latest mcp-remote-client <url>: the debug client
  • Headers: --header 'Name: value' (repeatable), --header-file
  • Transport: --transport http-first (default), sse-first, http-only, sse-only
  • OAuth: --resource, --client-credentials, --device-code, --static-oauth-client-info, --client-metadata-url, --auth-timeout
  • Protocol: --protocol auto
  • Filtering: --ignore-tool <pattern>
  • Plain HTTP: --allow-http

Settings worth knowing in mcp-remote

--header 'Name: value' or --header-file
What it changes

Sends custom headers; the file form keeps secrets out of the process list.

Server

mcp-remote

--transport http-first | sse-first | http-only | sse-only
What it changes

Picks how it reaches the remote server; http-first is the default.

Server

mcp-remote

--resource <url>
What it changes

Isolates OAuth sessions per tenant and sends the RFC 8707 resource indicator.

Server

mcp-remote

--protocol auto
What it changes

Bridges 2025-era clients to 2026-07-28 servers (default legacy).

Server

mcp-remote

--ignore-tool <pattern>
What it changes

Hides and blocks matching tools, with wildcards.

Server

mcp-remote

Sign-in, limits and caveats for mcp-remote

Sign-in: Browser OAuth with a local callback (default host localhost, bind 127.0.0.1, path /oauth/callback, and a port derived from the server URL in 3335 to 49150). It also supports static client info and metadata, client ID metadata documents, --client-credentials, --device-code and custom headers. It stores credentials in ~/.mcp-auth, or in MCP_REMOTE_CONFIG_DIR.

Limits and price: mcp-remote is open source under MIT and free to run. Its documentation states no usage limit. The OAuth callback times out after 30 seconds by default (--auth-timeout). Network timeouts are 10 seconds to connect and 300 seconds for headers and body, so an idle SSE stream closes after five minutes unless you set 0.

  • HTTP URLs need --allow-http, and the README asks for Node 18 or higher.
  • Cursor, Codex CLI and Claude Desktop on Windows do not escape spaces in args, so write 'Authorization:${AUTH_HEADER}' with no space and put 'Bearer <token>' in env.
  • For persistent auth errors, delete ~/.mcp-auth and restart the client.
  • An explicit callback port, --static-oauth-client-info or --client-metadata-url pins the port, and mcp-remote then fails instead of moving to a free port.
  • github.com/geelen/mcp-remote now redirects to punkpeye/mcp-remote, and the README documents no setup for Claude Code, VS Code or Codex.

Use mcp-remote for interface work

It lets a stdio-only client reach hosted design-tool MCP servers, and CopilotKit's own docs use it for their stdio config.

Steal this workflow

Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.

Read the guide "mcp-remote: install, tools and limits" at https://better-design.com/blog/mcp-remote and help me apply it to my project.

mcp-remote lets an MCP client that supports only local stdio servers connect to a remote MCP server, with OAuth support. It runs over stdio toward the client and Streamable HTTP or SSE toward the remote server, needs the remote server's own sign-in through browser OAuth, and bridges a local client to a remote server and passes through that server's tools.

Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.

Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.

Questions

What does mcp-remote do?

mcp-remote lets an MCP client that supports only local stdio servers connect to a remote MCP server, with OAuth support. It is a community npm package, not part of the official MCP project, and it runs as a local stdio process that proxies requests to the remote URL.

Does mcp-remote need an API key or sign-in?

Browser OAuth with a local callback (default host localhost, bind 127.0.0.1, path /oauth/callback, and a port derived from the server URL in 3335 to 49150). It also supports static client info and metadata, client ID metadata documents, --client-credentials, --device-code and custom headers. It stores credentials in ~/.mcp-auth, or in MCP_REMOTE_CONFIG_DIR.

Is mcp-remote free?

mcp-remote is open source under MIT and free to run. Its documentation states no usage limit. The OAuth callback times out after 30 seconds by default (--auth-timeout). Network timeouts are 10 seconds to connect and 300 seconds for headers and body, so an idle SSE stream closes after five minutes unless you set 0.

Which coding agents can use mcp-remote?

Its documentation shows a setup for Cursor. Any client that speaks MCP over stdio toward the client and Streamable HTTP or SSE toward the remote server can connect.

Where these mcp-remote facts come from

Each fact on this page comes from mcp-remote's own repository, documentation or package registry, read on November 12, 2026.

Add design rules next to it

mcp-remote gives the agent its capabilities. It does not tell the agent what a good screen looks like. Better Design adds that part: a design system, interface principles and review rules that the agent calls while it builds.