Sponsored by Deepsite.site

SSE-based Server and Client for

Created By
sidharthrajarama year ago
A working pattern for SSE-based MCP clients and servers
Overview

What is MCP SSE?

MCP SSE is a working pattern for Server-Sent Events (SSE) based clients and servers that utilize the Model Context Protocol (MCP) for real-time data communication.

How to use MCP SSE?

To use MCP SSE, ensure you have the ANTHROPIC_API_KEY set in your environment. Run the server with uv run weather.py and the client with uv run client.py http://0.0.0.0:8080/sse.

Key features of MCP SSE?

  • Real-time data communication using SSE
  • Decoupled server and client architecture
  • Integration with National Weather Service APIs for weather data

Use cases of MCP SSE?

  1. Building cloud-native applications that require real-time data updates.
  2. Creating weather forecasting tools that utilize live data.
  3. Developing agents that can connect to and interact with various tools in a decoupled manner.

FAQ from MCP SSE?

  • What is the purpose of using SSE in MCP?

SSE allows for a more efficient and decoupled communication model between clients and servers, suitable for cloud-native applications.

  • Can I customize the server's host and port?

Yes! You can configure the server's host and port using command line arguments.

  • What kind of data can I retrieve using MCP SSE?

You can retrieve various data types, including weather forecasts and alerts, by utilizing the provided tools.

Recommend Clients
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP PlaygroundCall MCP Server Tools Online
WindsurfThe new purpose-built IDE to harness magic
Continue⏩ Create, share, and use custom AI code assistants with our open-source IDE extensions and hub of models, rules, prompts, docs, and other building blocks
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
HyperChatHyperChat is a Chat client that strives for openness, utilizing APIs from various LLMs to achieve the best Chat experience, as well as implementing productivity tools through the MCP protocol.
Cherry Studio🍒 Cherry Studio is a desktop client that supports for multiple LLM providers.
Cline – #1 on OpenRouterAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
ZedCode at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
LutraLutra is the first MCP compatible client built for everyone
y-cli 🚀A Tiny Terminal Chat App for AI Models with MCP Client Support
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
A Sleek AI Assistant & MCP Client5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
MCP-CONNECT
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.