Http Client Example icon

Http Client Example

Demonstrates connecting to Model Context Protocol (MCP) servers over HTTP using Server-Sent Events (SSE).

关于

This is a simple example client demonstrating how to connect to Model Context Protocol (MCP) servers over HTTP using Server-Sent Events (SSE) transport. It leverages the official MCP Python SDK to handle protocol communication and server interactions, providing a clear and concise illustration of how to interact with an MCP server's capabilities.

主要功能

  • Handles connection lifecycle with async context managers
  • 6 GitHub stars
  • Connects to MCP servers over SSE transport
  • Lists available tools, resources and prompts
Craft Better Prompts with AnyPrompt
Sponsored