How krishnaik06/mcp-crash-course works
This repository contains a basic MCP example, two weather-server implementations, direct MCP clients, and an interactive LangChain/MCP agent. The weather workflow lets a user ask for alerts or forecasts, dispatches the request to a registered MCP tool, and retrieves weather data from the National Weather Service (NWS). The README also documents basic arithmetic tools and a greeting resource, though the sampled main.py only prints a greeting; its implementation details are therefore uncertain.
Main entry points: server.py Weather Tools · client.py Memory Chat Agent · client-sse.py MCP Tool Clients · client-stdio.py stdio Client
Components 16
Basic MCP Example
- Tools and Greeting
main.py
Weather MCP Servers
- Weather Tools
mcpserver/server.py - Alert Lookup
mcpserver/server.py - Forecast Lookup
mcpserver/server.py - Request and Formatting
mcpserver/server.py - Echo Resource
server/weather.py
MCP Clients
- MCP Tool Clients
mcpserver/client-sse.py - stdio Client
mcpserver/client-stdio.py
Agent Chat
- Memory Chat Agent
server/client.py - Weather Client Config
server/weather.json - MCP Client
server/client.py
Other components
- MCP User
- Weather User
- NWS API
- Chat User
- Groq Chat Model
Connections 15
- MCP User → Tools and Greeting: uses tools
README.md - Weather User → MCP Tool Clients: requests weather
mcpserver/client-sse.py - MCP Tool Clients → Weather Tools: calls tools
mcpserver/client-sse.py - stdio Client → Weather Tools: calls tools
mcpserver/client-stdio.py - Weather Tools → Alert Lookup: registers
mcpserver/server.py - Weather Tools → Forecast Lookup: registers
mcpserver/server.py - Alert Lookup → Request and Formatting: fetches data
mcpserver/server.py - Forecast Lookup → Request and Formatting: fetches data
mcpserver/server.py - Request and Formatting → NWS API: requests weather
mcpserver/server.py - Weather User → Echo Resource: requests resource
- Chat User → Memory Chat Agent: enters prompt
server/client.py - Memory Chat Agent → MCP Client: runs agent
server/client.py - Memory Chat Agent → Groq Chat Model: configures model
server/client.py - Memory Chat Agent → Weather Client Config: loads config
server/client.py - MCP Client → Weather Tools: connects tools