# mcp-http-client-example **Repository Path**: chen_fang_yi/mcp-http-client-example ## Basic Information - **Project Name**: mcp-http-client-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-15 - **Last Updated**: 2025-07-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MCP HTTP Client Example Simple example client demonstrating how to connect to [Model Context Protocol (MCP)](https://spec.modelcontextprotocol.io) servers over HTTP using Server-Sent Events (SSE) transport. Uses the official [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk) to handle protocol communication and server interactions. ## Features - Connects to MCP servers over SSE transport - Lists available tools, resources and prompts - Properly handles connection lifecycle with async context managers ## Requirements - [uv](https://github.com/astral-sh/uv) ## Usage Clone this repository, then run the example client: ```bash uv run -- main.py ``` For example: ```bash uv run -- main.py http://localhost:8000/sse ``` The client will: 1. Connect to the specified MCP server 2. List its available capabilities 3. Print them as JSON ## Documentation - [MCP Specification](https://spec.modelcontextprotocol.io) - [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)