Remote MCP vs Local MCP header with a lantern on a navy background

Remote MCP vs Local MCP: Which Should You Use?

When I list a server on MCP Lantern, one of the first questions is simple: does it run on your computer, or somewhere on the internet? That one choice changes how you install it, how you sign in, what it can reach, and who has to keep it running.

If you're new to MCP, start with What is an MCP server?. This post assumes you know the basics.

The short version

  • Local MCP server: your AI app (the "client") starts the server as a program on your own machine and talks to it through standard input and output. The spec calls this the stdio transport. [1]
  • Remote MCP server: the server runs as a web service. Your client sends each message as an HTTP request to one MCP endpoint. The spec calls this Streamable HTTP. [1][2]

Both speak the same protocol and expose tools the same way. [3] The difference is where the code runs and how you reach it.

Setup: install a program vs paste a URL

Local. You install something (often an npm or Python package, or a Docker image) and tell your client the command to run. My own simple MCP server tutorial is a local server: the client starts it when it needs it. The official guide to connecting local servers walks through the same idea for Claude Desktop. [4]

Remote. You give your client a URL. In Claude Code, for example, that's one command: claude mcp add --transport http <name> <url>. [5] The official guide to connecting remote servers covers the same flow in other apps. [6]

A real example: GitHub ships both. Its README says the hosted remote server is "the easiest method for getting up and running", and points you to a local version if your app doesn't support remote servers. [7]

Sign-in and credentials

Local. The authorization part of the MCP spec says servers using stdio should not use its OAuth flow, and should get credentials from the environment instead. [8] In practice that usually means an API key or token in a config file or environment variable on your machine.

Remote. Authorization is optional in the spec, but when an HTTP server supports it, it follows the spec's OAuth-based flow. [8] For you, that often looks like a "Sign in with…" browser window instead of pasting a token. Some remote servers still use API keys or personal access tokens. GitHub's remote server, for example, supports both OAuth and a token, depending on your app. [7]

Neither is "the safe one". A token in a local file can leak. A remote sign-in can grant more than you meant to. Read what you're approving either way.

What each one can reach

This is the part people skip, and it matters most.

Local servers run as you. The official MCP guide on local server security puts it bluntly: a local server is code you downloaded, running under your user account. It inherits your environment variables and can read whatever your account can read, from SSH keys to your home folder. [9] That's why local is the right fit for jobs that need your files, your git checkout, or a tool on your machine. It's also why it isn't automatically safer.

The same guide makes a useful point: if a server only wraps an internet API and needs nothing from your machine, prefer its remote version where one exists, because it runs no code on your computer. [9]

Remote servers reach what they're deployed next to, plus whatever your sign-in allows. They can't see your laptop's files unless a tool sends them. But they are a network service, with network risks. The 2025-06-18 spec, for example, says HTTP servers must check the Origin header to block DNS-rebinding attacks, and that servers running locally over HTTP should bind only to 127.0.0.1, not every network interface. [10]

Either way, a server can return text that tries to steer your AI (prompt injection). The MCP security best practices page covers those risks for both kinds. [11]

Working with a team

Local: every person installs and configures their own copy. Ten people can easily end up on ten slightly different versions, each holding its own credentials.

Remote: one deployment, one URL. Access can be managed in one place, and a fix reaches everyone at once.

Claude Code has a middle ground for local setups: a project-scoped .mcp.json file you can commit so teammates get the same server list. Claude Code also asks you to approve project servers before it uses them. [5]

Who keeps it running

Local: there's nothing to host. The server lives and dies with your client. Your job is updating it and watching what you installed.

Remote: someone has to run it like any web service: hosting, HTTPS, uptime, logs, sign-in, and updates. If that someone is a vendor, it's their job. If you're the builder, it's yours. Being remote doesn't make a server production-ready. It only means someone has to do that work.

One more builder note: the newest spec revision (2026-07-28) changed how Streamable HTTP handles sessions, and earlier revisions used a connection-scoped session started with an initialize handshake. [1][2] If you run a remote server, check which revision your SDK targets.

Decision table

If you need…PickWhy
Access to local files, a git checkout, or apps on your machineLocalThe server has to be where the files are [9]
A wrapper around an online service you already useRemote, if offeredNo code runs on your machine [9]
The same tools for a whole teamRemote (or a shared project config)One place to update and manage access [5]
A web or mobile AI app that can't start programsRemotestdio needs the client to launch a local process [1]
To try a tool offline or while building itLocalNo hosting needed
To offer your own product to customersRemoteThey connect with a URL, and you run it

Quick checklist before you choose

  1. Does the job need anything on my machine? If not, look for a remote version first.
  2. If local: who published the package, and does the install command match their docs?
  3. If local: what environment variables and folders can it see? Remove what it doesn't need.
  4. If remote: is it HTTPS, and does the sign-in screen ask only for what the tools need?
  5. If remote: who runs it, and what happens to my data on their side?
  6. Either way: read the tool list and turn off tools you won't use.
  7. Either way: know how to remove it and revoke its token or sign-in.

Find or list a server

On MCP Lantern you can browse servers and see how each one connects. If you've built one, local or remote, you can submit it here.

References

  1. Model Context Protocol, "Transports" (specification 2026-07-28): https://modelcontextprotocol.io/specification/2026-07-28/basic/transports
  2. Model Context Protocol, "Streamable HTTP" (specification 2026-07-28): https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http
  3. Model Context Protocol, "Architecture overview": https://modelcontextprotocol.io/docs/learn/architecture
  4. Model Context Protocol, "Connect to local MCP servers": https://modelcontextprotocol.io/docs/develop/connect-local-servers
  5. Claude Code Docs, "Connect Claude Code to tools via MCP": https://code.claude.com/docs/en/mcp
  6. Model Context Protocol, "Connect to remote MCP servers": https://modelcontextprotocol.io/docs/develop/connect-remote-servers
  7. GitHub, github/github-mcp-server (README): https://github.com/github/github-mcp-server
  8. Model Context Protocol, "Authorization" (specification 2026-07-28): https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
  9. Model Context Protocol, "Local Server Security" (draft docs): https://modelcontextprotocol.io/docs/draft/tutorials/security/local-server-security
  10. Model Context Protocol, "Transports" (specification 2025-06-18): https://modelcontextprotocol.io/specification/2025-06-18/basic/transports
  11. Model Context Protocol, "Security Best Practices": https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices

Published · More posts