MCP ExplorerExplorer

Streamable Http Mcp Server

@TangBaronon a month ago
1 MIT
FreeCommunity
AI Systems
# Streamable HTTP MCP Server Based on the Streamable HTTP communication protocol, this project involves writing a Streamable HTTP MCP Server from scratch, providing an in-depth understanding of the Streamable HTTP communication protocol.

Overview

What is Streamable Http Mcp Server

streamable_http_mcp_server is a custom-built server that implements the Streamable HTTP communication protocol from scratch, allowing for efficient data streaming and real-time communication.

Use cases

Use cases include building real-time weather applications, streaming data analytics platforms, and any application that requires low-latency communication between clients and servers.

How to use

To use streamable_http_mcp_server, first set up the environment by creating a conda environment and installing the necessary packages. Then, modify the API keys in the server.py and client.py files to your registered keys before running the server.

Key features

Key features include the ability to handle real-time data streaming, customizable API integrations, and a straightforward setup process using Python and FastAPI.

Where to use

streamable_http_mcp_server can be used in various fields such as web development, real-time data processing, and applications requiring efficient communication protocols.

Content

手搓Streamable HTTP MCP Server项目

环境准备:

conda create -n mcp python=3.12
pip install uv
uv add openai fastapi 

代码准备:

  1. 将server.py中的fetch_weather函数的key修改为你注册的心知天气api key
  2. 将client.py中的Configuration类中的api key修改为你注册的DeepSeek-V3-0324 api key

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers