Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

fastmcp-remote

fastmcp-remote is FastMCP's standalone Python stdio bridge for remote MCP servers. It lets MCP clients that launch local stdio processes connect to MCP servers hosted over Streamable HTTP or SSE.

{
  "mcpServers": {
    "linear": {
      "command": "uvx",
      "args": ["fastmcp-remote", "https://mcp.linear.app/mcp"]
    }
  }
}

The CLI is powered by FastMCP. Its command shape is inspired by the original mcp-remote npm project, which established the stdio-to-remote bridge pattern used across the MCP ecosystem.

fastmcp-remote is intentionally smaller than the general FastMCP CLI. It does not load Python files, discover local MCP configs, prepare project environments, or run development reload loops. It builds one FastMCP client for the URL you provide, exposes that client as a local stdio proxy, and leaves the rest alone.

Usage

Run a remote MCP server through a local stdio bridge:

uvx fastmcp-remote https://example.com/mcp

Use the full MCP endpoint URL for the remote server. Many FastMCP HTTP servers expose MCP at /mcp, so a local development server may need http://localhost:8000/mcp rather than http://localhost:8000.

fastmcp-remote starts a local stdio bridge, then connects to the upstream server when the MCP host initializes that bridge. If the upstream server is unavailable, the URL does not point to an MCP endpoint, or authentication cannot complete, initialization fails and the host should report the remote server as failed.

For authenticated MCP servers, OAuth is enabled automatically. To pass a bearer token or other custom header instead, provide a header. The header name ends at the first colon, so values can contain additional colons. Quote the header when the value contains spaces, just like any other shell argument:

uvx fastmcp-remote https://example.com/mcp \
  --header "Authorization: Bearer <token>"

Repeat --header to send multiple headers. Header values use Name: Value format:

uvx fastmcp-remote https://example.com/mcp \
  --header "Authorization: Bearer <token>" \
  --header "X-Workspace: production" \
  --header "X-Client-Name: My MCP Host" \
  --header "X-Callback-Url: https://example.com/oauth/callback"

Some MCP hosts on Windows have trouble preserving spaces inside command arguments. Put the spaced value in an environment variable and reference it from the header value:

{
  "mcpServers": {
    "remote-api": {
      "command": "uvx",
      "args": [
        "fastmcp-remote",
        "https://example.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer <token>"
      }
    }
  }
}

Use --auth none for unauthenticated development servers:

uvx fastmcp-remote http://localhost:8000/mcp --auth none

For servers behind a self-signed certificate, point --verify at a CA bundle that trusts the certificate:

uvx fastmcp-remote https://internal.example.com/mcp --verify /path/to/ca-bundle.pem

To disable certificate verification entirely (insecure, only for trusted private networks), pass --verify false:

uvx fastmcp-remote https://internal.example.com/mcp --verify false

A CA bundle can also be supplied through the standard SSL_CERT_FILE environment variable, which OpenSSL reads automatically:

SSL_CERT_FILE=/path/to/ca-bundle.pem uvx fastmcp-remote https://internal.example.com/mcp

Options

  • --transport: Choose http or sse. Defaults to http.
  • --header: Add a header to upstream requests, for example --header "Authorization: Bearer <token>". Values may contain colons. Quote headers whose values contain spaces. Use ${VAR} to expand environment variables inside values. Repeat for multiple headers.
  • --resource: Isolate OAuth token storage for a named remote resource.
  • --host: Set the OAuth callback hostname. Defaults to localhost.
  • --auth-timeout: Set how long to wait for the OAuth callback. Defaults to 300 seconds.
  • --ignore-tool: Hide tools whose names match a glob pattern.
  • --auth: Choose oauth or none. The default uses OAuth unless an Authorization header is provided.
  • --verify: Control TLS certificate verification. Pass a path to a CA bundle to trust a self-signed certificate, or false to disable verification (insecure). Defaults to verification enabled.

OAuth tokens are stored under ~/.fastmcp/remote by default. Set FASTMCP_REMOTE_CONFIG_DIR to use another directory.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastmcp_remote-4.0.0a2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastmcp_remote-4.0.0a2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file fastmcp_remote-4.0.0a2.tar.gz.

File metadata

  • Download URL: fastmcp_remote-4.0.0a2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fastmcp_remote-4.0.0a2.tar.gz
Algorithm Hash digest
SHA256 9c4b9ad662d3f224c9e1b5e3533797b9131db7377312a910b88965884dd5430a
MD5 1a763e91b0fa9d85007a808eda999710
BLAKE2b-256 c4676285bd1acede0d35b7d490cdeeae80ab88d5d48ec9e3f4461f7305d04e1f

See more details on using hashes here.

File details

Details for the file fastmcp_remote-4.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: fastmcp_remote-4.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fastmcp_remote-4.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3f6028fc906cbb0635a9e61b0f58d509d664b8222a4f5a6d418408a28a94faa
MD5 672d5d2243a81fa99f0508d2af025f3f
BLAKE2b-256 8a8eb817cfaf0c604fa1f2a8414e35ba9c551c153c6801ccc54798eb83691dd2

See more details on using hashes here.

Release history Release notifications | RSS feed

4.0.3

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

This release

4.0.0a2 This release

2 files

3.4.7

2 files

3.4.6

2 files

3.4.5

2 files

3.4.4

2 files

3.4.3

2 files

3.4.2

2 files

3.4.1

2 files

3.4.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page