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 Streamable Http

    Example implementation of MCP Streamable HTTP client/server in Python and TypeScript.

    105 stars
    TypeScript
    Updated Oct 31, 2025
    llm
    mcp
    mcp-client
    mcp-server
    mcp-streamable-http
    model-context-protocol
    model-context-protocol-client
    model-context-protocol-server
    tool-use

    Table of Contents

    • 🚀 Getting Started
    • 1. Clone the Repository
    • 2. Python Example
    • 1. Add Your Anthropic API Key
    • 2. Set Up the Server
    • 3. Set Up the Client
    • 4. Run the Client
    • 3. Typescript Example
    • 1. Add Your Anthropic API Key
    • 2. Set Up the Server
    • 3. Set Up the Client
    • 4. Run the Client
    • 💬 Example Queries

    Table of Contents

    • 🚀 Getting Started
    • 1. Clone the Repository
    • 2. Python Example
    • 1. Add Your Anthropic API Key
    • 2. Set Up the Server
    • 3. Set Up the Client
    • 4. Run the Client
    • 3. Typescript Example
    • 1. Add Your Anthropic API Key
    • 2. Set Up the Server
    • 3. Set Up the Client
    • 4. Run the Client
    • 💬 Example Queries

    Documentation

    MCP Streamable HTTP – Python and Typescript Examples

    This repository provides example implementations of MCP (Model Context Protocol) Streamable HTTP client and server in Python and Typescript, based on the specification: 📄 MCP Streamable HTTP Spec.

    You can set up a client + server stack entirely using either Python or TypeScript. This example also demonstrates cross-language compatibility, allowing a Python client to communicate with a TypeScript server, and vice-versa.

    🚀 Getting Started

    1. Clone the Repository

    bash
    git clone https://github.com/invariantlabs-ai/mcp-streamable-http.git
    cd python-example

    2. Python Example

    1. Add Your Anthropic API Key

    Update the .env file inside the python-example/client directory with the following content:

    env
    ANTHROPIC_API_KEY=your_api_key_here

    2. Set Up the Server

    bash
    cd python-example/server
    pip install .
    python weather.py

    By default, the server will start at http://localhost:8123.

    If you'd like to specify a different port, use the --port flag:

    bash
    python weather.py --port=9000

    3. Set Up the Client

    bash
    cd ../client
    pip install .

    4. Run the Client

    bash
    python client.py

    This will start an interactive chat loop using the MCP Streamable HTTP protocol.

    If you started the MCP server on a different port, specify it using the --mcp-localhost-port flag:

    bash
    python client.py --mcp-localhost-port=9000

    3. Typescript Example

    1. Add Your Anthropic API Key

    Update the .env file inside the typescript-example/client directory with the following content:

    env
    ANTHROPIC_API_KEY=your_api_key_here

    2. Set Up the Server

    bash
    cd typescript-example/server
    npm install && npm run build
    node build/index.js

    By default, the server will start at http://localhost:8123.

    If you'd like to specify a different port, use the --port flag:

    bash
    node build/index.js --port=9000

    3. Set Up the Client

    bash
    cd ../client
    npm install && npm run build

    4. Run the Client

    bash
    node build/index.js

    This will start an interactive chat loop using the MCP Streamable HTTP protocol.

    If you started the MCP server on a different port, specify it using the --mcp-localhost-port flag:

    bash
    node build/index.js --mcp-localhost-port=9000

    ---

    💬 Example Queries

    In the client chat interface, you can ask questions like:

    • “Are there any weather alerts in Sacramento?”
    • “What’s the weather like in New York City?”
    • “Tell me the forecast for Boston tomorrow.”

    The client will forward requests to the local MCP weather server and return the results using Anthropic’s Claude language model. The MCP transport layer used will be Streamable HTTP.

    Similar MCP

    Based on tags & features

    • AN

      Anilist Mcp

      TypeScript·
      57
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • MC

      Mcp Aoai Web Browsing

      Python·
      30
    • BI

      Biomcp

      Python·
      327

    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

    • AN

      Anilist Mcp

      TypeScript·
      57
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • MC

      Mcp Aoai Web Browsing

      Python·
      30
    • BI

      Biomcp

      Python·
      327

    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