Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. CCDV-F/
  4. CCDV-F Learning Path/
  5. Study FAQs/
  6. When should an MCP server use stdio, Streamable HTTP, or a custom transport?

Study FAQ

When should an MCP server use stdio, Streamable HTTP, or a custom transport?

Exam · CCDV-FKnowledge domain · Tools and MCPsUpdated Nov 25, 2026
Also asked as 2
  • What are the standard transports in MCP 2026-07-28?
  • Is SSE or a socket a standard alternative to stdio for a new MCP server?

Answer

Use stdio for a local server the host launches as a subprocess. Use Streamable HTTP for a separately reachable service. These are the two standard transports for MCP 2026-07-28. Choose a custom binding such as a Unix socket only when a concrete deployment requirement outweighs the loss of standard client interoperability.

With stdio, exchange newline-delimited UTF-8 JSON-RPC over stdin and stdout and send diagnostics to stderr. Launch only an approved executable and arguments with a restricted environment and appropriate access. The HTTP OAuth flow should not be used for stdio; obtain credentials through the process environment when needed.

With Streamable HTTP, send JSON-RPC messages by POST to the MCP endpoint with the required headers and matching body metadata. Responses can be JSON or request-scoped SSE, including a subscription response stream where supported. The separate HTTP+SSE binding from 2024-11-05 is deprecated. Validate Origin according to the binding, use protected transport and authentication for remote deployments, and keep local-only endpoints on loopback.

A custom binding must preserve JSON-RPC message directions and per-request metadata. Specify framing, setup, cancellation, and failure handling. The spec recommends reusing stdio’s newline framing for reliable bidirectional byte streams such as Unix sockets or TCP.

  • MCP transport overview and custom transports
  • MCP stdio
  • MCP Streamable HTTP

Full explanation

MCP Server Development and Choosing Between Tools, Skills, and MCP

Study guide · CCDV-F

Read the full explanation →
← Back to CCDV-F FAQsView learning path →

Related questions

How should a remote MCP server authorize each request? →When should I choose an MCP server over a built-in tool, custom tool, Skill, or plugin? →How should an MCP host and server expose tools, resources, and prompts? →How does an MCP 2026-07-28 server ask for more client input during a request? →How do MCP 2026-07-28 clients discover server capabilities without an initialize session? →How should an MCP server list and call tools and return errors? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.