Agriculture MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install agriculture-mcp-server
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add agriculture-mcp-server -- node "<FULL_PATH_TO_AGRICULTURE_MCP_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_AGRICULTURE_MCP_SERVER>/dist/index.js with the actual folder you prepared in step 1.

README.md

MCP server providing AI agents with agriculture and farming data

Agriculture MCP Server

MCP server providing AI agents with agriculture and farming data — soil conditions, crop weather, climate history, global statistics, and food products.

8 Tools in 4 Categories

Soil Conditions

  • soil_conditions — Soil temperature (0-54cm), moisture, evapotranspiration forecast

Crop Weather

  • crop_weather_forecast — Agricultural weather: temp, rain, wind, radiation, water balance
  • climate_history — Historical daily climate data since 1981 (NASA POWER)
  • climate_averages — Long-term monthly climate averages for site assessment

Global Statistics (World Bank)

  • country_agriculture_profile — Full agriculture profile of any country
  • compare_countries — Compare agriculture indicators across countries

Food Products (Open Food Facts)

  • food_product_lookup — Look up food products by barcode (nutrition, eco-scores)
  • food_search — Search 3M+ food products by name or category

Installation

pip install agriculture-mcp-server

Usage with Claude Code

.mcp.json:

{
  "mcpServers": {
    "agriculture": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "src.server"]
    }
  }
}

Data Sources

All APIs are free and require no API key:

API Data
Open-Meteo Soil temperature, moisture, evapotranspiration, crop weather
NASA POWER Historical climate data since 1981 (agricultural community)
World Bank Country-level agriculture statistics (20+ indicators)
Open Food Facts 3M+ food products with nutrition and eco-scores

License

MIT

Tools (8)

soil_conditionsProvides soil temperature (0-54cm), moisture, and evapotranspiration forecast.
crop_weather_forecastProvides agricultural weather including temp, rain, wind, radiation, and water balance.
climate_historyRetrieves historical daily climate data since 1981 from NASA POWER.
climate_averagesProvides long-term monthly climate averages for site assessment.
country_agriculture_profileRetrieves a full agriculture profile of any country.
compare_countriesCompares agriculture indicators across different countries.
food_product_lookupLooks up food products by barcode for nutrition and eco-scores.
food_searchSearches over 3 million food products by name or category.

Configuration

claude_desktop_config.json
{"mcpServers": {"agriculture": {"type": "stdio", "command": "python", "args": ["-m", "src.server"]}}}

Try it

What is the current soil moisture and temperature forecast for my region?
Compare the agricultural output indicators between Brazil and Argentina.
Show me the historical climate trends for this location since 1981.
Look up the nutritional information and eco-score for this food product using its barcode.
Search for organic dairy products in the food database.

Frequently Asked Questions

What are the key features of Agriculture MCP Server?

Real-time soil condition monitoring including temperature and moisture. Agricultural weather forecasting and water balance analysis. Access to NASA POWER historical climate data dating back to 1981. Global agriculture statistics via World Bank integration. Comprehensive food product database with nutrition and eco-score lookups.

What can I use Agriculture MCP Server for?

Assisting farmers in making data-driven irrigation and planting decisions. Helping researchers analyze long-term climate impacts on regional agriculture. Enabling supply chain analysts to compare agricultural performance across countries. Providing consumers with detailed nutritional and environmental data for food products.

How do I install Agriculture MCP Server?

Install Agriculture MCP Server by running: pip install agriculture-mcp-server

What MCP clients work with Agriculture MCP Server?

Agriculture MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Agriculture MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare