simala-mcp

simala-mcp

A read-only MCP server for trending SIMALA lab parameters from production data, enabling searching parameters and retrieving time-series readings.

Category
Visit Server

README

simala-mcp

A read-only MCP server for trending SIMALA (Analisa Lab) parameters from pkt-ismart-web's production data — SQL Server lab-record index + MongoDB readings. Sibling of ismart-mcp; plugs into my-agent, Claude Code, or Claude Desktop.

What SIMALA is

SIMALA is the lab-analysis system. A parameter is one measurement: a test (spec_uji, e.g. "pH", "NH₃") performed on a sample point (item, e.g. tag P-211 / "Cooling Water"), inside a plant section (bagian) under a lab type (jenis_lab, e.g. "Lab Mutu"). Each parameter is addressed by a composite key:

id_bagian | id_jenis_lab | id_item | id_spec_uji

Setup

python3.13 -m venv .venv && .venv/bin/pip install -r requirements.txt

(Python ≥3.10 and pymongo==4.10.1 are required — the target MongoDB is 4.0.)

Connect it

Add to mcp.json (my-agent's plug panel: paste this whole block). Credentials default to the values in pkt-ismart-web's SIMALA config; override via env.

{"mcpServers": {
  "simala": {
    "command": "/Users/ilham/Documents/Applications/simala-mcp/.venv/bin/python",
    "args": ["/Users/ilham/Documents/Applications/simala-mcp/server.py"]
  }
}}

Environment (production / beta)

Defaults to production. Set SIMALA_ENV=beta (in the mcp.json env block) to read the beta databases — SQL 12.7.2.145/simala_beta (elogsheet_u) + Mongo 12.7.2.191/simala_beta. Granular SIMALA_SQL_* / SIMALA_MONGO_* env vars still override either environment.

"simala": { "command": "…", "args": ["…"], "env": { "SIMALA_ENV": "beta" } }

Tools

Tool What it does
list_labs() Lab types (jenis lab) + plants and their sections, to navigate.
search_parameters(query, plant?, jenis_lab?, limit?) Find parameters by sample-point tag/description or test name; returns the key for trending.
trend_parameter(key, date_from, date_to, include_unposted?) [datetime, value] daily series + min/avg/max over a range (≤62 days).
parameter_snapshot(keys[], lookback_days?, include_unposted?) Latest reading per parameter.

Typical flow: search_parameters("pH", plant="Pabrik 4") → take a keytrend_parameter(key, "2026-06-06", "2026-07-06").

Posted vs draft. By default only posted lab records (IS_POSTING = 1, the official data) are read. Pass include_unposted=true to also see records not yet posted.

Safety

Every SQL path is a parameterized SELECT behind a guard that rejects anything else; there are no write paths. Both target databases are shared production — this server only reads. See FINDINGS.md for the data model and why trending resolves lab-record ids in SQL Server before fetching readings from Mongo by id_analisa_lab (never range-scanning Mongo).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured