MCP USDA Server

MCP USDA Server

mcp_usda_server_quantized•byantoniopavoni

A modular MCP server that fetches and formats USDA Foreign Agricultural Service PSD agricultural data into LLM-optimized output.

License: MIT License•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Exposes five USDA PSD data tools covering regions, countries, commodities, units of measure, and commodity attributes.
  • •Fetches USDA API data, filters it based on queries, and formats results into markdown optimized for LLM consumption.
  • •Communicates with MCP clients using JSON-RPC 2.0 for tool listing, metadata, and execution.

BEST FOR

  • •LLMs querying agricultural production, supply, and distribution data from the USDA PSD database.
  • •Developers building modular MCP servers with easy extensibility for new tools and data sources.

ABOUT MCP_USDA_SERVER_QUANTIZED

MCP USDA Server is cataloged as an MCP server attributed to antoniopavoni. A modular MCP server that fetches and formats USDA Foreign Agricultural Service PSD agricultural data into LLM-optimized output. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP USDA Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server work with different LLMs?

Yes, it is LLM-agnostic and supports LLMs with native function/tool calling or structured instruction following.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 32f446acaec7 · 采集于 2026-11-13 14:01:31 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP USDA Server

A modular MCP (Model Control Protocol) server template for fetching and formatting agricultural data from the USDA Foreign Agricultural Service (FAS) Production, Supply and Distribution (PSD) database.

🌾 Overview

This project serves as a template for creating Model Control Protocol (MCP) servers that expose agricultural data tools to Large Language Models (LLMs). It demonstrates how to fetch data from the USDA FAS API, process it, and present it in a format that's optimized for LLM consumption.

The server implements a modular architecture that makes it easy to:

  • Add new data sources and tools
  • Format complex data for LLM consumption
  • Create anti-hallucination guardrails
  • Connect to an MCP client that aggregates tools from multiple servers

📐 Architecture

This project implements a client-server architecture using the MCP (Model Control Protocol) approach:

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│             │     │             │     │             │
│    LLM      │◄───►│  MCP Client │◄───►│ MCP Servers │
│             │     │             │     │             │
└─────────────┘     └─────────────┘     └─────────────┘

Core Components:

  1. MCP Client:

    • Aggregates tools from multiple MCP servers
    • Provides a unified interface for the LLM to access all tools
    • Routes tool calls to the appropriate server based on the tool name
  2. MCP USDA Server:

    • Implements specialized tools for USDA agricultural data
    • Handles the API calls, data processing, and formatting
    • Returns data in a format optimized for LLM consumption
  3. Communication Protocol:

    • Uses JSON-RPC 2.0 for standardized client-server communication
    • Supports tool listing, tool metadata, and tool execution requests

🧰 Available Tools

This server implements five USDA data tools:

  1. usda-psd-regions: Get region data from the USDA FAS PSD database
  2. usda-psd-countries: Get country data with region associations
  3. usda-psd-commodities: Get agricultural commodity definitions
  4. usda-psd-units-of-measure: Get units of measure for agricultural quantities
  5. usda-psd-commodity-attributes: Get commodity attributes (production, supply, distribution)

Each tool is designed to fetch data from the USDA API, filter it based on user queries, and format it into markdown that's optimized for LLM consumption.

📁 Project Structure

The project follows a modular architecture:

MCP_USDA_Server/
├── src/
│   ├── tools/           # Core implementation of each tool
│   ├── handlers/        # Request handlers for each tool
│   ├── formatters/      # Format tool results for LLM consumption
│   ├── routers/         # Route requests to the appropriate handler
│   ├── utils/           # Utility functions
│   └── server.js        # Main server entry point
├── Architecture.md      # Detailed architecture documentation
└── package.json         # Dependencies and scripts

Key Files:

  • src/server.js: Main entry point that starts the HTTP server and initializes the request processor
  • src/tools/registry.js: Central registry of all available tools with metadata
  • src/routers/toolRouter.js: Routes tool-related requests to the appropriate handler
  • src/tools/psd.js*: Implementation of USDA PSD data fetching for different endpoints
  • src/formatters/psd*Formatter.js: Formats API results into markdown for LLM consumption
  • src/handlers/psd*Handler.js: Handles incoming requests for each tool

🔄 JSON-RPC Communication

The server communicates with the MCP client using JSON-RPC 2.0:

Examples:

1. Tool Listing Request:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}

2. Tool Execution Request:

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/execute",
  "params": {
    "name": "usda-psd-regions",
    "args": {
      "query": "asia"
    }
  }
}

⚙️ LLM Integration

This server is designed to be LLM-agnostic, meaning it can work with any LLM that supports either:

  • Function/Tool Calling: For LLMs that have native function calling capabilities (e.g., OpenAI's GPT-4, Anthropic's Claude 3, Google's Gemini)
  • Instruction Following: For LLMs that can follow structured instructions about available tools

The system works best with LLMs that have:

  1. Function/tool calling capabilities
  2. Ability to parse and generate structured data
  3. Contextual understanding of agricultural data

🚀 Getting Started

Prerequisites:

  • Node.js (v14+)
  • npm or yarn

Installation:

  1. Clone this repository:
git clone https://github.com/yourusername/MCP_USDA_Server.git
cd MCP_USDA_Server
  1. Install dependencies:
npm install
  1. Start the server:
npm start

The server will start on port 3100 by default (configurable in .env).

Connecting with MCP Client:

The server is designed to work with an MCP client that aggregates tools from multiple servers. See the companion MCP_WebAgent_Client repository for implementation details.

🔧 Extending the Server

Adding a New Tool:

  1. Create a new tool implementation in src/tools/
  2. Create a formatter in src/formatters/
  3. Create a handler in src/handlers/
  4. Register the tool in src/tools/registry.js
  5. Update the router in src/routers/toolRouter.js

See the existing tools for implementation examples.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgements

  • USDA Foreign Agricultural Service for providing the PSD API
  • The open-source community for inspiration and examples of modular architecture

Created as a template for building MCP servers that expose domain-specific data to LLMs.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP USDA Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp_usda_server_quantized)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage