Smart Hydroponic MCP Server
Provides tools to interact with a PostgreSQL database storing hydroponic sensor data, including listing tables, describing table schemas, reading recent sensor entries, and querying aggregated time-series data.
Enables efficient time-series aggregation of hydroponic sensor data using TimescaleDB's time_bucket functionality.
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., "@Smart Hydroponic MCP ServerWhat's the average pH over the last 7 days?"
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.
Smart Hydroponic MCP Server
Proyek ini adalah sebuah Model Context Protocol (MCP) Server yang dikhususkan untuk berinteraksi dengan database sensor hidroponik (menggunakan PostgreSQL + TimescaleDB).
Apa itu MCP?
Model Context Protocol (MCP) adalah standar terbuka (open standard) yang memungkinkan asisten AI (seperti Claude) untuk terhubung secara aman dengan sumber data, tools, dan prompt eksternal. Melalui MCP, LLM dapat berinteraksi dengan sistem dan data lokal Anda menggunakan arsitektur client-server yang seragam.
Server ini mengekspos tools yang bisa digunakan oleh LLM (seperti Claude Desktop) untuk membaca data sensor terbaru dan melakukan agregasi secara dinamis.
Prasyarat
Python >= 3.14
uvPackage ManagerPostgreSQL dengan ekstensi TimescaleDB (termasuk dukungan untuk fitur native
UUIDv7pada fungsitime_bucket).
Related MCP server: mcp-db-server
Environment Variables
Salin file (atau buat) .env di root directory dan pastikan variabel-variabel berikut telah disetel:
HYDROPONIC_DB_HOST=127.0.0.1
HYDROPONIC_DB_PORT=5432
HYDROPONIC_DB_USER=your_db_user
HYDROPONIC_DB_PASSWORD=your_db_password
HYDROPONIC_DB_NAME=your_db_name
HYDROPONIC_DB_SCHEMA=public
HYDROPONIC_TABLE_NAME=hydroponic_dataInstalasi & Menjalankan Server
Proyek ini sepenuhnya mengelola dependencies melalui uv. Anda tidak perlu menggunakan pip install secara manual.
Untuk menjalankan server HTTP / FastMCP secara lokal, cukup gunakan:
uv run main.pyPerintah di atas akan secara otomatis memvalidasi environment (memastikan uv.lock sinkron), membuat .venv, dan menyalakan server uvicorn pada http://0.0.0.0:8000.
Integrasi dengan LLM Client (Contoh: Claude Desktop)
Untuk menyambungkan server ini ke aplikasi yang mendukung Model Context Protocol (seperti Claude Desktop), tambahkan konfigurasi berikut pada file pengaturan klien (contohnya claude_desktop_config.json):
Via UV Stdio (Disarankan untuk environment lokal yang aman):
{
"mcpServers": {
"smart-hydroponic": {
"command": "uv",
"args": [
"run",
"c:/path/to/your/project/smart-hydroponic-mcp/main.py"
],
"env": {
"HYDROPONIC_DB_USER": "your_db_user",
"HYDROPONIC_DB_PASSWORD": "your_db_password",
"HYDROPONIC_DB_NAME": "your_db_name",
"HYDROPONIC_DB_HOST": "127.0.0.1",
"HYDROPONIC_DB_PORT": "5432"
}
}
}
}Catatan: Pastikan Anda menyesuaikan path dan kredensial dengan environment mesin Anda.
Fitur (MCP Tools)
list_database_tables(): Menampilkan semua tabel yang ada dalam skema database.describe_database_table(table_name): Mendeskripsikan tipe data dan struktur dari sebuah tabel.read_hydroponic_table(limit): Membaca baris-baris data hidroponik terbaru (bisa diatur batas limitnya).get_latest_sensor_data(): Mengambil 1 entri sensor paling terakhir secara spesifik (cocok untuk dashboard real-time).get_sensor_data_summary(num_buckets, bucket_width): Agregasi time-series cerdas. LLM dapat menanyakan "Bagaimana rata-rata pH 7 hari terakhir?", dan tool ini akan memanfaatkan fiturtime_bucketdari TimescaleDB untuk langsung memberikan jawabannya secara efisien.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that gives AI agents direct read-only access to PostgreSQL databases, enabling natural language analytics through tools for schema exploration, querying, trend analysis, and data quality checks.Last updated115MIT
- Flicense-qualityCmaintenanceAn MCP server that exposes relational databases (PostgreSQL/MySQL) to AI agents with natural language to SQL query support.Last updated18
- Alicense-qualityBmaintenanceA read-only MCP server for PostgreSQL that enables safe database introspection and querying via natural language.Last updated484MIT
- Alicense-qualityCmaintenanceRead-only MCP server for SQL databases (SQLite/PostgreSQL) that enables listing tables, describing schemas, and executing SELECT queries with safety guardrails.Last updatedMIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
MCP server for managing Prisma Postgres.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ksm-aiot-dev/smart-hydroponic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server