mcp_server_claude_pydanticAI_CrewAI

alhadbhadekar/mcp_server_claude_pydanticAI_CrewAI

3.2

If you are the rightful owner of mcp_server_claude_pydanticAI_CrewAI and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This project provides a Weather Query Tool built using MCP (Model Context Protocol) and integrates it with both Pydantic AI Agents and CrewAI multi-agent workflows.

Tools
1
Resources
0
Prompts
0

MCP Weather Service Integration

This project provides a Weather Query Tool built using MCP (Model Context Protocol) and integrates it with both Pydantic AI Agents and CrewAI multi-agent workflows.

Features

  • MCP server exposing a get_weather(city) tool
  • Fetches live weather using OpenWeatherMap API
  • Works with Pydantic-AI and CrewAI
  • Configuration via .env
  • Local stdio communication

Setup

  1. Clone the repository.
  2. Create a .env file with the following values:
OPM_WEATHER_URL=https://api.openweathermap.org/data/2.5/weather
OPENWEATHERMAP_API_KEY=YOUR_API_KEY_HERE
GROQ_API_KEY=YOUR_GROQ_KEY_HERE
  1. Install dependencies using your preferred Python environment.

Running the MCP Server

uv run weather.py

Usage with Pydantic-AI

result = await agent.run("What's the weather like in Philadelphia?")
print(result)

Usage with CrewAI

weather_update = get_weather_update("London")
print(weather_update)

Troubleshooting

  • Verify API keys
  • Ensure correct Python/uv path configuration
  • Check city name spelling