Bring Crop Statistics
to Mastra AI
Create your Vinkius account to connect USDA NASS to Mastra AI and start using all 8 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the USDA NASS MCP Server?
Connect to USDA NASS (National Agricultural Statistics Service) APIs through any AI agent and explore American agriculture data through natural conversation.
What you can do
- Crop Production — Query yield, production, harvested acres and price data for all major crops (corn, soybeans, wheat, cotton, rice)
- Livestock Data — Retrieve cattle inventory, hog production, poultry statistics, milk and egg production data
- Agricultural Economics — Access prices received/paid by farmers, farm income, production expenses and land values
- Farm Demographics — Explore Census of Agriculture data including operator age, experience, occupation and veteran status
- Parameter Discovery — Discover valid values for any filter parameter (commodities, states, years, units)
- Survey Metadata — Review information about all NASS surveys including frequencies and methodologies
How it works
- Subscribe to this server
- Enter your USDA NASS API Key (free at nass.usda.gov/developer)
- Start exploring agricultural data from Claude, Cursor, or any MCP-compatible client
No more navigating complex Quick Stats interfaces to find crop yields or livestock data. Your AI acts as a dedicated agricultural data analyst.
Who is this for?
- Agricultural Analysts — quickly query crop production data, compare yields across states and track price trends
- Farmers & Ranchers — check market prices, review production statistics and benchmark against state/national averages
- Researchers — access demographics data, survey methodologies and historical agricultural statistics for academic work
- Commodity Traders — monitor production volumes, inventory levels and economic indicators for market analysis
Built-in capabilities (8)
Requires a commodity name (e.g. CORN, SOYBEANS, WHEAT, COTTON). Optionally filter by state and year. Returns detailed statistics with units, geographic scope and time period. Get crop production summary from USDA NASS
Optionally filter by state and year. Sector is automatically set to DEMOGRAPHICS. Get farm demographics data from USDA NASS
Optionally filter by commodity, state and year. Sector is automatically set to ECONOMICS. Get agricultural economics data from USDA NASS
Requires a commodity name (e.g. CATTLE, HOGS, CHICKENS, MILK, EGGS). Optionally filter by state and year. Get livestock production summary from USDA NASS
Parameters include: sector, group, commodity, commodity_desc, short_desc, source_desc, util_desc, unit_desc, freq_desc, domain_desc, state, county. Use this to discover what values you can filter by before making queries. Get valid values for a Quick Stats parameter
Accepts parameters: sector (CROPS, ANIMALS & PRODUCTS, ECONOMICS, DEMOGRAPHICS), commodity, group, commodity_desc, state, year, freq (ANNUAL, MONTHLY), unit_desc, source_desc. Returns statistical data with value, unit, state, year and commodity information. Use get_param_values to discover valid parameter values before querying. Query USDA NASS Quick Stats database
This is useful for understanding what data is available and how frequently it is collected. Get information about USDA NASS surveys
Optionally filter by state, year and sector. This is a broad search that returns all available data for the commodity, including production, price, inventory and acreage statistics. Search Quick Stats by commodity name
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and USDA NASS tool infrastructure. Connect 8 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add USDA NASS without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every USDA NASS tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
USDA NASS in Mastra AI
Why run USDA NASS with Vinkius?
The USDA NASS connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 8 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect USDA NASS using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
USDA NASS and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect USDA NASS to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
USDA NASS for Mastra AI
Every request between Mastra AI and USDA NASS is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
How do I get a USDA NASS API key?
Visit nass.usda.gov/developer and register for a free API key. The key is delivered instantly via the web form. It's completely free with no usage cost.
What crops and commodities are available?
The NASS Quick Stats database covers all major US agricultural commodities: CORN, SOYBEANS, WHEAT, COTTON, RICE, SORGHUM, OATS, BARLEY, HAY, PEANUTS, POTATOES for crops; CATTLE, HOGS, CHICKENS, TURKEYS, MILK, EGGS, HONEY for livestock; plus fruit, vegetables, nursery products and many more. Use get_param_values with param 'commodity' to see the complete list.
Can I filter data by state and year?
Yes! All query tools support optional state and year parameters. State can be the full name (e.g. 'IOWA') or abbreviation (e.g. 'IA'). Year accepts specific years (e.g. '2024') or ranges. The data returned includes the state, year, commodity, value and unit for each record.
What kind of economic data is available?
The ECONOMICS sector includes: prices received by farmers for crops and livestock, prices paid by farmers (inputs, feed, fuel), farm production expenses, farm real estate values, cash rent for cropland and pasture, and agricultural income data. Use get_economics_data to query by commodity, state and year.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
UniProt
3 toolsSearch 250M+ protein sequences with functional annotations, gene names, subcellular locations, and amino acid data from the world's most comprehensive protein knowledge base.

SavvyCal
10 toolsManage your SavvyCal scheduling links, check real-time availability, and coordinate automated bookings via AI.

Baota Panel / 宝塔面板 API
10 toolsLeading server management panel in China — manage websites, databases, and system resources via AI.

FDA (openFDA)
12 toolsAccess public health data via openFDA — search drug labeling, monitor adverse events, and track food recalls directly through your AI agent.
