mcp-http-client-example
Simple example client demonstrating how to connect to MCP servers over HTTP (SSE)
Documentation
MCP HTTP Client Example
Simple example client demonstrating how to connect to Model Context Protocol (MCP) servers over HTTP using Server-Sent Events (SSE) transport.
Uses the official MCP 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
Usage
Clone this repository, then run the example client:
uv run -- main.pyFor example:
uv run -- main.py http://localhost:8000/sseThe client will:
1. Connect to the specified MCP server
2. List its available capabilities
3. Print them as JSON
Documentation
Frequently asked questions
What is mcp-http-client-example?
mcp-http-client-example is Simple example client demonstrating how to connect to MCP servers over HTTP (SSE)
How do I install mcp-http-client-example?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-http-client-example open source?
Yes — it is hosted on GitHub at https://github.com/slavashvets/mcp-http-client-example/ and has 17 stars.
Related MCP tools
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
A simple, secure MCP-to-OpenAPI proxy server Python-based implementation. Trusted by 3500+ developers. Trusted by 3500+ developers.
MCP server that interacts with Obsidian via the Obsidian rest API community plugin Python-based implementation. Trusted by 2300+ developers.
Default Configuration: MCP CLI defaults to using Ollama with the gpt-oss reasoning model for local, privacy-focused operation without requiring API keys.
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP server for long term agent memory with Mem0. Also useful as a template to get you started building your own MCP server with Python!
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP