MCP cover image
See in Github
2025-04-14

A prototype implementation to build custom MCP server that is accessible over stdio and SSE transport

0

Github Watches

0

Github Forks

0

Github Stars

mcp-transport-prototype

A prototype implementation to understand building custom MCP server that is accessible over stdio and SSE transport. The goal here is to understand SSE and stdio transports.

SSE Transport

Server-Sent Events (SSE) is a simple, efficient way to push real-time updates from the server to the client over HTTP.

  • Unlike WebSockets, SSE is one-way: the server can stream data to the client, but not vice versa.
  • It works over standard HTTP and is well-suited for scenarios like live updates, notifications, or streaming responses.

Unlike stdio, SSE runs the MCP server as a separate HTTP service. This makes it well-suited for use cases like web dashboards or browser-based apps that need to receive streamed updates from the server over the network.

Stdio Transport

Stdio (short for standard input/output) is a traditional way for programs to communicate by reading from and writing to the terminal or connected processes.

  • stdin (standard input): receives input data — usually from the keyboard, a file, or another program.
  • stdout (standard output): sends output data — usually printed on the terminal or piped to another program.

Compared to SSE, stdio-based MCP servers feel more like in-process tools. They're ideal when you're launching the MCP server as a subprocess, such as from a command-line tool, an LLM agent, or a background script that needs to send and receive structured data efficiently without using a network.

See in Action

mcp_client.py is a quick script to test MCP server in SSE mode.

# Run in Terminal 1
uv run main.py

# Run in Terminal 2
uv run mcp_client.py

相关推荐

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • langgenius
  • Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • alibaba
  • an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • Byaidu
  • PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

  • caio-moliveira
  • This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).

  • microsoft
  • Python tool for converting files and office documents to Markdown.

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • AstrBotDevs
  • ✨ 易上手的多平台 LLM 聊天机器人及开发框架 ✨ 平台支持 QQ、QQ频道、Telegram、微信、企微、飞书、钉钉 | 知识库、MCP 服务器、OpenAI、DeepSeek、Gemini、硅基流动、月之暗面、Ollama、OneAPI、Dify 等。 WebUI。

  • hkr04
  • Lightweight C++ MCP (Model Context Protocol) SDK

    Reviews

    4 (5)
    Avatar
    user_nUWEWWBd
    2025-04-24

    The mcp-transport-prototype by Amishk599 is a game-changing application for efficient transport management. It’s intuitive, user-friendly, and significantly improves organizational logistics. Highly recommend it for anyone looking to optimize their transport operations!

    Avatar
    user_4pdyOnJZ
    2025-04-24

    I recently tried the mcp-transport-prototype by Amishk599 and I'm thoroughly impressed! This innovative product offers seamless integration and efficient transport solutions. It's user-friendly and designed with a meticulous attention to detail. A must-try for anyone looking to enhance their existing system!

    Avatar
    user_vEki8M0r
    2025-04-24

    The mcp-transport-prototype by Amishk599 is an exceptional tool for transportation management. Its user-friendly interface and efficient performance make daily operations more streamlined. The system's reliability and robust features have significantly improved our workflow. Highly recommended for anyone in the logistics and transportation industry!

    Avatar
    user_pwt0ZXyP
    2025-04-24

    As a dedicated user of MCP applications, I can confidently say that the mcp-transport-prototype by Amishk599 is a remarkable tool. Its intuitive design and functionality have greatly enhanced my workflow. The ease of navigation and reliability make it a must-have for anyone seeking efficiency in their transport management tasks. Highly recommended!

    Avatar
    user_tz1AW9uj
    2025-04-24

    As a dedicated user of mcp applications, I found the mcp-transport-prototype created by Amishk599 to be an impressive addition. Its intuitive interface and seamless functionality have significantly enhanced my workflow. I highly recommend it to anyone looking to streamline their transport-related tasks.