Skip to main content
Glama
LiteFarm MCP Server

LiteFarm MCP Server

by Bundelkund

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

Related MCP server: SQLite MCP Server

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 endpoint

  • LITEFARM_EMAIL - Login email

  • LITEFARM_PASSWORD - Login password

  • DATABASE_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"
    }
  }
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language interaction with local SQLite databases through Claude Desktop, translating plain English queries into SQL for data analysis and exploration.
      3
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables connecting to any SQL database, exploring schemas, running queries, and visualizing results with interactive charts from Claude Desktop.
      MIT