Provides direct SQL database access to LiteFarm's PostgreSQL database for complex multi-step operations, schema inspection, and atomic transactions with automatic rollback on errors.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LiteFarm MCP Servershow me all tasks due this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 credentialsEnvironment 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 startProject 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/ # DocumentationMCP Integration
Add to your Claude Code MCP config:
{
"mcpServers": {
"litefarm": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/Litefarm-mcp-server"
}
}
}