Back to Home
Bundelkund icon

Litefarm-mcp-server-n8n

by Bundelkund

Overview

An MCP server for LiteFarm, enabling n8n workflows or Claude Desktop to automate farm management tasks and perform direct database operations via HTTP or stdio.

Installation

Run Command
npm start

Environment Variables

  • LITEFARM_API_URL
  • LITEFARM_EMAIL
  • LITEFARM_PASSWORD
  • TRANSPORT
  • PORT
  • DB_HOST
  • DB_PORT
  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • CHARACTER_LIMIT

Security Notes

CRITICAL: The `db_execute_sql` tool directly executes arbitrary SQL queries provided as input (`client.query(sql)` in `db-tools.ts`). This is a severe SQL injection vulnerability if the `sql` input is not strictly controlled or validated. A malicious actor (e.g., via prompt injection to an LLM or direct tool invocation) could execute DDL (CREATE TABLE, DROP TABLE, etc.), delete/modify data, or perform other arbitrary database commands. Although the documentation mentions read/write only, the code does not enforce this. Test scripts have hardcoded login credentials, which is a minor risk for non-production use.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-02

Tags

MCPLiteFarmn8nAutomationFarmingAgriculturePostgreSQL