Farm OS MCP Server
Enables management and monitoring of farm operations including field and crop tracking, livestock monitoring, equipment management, and sensor readings through a Model Context Protocol interface built with FastMCP.
README
Farm OS MCP Server
A Model Context Protocol (MCP) server for Farm OS using FastMCP, built with Python and managed with uv.
Features
This MCP server provides tools for managing farm data including:
- Farm information and summaries
- Field management and crop tracking
- Livestock monitoring
- Equipment tracking
- Sensor readings
All data is currently static for testing purposes.
Setup
Prerequisites
- Python 3.10 or higher
uvpackage manager (install from https://docs.astral.sh/uv/)
Installation
-
Install
uv(if not already installed):Windows (PowerShell):
irm https://astral.sh/uv/install.ps1 | iexmacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh -
Sync dependencies:
uv sync -
Install the project:
uv pip install -e .
Usage
Run the MCP Server
uv run python farmos_server.py
Test the Tools
Run the test script to see all available tools in action:
uv run python test_server.py
Available Tools
get_farm_info(farm_id)- Get detailed information about a specific farmlist_all_farms()- List all available farmsget_field_info(field_id)- Get information about a specific fieldlist_fields_by_farm(farm_id)- List all fields for a farmget_livestock_info(livestock_id)- Get information about livestocklist_livestock_by_farm(farm_id)- List all livestock for a farmget_equipment_info(equipment_id)- Get information about equipmentlist_equipment_by_farm(farm_id)- List all equipment for a farmget_sensor_readings(field_id)- Get sensor readings for a fieldsearch_by_crop_type(crop_type)- Search fields by crop typeget_farm_summary(farm_id)- Get comprehensive farm summary with statistics
Project Structure
fastmcp/
├── farmos_server.py # Main MCP server with all tools
├── static_data.py # Static test data
├── test_server.py # Test script
├── pyproject.toml # Project configuration
└── setup.py # Setup helper script
Static Test Data
The project includes static test data for:
- 3 farms
- 4 fields
- 3 livestock groups
- 3 equipment items
- 3 sensor devices
All data is defined in static_data.py and can be modified for testing purposes.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.