Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Sse

    A working pattern for SSE-based MCP clients and servers Python-based implementation.

    299 stars
    Python
    Updated Oct 26, 2025
    agents
    llm
    mcp
    tool-use

    Table of Contents

    • Usage
    • Why?
    • Installing via Smithery
    • Server
    • Client

    Table of Contents

    • Usage
    • Why?
    • Installing via Smithery
    • Server
    • Client

    Documentation

    SSE-based Server and Client for MCP

    smithery badge

    This demonstrates a working pattern for SSE-based MCP servers and standalone MCP clients that use tools from them. Based on an original discussion here.

    Usage

    Note: Make sure to supply ANTHROPIC_API_KEY in .env or as an environment variable.

    code
    uv run weather.py
    
    uv run client.py http://0.0.0.0:8080/sse
    code
    Initialized SSE client...
    Listing tools...
    
    Connected to server with tools: ['get_alerts', 'get_forecast']
    
    MCP Client Started!
    Type your queries or 'quit' to exit.
    
    Query: whats the weather like in Spokane?
    
    I can help you check the weather forecast for Spokane, Washington. I'll use the get_forecast function, but I'll need to use Spokane's latitude and longitude coordinates.
    
    Spokane, WA is located at approximately 47.6587° N, 117.4260° W.
    [Calling tool get_forecast with args {'latitude': 47.6587, 'longitude': -117.426}]
    Based on the current forecast for Spokane:
    
    Right now it's sunny and cold with a temperature of 37°F and ...

    Why?

    This means the MCP server can now be some running process that agents (clients) connect to, use, and disconnect from whenever and wherever they want. In other words, an SSE-based server and clients can be decoupled processes (potentially even, on decoupled nodes). This is different and better fits "cloud-native" use-cases compared to the STDIO-based pattern where the client itself spawns the server as a subprocess.

    Installing via Smithery

    To install SSE-based Server and Client for Claude Desktop automatically via Smithery:

    bash
    npx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claude

    Server

    weather.py is a SSE-based MCP server that presents some tools based on the National Weather Service APIs. Adapted from the MCP docs' example STDIO server implementation.

    By default, server runs on 0.0.0.0:8080, but is configurable with command line arguments like:

    code
    uv run weather.py --host  --port

    Client

    client.py is a MCP Client that connects to and uses tools from the SSE-based MCP server. Adapted from the MCP docs' example STDIO client implementation.

    By default, client connects to SSE endpoint provided in the command line argument like:

    code
    uv run client.py http://0.0.0.0:8080/sse

    Similar MCP

    Based on tags & features

    • BI

      Biomcp

      Python·
      327
    • FA

      Fal Mcp Server

      Python·
      8
    • AL

      Alibaba Cloud Ops Mcp Server

      Python·
      78
    • KI

      Kill Process Mcp

      Python·
      9

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • BI

      Biomcp

      Python·
      327
    • FA

      Fal Mcp Server

      Python·
      8
    • AL

      Alibaba Cloud Ops Mcp Server

      Python·
      78
    • KI

      Kill Process Mcp

      Python·
      9

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k