Magpie — USDA Agricultural Data for AI Agents

USDA farm data for AI agents: prices, WASDE, crop conditions, trade. 26 tools, free, no key.

我該用這個嗎

品質與安全性

A
說明品質
82%
結構描述完整度
76%
命名品質
99%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~2,270Token(工具定義)
~648 B典型回應大小
中等的注意力影響(128k 上下文的 1.77%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "magpie": {
      "url": "https://ag.morningbrief.link/mcp"
    }
  }
}

遠端端點

https://ag.morningbrief.link/mcpstreamable-http

它能做什麼

工具清單

工具(26)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢get_fertilizer_price(product)

Get the latest price for a fertilizer product

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "description": "Product slug (e.g. anhydrous_ammonia, urea, dap)",
      "enum": [
        "anhydrous_ammonia",
        "urea",
        "dap",
        "map",
        "potash",
        "liquid_n_28",
        "liquid_n_32",
        "ats",
        "farm_diesel",
        "biodiesel"
      ]
    }
  },
  "required": [
    "product"
  ]
}
🟢get_fertilizer_history(product, periods)

Get price history for a fertilizer product

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "enum": [
        "anhydrous_ammonia",
        "urea",
        "dap",
        "map",
        "potash",
        "liquid_n_28",
        "liquid_n_32",
        "ats",
        "farm_diesel",
        "biodiesel"
      ]
    },
    "periods": {
      "type": "number",
      "description": "Number of periods (max 52)",
      "default": 12
    }
  },
  "required": [
    "product"
  ]
}
🟢list_fertilizer_products

List all available fertilizer products

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢get_grain_price(product, geography)

Get the latest cash price for a grain commodity

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "description": "Grain slug (e.g. corn, soybeans, wheat)",
      "enum": [
        "corn",
        "soybeans",
        "wheat",
        "sorghum",
        "oats",
        "barley",
        "rice"
      ]
    },
    "geography": {
      "type": "string",
      "description": "State code (e.g. IL, IA). Default: IL",
      "default": "IL"
    }
  },
  "required": [
    "product"
  ]
}
🟢get_grain_history(product, geography, periods)

Get price history for a grain commodity

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "enum": [
        "corn",
        "soybeans",
        "wheat",
        "sorghum",
        "oats",
        "barley",
        "rice"
      ]
    },
    "geography": {
      "type": "string",
      "default": "IL"
    },
    "periods": {
      "type": "number",
      "description": "Number of days (max 365)",
      "default": 30
    }
  },
  "required": [
    "product"
  ]
}
🟢list_grain_products

List all available grain commodities

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢get_livestock_price(product, geography)

Get the latest price for a livestock category

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "description": "Livestock slug (e.g. fed_cattle, feeder_cattle, hogs)",
      "enum": [
        "fed_cattle",
        "feeder_cattle",
        "cows",
        "hogs",
        "sheep"
      ]
    },
    "geography": {
      "type": "string",
      "description": "Region (IA, ECB). Default: IA",
      "default": "IA"
    }
  },
  "required": [
    "product"
  ]
}
🟢get_livestock_history(product, geography, periods)

Get price history for a livestock category

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "enum": [
        "fed_cattle",
        "feeder_cattle",
        "cows",
        "hogs",
        "sheep"
      ]
    },
    "geography": {
      "type": "string",
      "default": "IA"
    },
    "periods": {
      "type": "number",
      "description": "Days (max 365)",
      "default": 30
    }
  },
  "required": [
    "product"
  ]
}
🟢list_livestock_products

List all available livestock categories

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢get_dairy_price(product, geography)

Get the latest price for a dairy product

輸入結構描述

{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "enum": [
        "butter",
        "cheese",
        "dry_whey",
        "fluid_milk"
      ],
      "description": "Dairy product (cheese, butter, dry_whey, fluid_milk)"
    },
    "geography": {
      "type": "string",
      "default": "US-Central"
    }
  },
  "required": [
    "product"
  ]
}
🟢list_dairy_products

List all available dairy products

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢get_crop_stats(commodity, stat, geography)

Get NASS survey statistics (yield, production, acreage) for a commodity

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "description": "Commodity (CORN, SOYBEANS, WHEAT, etc.)",
      "default": "CORN"
    },
    "stat": {
      "type": "string",
      "description": "Statistic type (YIELD, PRODUCTION, AREA PLANTED)",
      "default": "YIELD"
    },
    "geography": {
      "type": "string",
      "description": "US for national, or state code (IA, IL, etc.)",
      "default": "US"
    }
  },
  "required": []
}
🟢get_crop_condition(commodity, geography)

Get current NASS crop condition ratings (% excellent/good/fair/poor/very poor)

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "description": "Commodity (CORN, SOYBEANS, WHEAT)",
      "default": "CORN"
    },
    "geography": {
      "type": "string",
      "description": "US for national, or state code (IA, IL, etc.)",
      "default": "US"
    }
  },
  "required": []
}
🟢get_crop_progress(commodity, geography)

Get current NASS crop progress (% planted, emerged, harvested, etc.)

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "description": "Commodity (CORN, SOYBEANS, WHEAT)",
      "default": "CORN"
    },
    "geography": {
      "type": "string",
      "description": "US for national, or state code (IA, IL, etc.)",
      "default": "US"
    }
  },
  "required": []
}
🟢get_weather(location)

Get current weather conditions for an agricultural region

輸入結構描述

{
  "type": "object",
  "properties": {
    "location": {
      "type": "string",
      "description": "Location key (IL-central, IA-central, NE-central, IN-central, KS-central)",
      "default": "IL-central"
    }
  },
  "required": []
}
🟢get_forecast(location)

Get 7-day weather forecast for an agricultural region

輸入結構描述

{
  "type": "object",
  "properties": {
    "location": {
      "type": "string",
      "description": "Location key",
      "default": "IL-central"
    }
  },
  "required": []
}
🟢get_spreads(geography)

Get input-to-output price spreads: corn-to-nitrogen by product, soybean-to-corn, feeder-to-fed cattle

輸入結構描述

{
  "type": "object",
  "properties": {
    "geography": {
      "type": "string",
      "default": "IL"
    }
  },
  "required": []
}
🟢get_wasde_projection(commodity, country, market_year)

Get USDA WASDE supply/demand projections for a commodity

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "description": "Commodity slug (e.g. corn, wheat, soybeans, rice, cotton)",
      "enum": [
        "corn",
        "wheat",
        "soybeans",
        "soybean_meal",
        "soybean_oil",
        "rice",
        "barley",
        "cotton"
      ]
    },
    "country": {
      "type": "string",
      "description": "Country code or WORLD aggregate",
      "default": "WORLD"
    },
    "market_year": {
      "type": "number",
      "description": "Marketing year (e.g. 2026 = 2025/26 season)"
    }
  },
  "required": [
    "commodity"
  ]
}
🟢get_wasde_history(commodity, attribute, country)

Get historical WASDE projection revisions for a commodity attribute

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "enum": [
        "corn",
        "wheat",
        "soybeans",
        "soybean_meal",
        "soybean_oil",
        "rice",
        "barley",
        "cotton"
      ]
    },
    "attribute": {
      "type": "string",
      "description": "Projection attribute",
      "enum": [
        "beginning_stocks",
        "production",
        "imports",
        "exports",
        "domestic_consumption",
        "ending_stocks"
      ],
      "default": "ending_stocks"
    },
    "country": {
      "type": "string",
      "default": "WORLD"
    }
  },
  "required": [
    "commodity"
  ]
}
🟢list_wasde_commodities

List all commodities tracked in WASDE projections

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢get_export_sales(commodity, country)

Get USDA weekly export sales for a commodity (net sales, outstanding, commitments)

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "enum": [
        "wheat",
        "barley",
        "corn",
        "sorghum",
        "soybeans",
        "soybean_meal",
        "soybean_oil",
        "cotton",
        "rice"
      ],
      "description": "Commodity slug"
    },
    "country": {
      "type": "string",
      "description": "GENC country code (e.g. CHN, MEX) or omit for all"
    }
  },
  "required": [
    "commodity"
  ]
}
🟢get_export_sales_history(commodity, country, weeks)

Get weekly export sales time series for a commodity and country

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "enum": [
        "wheat",
        "barley",
        "corn",
        "sorghum",
        "soybeans",
        "soybean_meal",
        "soybean_oil",
        "cotton",
        "rice"
      ]
    },
    "country": {
      "type": "string",
      "description": "GENC country code"
    },
    "weeks": {
      "type": "number",
      "description": "Number of weeks (default 12, max 52)"
    }
  },
  "required": [
    "commodity"
  ]
}
🟢list_esr_commodities

List all commodities tracked in export sales

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢get_trade_flows(commodity, partner, months)

Get USDA GATS monthly trade flows (actual shipments) for a commodity

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "enum": [
        "wheat",
        "barley",
        "corn",
        "sorghum",
        "soybeans",
        "soybean_meal",
        "soybean_oil",
        "cotton",
        "rice"
      ],
      "description": "Commodity slug"
    },
    "partner": {
      "type": "string",
      "description": "Partner country code or omit for all"
    },
    "months": {
      "type": "number",
      "description": "Number of months (default 12, max 24)"
    }
  },
  "required": [
    "commodity"
  ]
}
⚪compare_contracts_vs_shipments(commodity, partner)

Compare ESR sales contracts against GATS actual shipments — shows unshipped balance

輸入結構描述

{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "enum": [
        "wheat",
        "barley",
        "corn",
        "sorghum",
        "soybeans",
        "soybean_meal",
        "soybean_oil",
        "cotton",
        "rice"
      ],
      "description": "Commodity slug"
    },
    "partner": {
      "type": "string",
      "description": "Partner country code or omit for all"
    }
  },
  "required": [
    "commodity"
  ]
}
🟢list_gats_commodities

List all commodities tracked in GATS trade flows

輸入結構描述

{
  "type": "object",
  "properties": {}
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本26 個工具