agri-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agri-mcpget current weather for Chicago"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agri-mcp
An MCP (Model Context Protocol) server that gives Claude access to live agricultural weather data via the OpenWeather API. Designed to run as a local tool server for Claude Desktop.
Features
get_weather — Get current weather conditions (temperature, description, humidity) for any city
get_forecast — Get a multi-day weather forecast for any city
Related MCP server: OpenWeatherMap MCP Server
Requirements
Python 3.10+
An OpenWeather API key (free tier works)
Setup
1. Clone / create the project folder
mkdir agri-mcp
cd agri-mcp2. (Optional) Create a virtual environment
python -m venv venv
venv\Scripts\activate3. Install dependencies
pip install mcp httpx python-dotenv4. Add your OpenWeather API key
Create a .env file in the project root (only needed for local/standalone testing — Claude Desktop passes env vars directly from its config):
OPENWEATHER_API_KEY=your_api_key_here5. Test the server standalone
python main.pyThe server communicates over stdio, so it won't print anything visible — if it doesn't immediately crash, it's working. Press Ctrl+C to stop it.
Connecting to Claude Desktop
Edit your Claude Desktop config file:
notepad "%APPDATA%\Claude\claude_desktop_config.json"Add the following (adjust the path to match where main.py actually lives on your machine):
{
"mcpServers": {
"agri-data": {
"command": "python",
"args": [
"C:\\Users\\YOUR_USERNAME\\PycharmProjects\\PythonProject\\agri-mcp\\main.py"
],
"env": {
"OPENWEATHER_API_KEY": "your_api_key_here"
}
}
}
}Then fully quit Claude Desktop (not just close the window — end the process from Task Manager or system tray) and reopen it. Check Settings → Developer (or the MCP servers panel) to confirm agri-data shows as connected.
Project Structure
agri-mcp/
├── main.py # MCP server entry point and tool definitions
├── .env # Local environment variables (not committed)
└── README.mdTroubleshooting
Issue | Fix |
| Check the config JSON structure — |
| Disable the Python App Execution Alias in Windows Settings, or use the full path to |
Old config still showing after edit | Fully quit Claude Desktop (Task Manager → End Task) and reopen — closing the window alone doesn't reload the config |
| Confirm the key is present in both the config's |
Security Note
Do not commit your .env file or claude_desktop_config.json with a real API key to version control. If a key is ever accidentally exposed (e.g. shared in a screenshot or chat), regenerate it from your OpenWeather account dashboard.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data and 5-day forecasts using OpenWeatherMap API. Supports querying by city name, country code, or geographic coordinates with detailed climate information including temperature, humidity, wind, and UV index.21MIT
- AlicenseNot gradedqualityDmaintenanceProvides access to real-time weather data, 5-day forecasts, and air quality information for any city using the OpenWeatherMap API.MIT
- AlicenseNot gradedqualityCmaintenanceProvides weather data integration using the OpenWeatherMap API, enabling users to fetch current weather conditions, hourly and daily forecasts, weather alerts, and geocoding services for any location worldwide.59MIT
- FlicenseNot gradedqualityDmaintenanceProvides current weather information for any city using the OpenWeatherMap API.
Related MCP Connectors
Weather data, forecast API, climate data, historical weather, alerts, agricultural & travel weather.
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KNithin1976/mcp-farmers'
If you have feedback or need assistance with the MCP directory API, please join our Discord server