nass_crop_production
Pack: nass · Endpoint: https://gateway.pipeworx.io/nass/mcp
Get US crop yields, production totals, and planted/harvested acreage by crop, state, and year. Quick access to major crop survey data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | NASS API key |
commodity | string | yes | Crop name: “CORN”, “SOYBEANS”, “WHEAT”, “COTTON”, “RICE”, “SORGHUM”, “BARLEY”, “OATS” |
stat_category | string | no | Statistic: “PRODUCTION”, “YIELD”, “AREA PLANTED”, “AREA HARVESTED” (default: “PRODUCTION”) |
state | string | no | State name, e.g., “IOWA” (optional, defaults to national) |
year | string | no | Year or range, e.g., “2024” or “2020:2025” (optional) |
Example call
Arguments
{
"_apiKey": "your-nass-api-key",
"commodity": "CORN",
"stat_category": "PRODUCTION",
"state": "IOWA"
}
curl
curl -X POST https://gateway.pipeworx.io/nass/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"nass_crop_production","arguments":{"_apiKey":"your-nass-api-key","commodity":"CORN","stat_category":"PRODUCTION","state":"IOWA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('nass_crop_production', {
"_apiKey": "your-nass-api-key",
"commodity": "CORN",
"stat_category": "PRODUCTION",
"state": "IOWA"
});
More examples
{
"_apiKey": "your-nass-api-key",
"commodity": "WHEAT",
"stat_category": "YIELD",
"year": "2020:2025"
}
Response shape
Always returns: count, data, truncated
| Field | Type | Description |
|---|---|---|
count | integer | Number of records returned |
data | array | Crop production and yield data |
truncated | boolean | True if results exceed 200 records |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Number of records returned"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"commodity": {
"type": [
"string",
"null"
],
"description": "Crop name"
},
"stat_category": {
"type": [
"string",
"null"
],
"description": "Statistic (PRODUCTION, YIELD, AREA PLANTED, AREA HARVESTED)"
},
"state": {
"type": [
"string",
"null"
],
"description": "State name"
},
"county": {
"type": [
"string",
"null"
],
"description": "County name"
},
"agg_level": {
"type": [
"string",
"null"
],
"description": "Aggregation level"
},
"year": {
"type": [
"integer",
"null"
],
"description": "Year of the record"
},
"frequency": {
"type": [
"string",
"null"
],
"description": "Frequency"
},
"period": {
"type": [
"string",
"null"
],
"description": "Reference period"
},
"value": {
"type": [
"string",
"null"
],
"description": "Production, yield, or acreage value"
},
"unit": {
"type": [
"string",
"null"
],
"description": "Unit of measurement"
},
"description": {
"type": [
"string",
"null"
],
"description": "Statistic description"
}
}
},
"description": "Crop production and yield data"
},
"truncated": {
"type": "boolean",
"description": "True if results exceed 200 records"
}
},
"required": [
"count",
"data",
"truncated"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"nass": {
"url": "https://gateway.pipeworx.io/nass/mcp"
}
}
}
See Getting Started for client-specific install steps.