Skip to main content
Glama

USDA MCP 서버

USDA의 NASS QuickStats 및 AMS Market News API를 모든 MCP 호환 AI 모델에 연결하는 MCP 서버로, 농부, 연구원 및 USDA 직원이 미국 농업 데이터에 대해 평이한 영어로 질문하고 정확한 데이터 기반 답변을 얻을 수 있도록 합니다.

Challenge X 해커톤을 위해 제작됨 — 2026년 2월 28일 ~ 4월 18일. 팀: Root Access


기능

농부, 연구원 및 USDA 직원은 API가 무엇인지 또는 데이터를 직접 찾는 방법을 알 필요 없이 미국 농업 데이터에 대해 평이한 영어로 질문하고 정확한 데이터 기반 답변을 얻을 수 있습니다.

과거 데이터 (NASS QuickStats)

  • "2022년 아이오와주의 옥수수 수확량은 얼마였나요?"

  • "2018년부터 2022년까지 일리노이주의 대두 생산량 추세는 어떠했나요?"

  • "2021년 캔자스주에 심은 밀의 면적은 얼마인가요?"

  • "2022년 아이오와주 농부들이 받은 옥수수 가격은 얼마인가요?"

  • "2022년 전국 옥수수 생산량은 얼마였나요?"

현재 시장 가격 (AMS Market News)

  • "아이오와주의 현재 옥수수 가격은 얼마인가요?"

  • "오늘 일리노이주의 대두 가격은 얼마인가요?"

  • "대두를 어디에 팔아야 할까요 — 아이오와, 일리노이, 아니면 네브래스카?"

  • "캔자스주의 현재 밀 가격은 얼마인가요?"


Related MCP server: USDA NASS MCP Server

도구

이 서버는 4개의 MCP 도구를 제공합니다:

도구

데이터 소스

기능

get_nass_data

NASS QuickStats

모든 주와 연도의 옥수수 및 대두 수확량, 면적, 생산량, 수취 가격에 대한 빠른 조회

query_nass_flexible

NASS QuickStats

모든 작물, 모든 통계, 다년도 추세, 전국 또는 카운티 수준 데이터

get_ams_price

AMS Market News

위치별 현재 현물 곡물 가격

get_ams_price_comparison

AMS Market News

여러 주에 걸쳐 현재 가격을 비교하여 최적의 시장 찾기


프로젝트 구조

usda-mcp/
├── clients/
│   ├── nass_client.py       # NASS QuickStats API wrapper
│   └── ams_client.py        # AMS Market News API wrapper
├── server/
│   ├── main.py              # MCP server — 4 tools
│   ├── security.py          # OWASP MCP Top 10 mitigations
│   └── tools/
│       └── __init__.py
├── tests/
│   └── qa_log.csv           # Q&A evaluation log
├── demo/
│   └── app.py               # Demo interface (planned)
├── logs/
│   └── usda_nass_server.log # Auto-generated server log
├── .env                     # API keys (never committed)
├── .env.example             # Template for API keys
├── requirements.txt         # Pinned dependencies
├── SECURITY.md              # OWASP MCP Top 10 documentation
└── README.md

설정

1. 저장소 복제

git clone https://github.com/RolakeOkans/usda-mcp.git
cd usda-mcp

2. 가상 환경 생성

python -m venv .venv
source .venv/bin/activate

3. 종속성 설치

pip install -r requirements.txt

4. 루트 폴더에 .env 파일 생성

NASS_API_KEY=your_nass_key_here
AMS_API_KEY=your_ams_key_here

5. API 키 받기

NASS: https://www.nass.usda.gov/developer/index.php 에서 등록

AMS: https://mymarketnews.ams.usda.gov 에서 등록

둘 다 무료이며 몇 분 내에 발급됩니다.


Claude Desktop에 연결

~/Library/Application Support/Claude/claude_desktop_config.json에 다음을 추가하세요:

{
  "mcpServers": {
    "usda-nass": {
      "command": "/path/to/your/python",
      "args": ["/path/to/usda-mcp/server/main.py"],
      "env": {
        "NASS_API_KEY": "your_key_here",
        "AMS_API_KEY": "your_key_here"
      }
    }
  }
}

경로를 실제 Python 및 프로젝트 경로로 바꾸세요.


검증된 데이터 — NASS QuickStats

2022년 아이오와주에 대해 모든 쿼리가 테스트되었으며 작동이 확인되었습니다.

상품

통계

아이오와 2022 결과

옥수수

재배 면적

12,900,000 에이커

옥수수

수확량

200 BU / 에이커

옥수수

생산량

2,470,000,000 BU

옥수수

수취 가격

$6.62 / BU

대두

재배 면적

10,100,000 에이커

대두

수확량

58.5 BU / 에이커

대두

생산량

586,755,000 BU

대두

수취 가격

$14.20 / BU


검증된 데이터 — AMS Market News

2026년 4월 2일 기준으로 현재 가격이 작동함을 확인했습니다.

상품

위치

가격

옥수수

미니애폴리스

$4.08 / bu

대두

미니애폴리스

$11.10 / bu

옥수수

아이오와

$4.12 / bu

옥수수

텍사스

$4.90 / bu

대두

일리노이

$11.76 / bu

캔자스

$5.34 / bu


데이터 소스

소스

범위

상태

NASS QuickStats

면적, 수확량, 생산량, 수취 가격 — 모든 작물, 모든 주, 모든 연도

작동 중

AMS Market News

엘리베이터에서의 현재 현물 곡물 가격 — 19개 주 + 동적 검색

작동 중

AMS Socrata

운송 비용 및 물량

목표

ERS

가격 예측

목표


작동 원리

User asks a plain English question
        ↓
AI model reads the question and decides which tool to call
        ↓
MCP server validates and sanitizes the input
        ↓
NASS or AMS API returns the raw data
        ↓
Server scans response for security issues
        ↓
AI model interprets the data and returns a plain English answer
        ↓
All tool calls logged to logs/usda_nass_server.log

보안

이 서버는 10가지 OWASP MCP 상위 10대 위험을 모두 해결합니다. 자세한 내용은 SECURITY.md를 참조하세요.

요약:

  • API 키는 .env에 저장되며, 절대 커밋되지 않고 모든 로그에서 삭제됨

  • 읽기 전용 서버 — GET 요청만 가능하며, USDA 시스템에 대한 쓰기 권한 없음

  • 모든 도구 인수에 대한 입력 살균(Sanitization)

  • 도구당 분당 30개 요청으로 속도 제한

  • 모든 API 응답에 대한 프롬프트 주입 탐지

  • 모든 도구 호출에 대한 전체 감사 로깅

.env 파일을 절대 커밋하지 마세요. .gitignore에 나열되어 있습니다.


팀 — Root Access

역할

담당자

책임

데이터 / API

Morolake

API 연구, NASS 클라이언트, AMS 클라이언트, MCP 서버, 보안

MCP / AI 계층

[Gabriela]

AI 계층, 데모 UI

평가 / 보안

[Neyssa]

Q&A 테스트, 정확도 지표


해커톤

Challenge X+ USDA 일정: 2026년 2월 28일 ~ 4월 18일 쇼케이스: 2026년 4월 18일

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to access free, open agronomic data for field briefings, spray windows, water balance, pest pressure, and more, using only public data sources without API keys.
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables querying iCrop farm management data including farms, crops, fields, soil types, and cultivation methods through natural language.

View all related MCP servers

Related MCP Connectors

  • NASS MCP — USDA National Agricultural Statistics Service (Quick Stats)

  • UN FAOSTAT global food & agriculture statistics over a local SQLite mirror, via MCP.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

View all MCP Connectors

Latest Blog Posts

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/nstclore/usda-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server