Remote MCP server: local stdio vs remote HTTP
What is a remote MCP server? Compare local stdio vs remote HTTP, how clients use a remote MCP server URL, when to pick each, and ChatWith's hosted MCP.
A remote MCP server is a Model Context Protocol (MCP) server your client reaches over the network—usually with a remote MCP server URL and HTTP—instead of launching a local process on your machine. The same JSON-RPC messages still flow; only the transport changes. The MCP transport overview describes two standard bindings: stdio (newline-delimited JSON over a client-spawned subprocess) and Streamable HTTP (each call is an HTTP POST to one endpoint). This guide explains what is a remote MCP server, local vs remote MCP server trade-offs, how a client attaches to a hosted endpoint, and when each pattern fits—without turning into a product setup walkthrough.
What is a remote MCP server?
In MCP, the server exposes tools and resources; the host (your IDE, agent runtime, or automation) creates one client per server, and that client calls tools/list, tools/call, and related JSON-RPC methods. On stdio, the client starts the server as a subprocess and reads/writes JSON-RPC lines on stdin/stdout—common for an MCP server package you install beside the client. On Streamable HTTP, the server already runs somewhere reachable; the client sends POST requests to a stable URL. That hosted pattern is what people mean when they search mcp remote server or remote mcp server url: one HTTPS origin, shared by every authorized caller, instead of a binary on each laptop.
The protocol semantics are the same on every transport (MCP transports). What changes is lifecycle: local stdio dies when the subprocess exits; a remote server stays up, enforces auth at the edge, and can rate-limit per credential.
Local (stdio) vs remote (HTTP) MCP servers
| Dimension | Local MCP server (stdio) | Remote MCP server (HTTP) |
|---|---|---|
| Where it runs | Subprocess on the client machine | Hosted service you call over HTTPS |
| Connection | Client launches command; pipes to stdin/stdout | Client POSTs JSON-RPC to one URL |
| Credentials | Often OS user + local env files | Bearer tokens, headers, or session rules on the host |
| Updates | Redeploy or reinstall the package on each machine | Operator updates the hosted build once |
| Best fit | Personal dev tools, local files, air-gapped work | Shared workspace data, team keys, always-on agents |
Local vs remote MCP server is not a quality ranking—it is a deployment choice. Stdio keeps secrets on your disk and avoids exposing an HTTP surface. HTTP lets Cursor, Claude Desktop, CI jobs, and coworkers hit the same tools without installing your server binary everywhere.
When to prefer local stdio
Choose stdio when the server must read files only on your laptop, wrap a CLI you already trust, or run in environments that block outbound calls to third-party URLs. MCP’s architecture overview notes that local servers using stdio typically serve a single client, while remote Streamable HTTP servers typically serve many.
When to prefer a remote HTTP MCP server
Choose a hosted remote MCP server when:
- Multiple people or automations need the same workspace tools without local installs.
- You want centralized API keys, audit logs, and rate limits at the service boundary.
- Your agent runs in the cloud but the data lives in a SaaS product you already pay for.
Streamable HTTP is the binding MCP documents for that pattern: one endpoint, JSON-RPC in the body, responses as JSON or a request-scoped stream (transport overview).
How a client connects to a hosted MCP server
Regardless of vendor, the mental model is the same:
- URL — copy the HTTPS MCP endpoint (your remote mcp server url).
- Auth — attach whatever the operator documents (often
Authorization: Bearer …). - Handshake — on protocol revisions that use a session handshake (for example 2025-06-18), send
initializeand thennotifications/initializedbefore other requests. - Transport rules — respect allowed methods (
GETmay be disabled), body size limits, and protocol version headers if required.
Clients differ only in config UI: some ask for “command + args” (stdio) versus “URL + headers” (HTTP). If your client supports Streamable HTTP, you point it at the remote URL instead of a local command.
Example: ChatWith’s hosted MCP server
ChatWith operates a remote MCP server at:
https://www.chatwith.website/mcp
That URL is the same endpoint shown in Settings → MCP and in the developer docs. It uses Streamable HTTP, not a stdio subprocess. Programmatic access uses a workspace API key created in Settings → API and sent as Authorization: Bearer cw_live_… (examples use placeholders, not real secrets); the key carries the workspace role of the person who created it. Signed-in ChatWith sessions are also accepted.
Plan gating matches the server code: workspaces without Growth, Pro, or Agency receive HTTP 402 before tools run. tools/list is filtered by both plan and key role, so viewers see fewer tools than admins. The server advertises tools and resources for managing assistants, knowledge sources, conversations, and related workspace operations—the exact shapes and errors are in the API reference, and worked examples are in MCP use cases.
To wire Claude, Cursor, or another MCP host to this mcp remote server, use that URL and Bearer header in whatever fields the client already exposes for remote HTTP MCP. Step-by-step client setup, curl samples, and troubleshooting live on the MCP server page—this article stays conceptual so those instructions stay in one place.
Choosing transport for your own stack
If you host a remote MCP server yourself, you own uptime, TLS, auth, and JSON-RPC compliance. If you consume someone else’s HTTP endpoint, you own key rotation and least-privilege roles. Stdio avoids publishing an attack surface but does not scale to a whole team hitting the same CRM.
For ChatWith specifically, the value of the hosted endpoint is tying MCP tools to the same assistants, sources, and conversation history you already manage in the dashboard—so agents can ask_assistant, adjust sources, or inspect conversations without re-implementing the REST surface by hand. When you need method-by-method detail, continue with ChatWith API overview and authentication.
FAQ
Can an MCP server be remote?
Yes. MCP supports multiple transports; Streamable HTTP is the standard binding for a server that clients reach at a URL (MCP transports). The client still speaks JSON-RPC—it does not need a local subprocess if the host implements remote HTTP MCP.
How to host a remote MCP server?
You deploy a process (or serverless function) that implements MCP’s HTTP binding, terminate TLS on a public origin, validate credentials on every POST, and return JSON-RPC responses. Operators document the remote MCP server url, allowed headers, and rate limits. If you want a hosted server for ChatWith workspace data instead of building your own, use the endpoint above with a Growth-or-higher workspace key; full connection steps are on the MCP server page.
Is an MCP server a real server?
In practice, “server” means the component that exposes MCP tools and resources, not necessarily a dedicated physical machine. It can be a local stdio subprocess, a container, or a remote HTTP service. ChatWith’s implementation is a deployed Edge Function behind https://www.chatwith.website/mcp, reached through the site’s /mcp route—still one logical MCP server from the client’s perspective.