What is a remote MCP server?
A remote MCP server is an MCP server that doesn't run on the user's own machine. Instead of an MCP host spawning it as a local child process over stdio, a remote server runs on shared infrastructure — a company's cloud, a SaaS vendor's backend, or a serverless platform — and an MCP client on the host connects to it over HTTPS using the Streamable HTTP transport.
Ahrefs is a concrete example already running in production: it operates a single hosted remote MCP server at a fixed Streamable HTTP endpoint that every customer on a paid plan connects their AI client to — Claude, ChatGPT, Cursor, or any other MCP-compatible tool — through OAuth, rather than shipping a binary each user installs and runs locally. That's the whole point of "remote": one deployment, many users, standard auth in front of it.
How does authentication work for a remote MCP server?
By the official MCP authorization specification, authorization is optional for MCP in general, but when a server uses an HTTP-based transport it SHOULD implement OAuth 2.1 — while a stdio server SHOULD NOT, and should pull credentials from the local environment instead. Three parties are involved:
- • The MCP server — an OAuth 2.1 resource server. It never signs anyone in and never issues a token; it only validates the bearer token on the
Authorizationheader of each request. - • The authorization server — your identity provider (Auth0, Keycloak, Entra, or one you run yourself), or one hosted alongside the MCP server. It authenticates the user and issues access tokens.
- • The MCP client — discovers which authorization server the resource trusts, gets a token from it via OAuth 2.0 Protected Resource Metadata (RFC 9728), and sends it back as the bearer token on every call.
One rule matters more than the rest for security: the spec requires servers to implement OAuth 2.0 Protected Resource Metadata and forbids passing a client's token straight through to an upstream API unvalidated — a server MUST NOT trust a token it didn't issue itself as already-validated for a downstream call, the classic "confused deputy" problem. If you're connecting a third-party remote server, see our guide to vetting and scoping MCP server permissions before you hand it a token.
Local (stdio) vs remote (Streamable HTTP): side by side
| Aspect | Local — stdio | Remote — Streamable HTTP |
|---|---|---|
| Transport | Standard input/output, child process | Streamable HTTP, single endpoint over the network |
| Where it runs | Same machine as the host | Any host, network, or serverless platform |
| Who connects | One user, one process | Many users and devices against one hosted server |
| Auth model | None required — reads credentials from the local environment | OAuth 2.1, server is a resource server (RFC 9728) |
| Token issuance | N/A | A separate authorization server issues tokens; the MCP server only validates them |
| Session state | Lives in the process | Stateless by spec — no permanent session storage required |
| Typical use | Local dev tools: filesystem, git, local DB | SaaS integrations: Ahrefs, GitHub, Slack, Notion, Linear |
Get the weekly AI engineering brief
MCP, agents, RAG, and the tools worth using — one practical email a week. Plus the free roadmap PDF.
By subscribing you agree to receive emails from AI Engineer Insights. Unsubscribe anytime. See our Privacy Policy.
What's new in MCP that pushes teams toward remote servers?
In November 2026, Anthropic reported the protocol had passed 700 million monthly SDK downloads and more than 10,000 connectors for Claude, two years after launch, and used the milestone to ship several features aimed squarely at servers that run independently of a single chat session — which is to say, remote, always-on deployments:
- • Tasks reached general availability — a server can run a longer job in the background and report back only when the result is ready, instead of blocking the conversation.
- • Elicitation also went GA — a running process can pause and ask the user for a specific missing detail rather than failing outright.
- • Enterprise Managed Auth lets admins approve a remote server once so every employee in the organization connects automatically, instead of each person running their own OAuth flow.
- • MCP Apps, documented in Anthropic's MCP extensions, lets a remote server embed a full interactive UI inside Claude, not just text responses.
- • Tool Search, which loads individual tool descriptions only when needed, can cut context usage by more than 85% in multi-server setups — relevant because every connected server (local or remote) injects its tool definitions into context, and remote deployments tend to accumulate more connected servers over time.
None of this requires going remote — a stdio server can implement Tasks or Elicitation too — but background jobs, org-wide auto-approval, and embedded UI are the features that matter most once a server is serving many users instead of one developer's laptop, which is exactly the remote use case.
When should you build a remote server instead of a local one?
- • Build local (stdio) when it's a single-user developer tool that only needs access to that person's own machine — a filesystem server, a local git helper, a personal database client. No OAuth, no hosting bill, no network latency.
- • Build remote (Streamable HTTP) the moment you're a SaaS vendor shipping a tool to many customers, need centralized control over who can connect (Enterprise Managed Auth), or need the server reachable from a mobile client, a web app, or a teammate's machine without installing anything locally — the Ahrefs model.
- • You still need per-user scoping either way. A remote server doesn't remove the need to scope what each connected account can do — if anything it matters more, because one compromised token can now reach every resource that user's account owns on your platform.
Where this fits with MCP vs API and MCP security
Transport choice is one layer of a bigger picture. If you haven't settled what MCP actually is versus a plain API, start with MCP vs API. If you're about to connect a third-party remote server — your own or a vendor's — read how to vet and scope MCP server permissions first; token theft and tool poisoning don't care whether the server you connect is local or remote.
Go deeper on remote MCP servers with AI
Ask your next question with this article as context. Opens in a new tab; you can edit the question before sending.
Frequently Asked Questions
What is a remote MCP server?
A remote MCP server is an MCP server that runs somewhere other than the user's own machine — on a company's infrastructure, a SaaS vendor's cloud, or a serverless platform — and that an MCP client reaches over the network using the Streamable HTTP transport instead of spawning it as a local stdio child process. Ahrefs, for example, runs a single remote MCP server at a fixed HTTPS endpoint that any customer's AI client can connect to, rather than shipping a binary each user runs locally.
Does a remote MCP server need OAuth?
Yes, by spec. The MCP authorization specification says HTTP-based transports SHOULD implement OAuth 2.1, while stdio transports SHOULD NOT — they should read credentials from the local environment instead. A remote MCP server acts as an OAuth 2.1 resource server: it validates bearer access tokens on every request but never issues them itself. A separate authorization server (your identity provider, or one hosted alongside the MCP server) handles sign-in and token issuance.
What is the difference between local (stdio) and remote (HTTP) MCP servers?
Local servers run as a child process on the same machine as the host and read secrets straight from the environment — there's one user, no network hop, and the spec explicitly says to skip the OAuth flow. Remote servers run over the network via Streamable HTTP, serve many users and devices from one deployment, and must authenticate every request with a bearer token validated against OAuth 2.0 Protected Resource Metadata (RFC 9728).
What new MCP features push teams toward remote servers?
Anthropic's November 2026 update — reported after the protocol passed 700 million monthly SDK downloads — made Tasks (background jobs a server runs and reports back on) and Elicitation (a server pausing to ask the user for missing input) generally available, both aimed at servers operating more independently of a single chat session. Anthropic also shipped Enterprise Managed Auth, letting admins approve a remote server once so every employee connects automatically, and MCP Apps, which lets a remote server embed a full UI inside Claude.
Is a remote MCP server more secure or less secure than a local one?
Neither is inherently safer — the risk just moves. A local server trusts whatever is in your environment variables and can read your filesystem directly. A remote server adds a network attack surface and a token-management problem: the MCP spec explicitly forbids a server from passing through a token it didn't issue, because doing so invites the confused-deputy attack OWASP's MCP Top 10 catalogs. Either way, treat every third-party MCP server as untrusted and scope its credentials tightly — see our guide to vetting MCP server permissions.
Can one remote MCP server serve multiple users?
That's the main reason to go remote. A stdio server is one process per user on their own machine. A single remote MCP server deployment, protected by per-user OAuth tokens, can serve every customer of a SaaS product — which is exactly the model Ahrefs, GitHub, and other vendors use instead of asking each user to install and run a local binary.
References
- • MCP specification — Authorization
- • MCP specification — stdio transport
- • MCP specification — Streamable HTTP transport
- • RFC 9728 — OAuth 2.0 Protected Resource Metadata
- • MCP Python SDK — server authorization docs
- • The Decoder — Anthropic tops 700M monthly MCP SDK downloads (Nov 2026)
- • Anthropic — Tool Search tool documentation
- • Ahrefs — remote MCP server documentation