Bundelkund/Litefarm-mcp-server
3.2
If you are the rightful owner of Litefarm-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The LiteFarm MCP Server connects Claude Desktop with your local LiteFarm installation, enabling seamless farm management and complex database operations.
Tools
5
Resources
0
Prompts
0
LiteFarm MCP Server
Model Context Protocol (MCP) server for LiteFarm API integration. Enables AI assistants to interact with LiteFarm farm management data.
Features
- Farm management (list, get, create, update farms)
- Animal tracking (individual animals and batches)
- Crop management
- Location management (fields, greenhouses, gardens)
- Task management
- Finance tracking (expenses, expense types)
- Direct database access for complex queries
Setup
npm install
cp .env.example .env
# Edit .env with your credentials
Environment Variables
See .env.example for required configuration:
LITEFARM_API_URL- LiteFarm API endpointLITEFARM_EMAIL- Login emailLITEFARM_PASSWORD- Login passwordDATABASE_URL- PostgreSQL connection string (optional, for db-tools)
Run
npm start
Project Structure
src/
index.ts # MCP server entry point
litefarm-client.ts # API client
types.ts # TypeScript types
tools/ # MCP tool implementations
animal-tools.ts
crop-tools.ts
db-tools.ts
farm-tools.ts
finance-tools.ts
location-tools.ts
task-tools.ts
scripts/ # Utility scripts
docs/ # Documentation
MCP Integration
Add to your Claude Code MCP config:
{
"mcpServers": {
"litefarm": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/Litefarm-mcp-server"
}
}
}