Guide
Provides example MCP client and server implementations using SDK and JSON-RPC to facilitate learning the Model Context Protocol.
About
Guide offers a set of basic MCP client and server implementations designed to help developers learn and understand the Model Context Protocol (MCP) from the ground up. It includes examples of both client and server implementations, leveraging the MCP SDK and JSON-RPC. The repository features multiple server examples including stdio and HTTP-based servers, along with a CLI client. The provided weather tool examples demonstrate fetching weather alerts and forecasts, enabling users to experiment with real-world data integration and OpenAI model interaction.
Key Features
- 1 GitHub stars
- Includes multiple MCP server implementations (stdio and HTTP)
- Provides a weather tool example with `get-alerts` and `get-forecast` functionalities
- Integrates with OpenAI for natural language query understanding and tool selection
- Demonstrates MCP implementation using both the SDK and manual JSON-RPC handling
- Offers a CLI client to connect to and interact with MCP servers
Use Cases
- Learning the basics of MCP client and server implementation
- Integrating external data sources (e.g., weather API) with MCP
- Experimenting with different MCP server setups (stdio, HTTP)