Skip to main content
Glama
@smart-compost/mcp

@smart-compost/mcp

@smart-compost/mcp

MCP server for the Smart Compost platform. An LLM agent (Claude, Cursor, etc.) lists your processes/devices and pulls measurements as tools, using your x-api-key. Currently wraps the Integration API; named generically so more of the platform can be exposed over time.

Local stdio. Key stays on the client. The x-api-key is read from an env var and only ever leaves this process to call your own gateway. Nothing is proxied through a third party.

Tools

Six curated, read-only, workflow-oriented tools (not a 1:1 mirror of every endpoint). Discovery comes first so the agent can find IDs before asking for data. The server also ships top-level instructions telling the model to start with discovery.

Tool

Endpoint

Purpose

list_processes

GET /processes

Discover processes (with nested devices)

list_devices

GET /devices

Discover device ids

get_latest_device_readings

GET /data/{deviceId}

Quick poll, 5 most recent

get_latest_process_readings

GET /data/process/{processId}

Quick poll per process

get_device_measurements

GET /devices/{deviceId}/measurements

History, paginated

get_process_measurements

GET /processes/{processId}/measurements

History, all devices

Every tool is annotated read-only and idempotent, and declares an outputSchema. A result carries the response as structuredContent and the same JSON as text in content, so clients that read either one get the same data. The two list tools wrap their arrays as { "processes": [...] } and { "devices": [...] }, since structured content must be an object.

Errors come back as tool results with isError: true, the API's message, and the next step: on 401/403 generate a new key on the Integrations page; on 404 call list_devices or list_processes for a valid id; on 429 wait (the Retry-After delay when the API sends one).

Related MCP server: Agorus MCP Server

Protocol

Speaks MCP 2026-07-28 (server/discover, no handshake) and the 2025 revisions that open with initialize, from the same binary. The era is chosen per connection by what the client sends first, so clients that still open with initialize (Claude Desktop, Cursor) keep working unchanged.

Install

Add it in one line, no clone or build:

claude mcp add smart-compost \
  -e SMARTCOMPOST_API_KEY=sk_live_xxx \
  -- npx -y @smart-compost/mcp

Cursor / Windsurf / Claude Desktop (mcp.json):

{
  "mcpServers": {
    "smart-compost": {
      "command": "npx",
      "args": ["-y", "@smart-compost/mcp"],
      "env": { "SMARTCOMPOST_API_KEY": "sk_live_xxx" }
    }
  }
}

Config:

  • SMARTCOMPOST_API_KEY (required): your Integration API key (sk_live_...), generated on the Integrations page.

  • SMARTCOMPOST_API_BASE (optional): defaults to https://test.smartcompost.com.br/api. Use https://smartcompost.com.br/api for production.

Then ask the agent things like "list my composting processes" or "show the latest readings for device 666".

License

Apache-2.0

Available Tools

6 tools
get_device_measurementsDevice measurements (history, paginated)A
Read-only

Get historical measurements for a device with optional date range and pagination. If processId is omitted, the device's active process is used.

Inputs: deviceId (required), limit, offset, endDate, +2 more.

get_latest_device_readingsLatest device readings (quick poll)A
Read-only

Get the 5 most recent measurements for a device (subject to the 1-hour delay). Get a valid deviceId from list_devices or list_processes first.

Inputs: deviceId (required).

get_latest_process_readingsLatest process readings (quick poll)A
Read-only

Get the 5 most recent measurements per device in a process (subject to the 1-hour delay).

Inputs: processId (required).

get_process_measurementsProcess measurements (all devices, paginated)A
Read-only

Get measurements from all devices in a process, grouped by device. Optionally filter to specific deviceIds.

Inputs: processId (required), limit, offset, endDate, +2 more.

list_devicesList devicesA
Read-only

List all devices available to your API key, deduplicated by deviceId. Use a deviceId with get_latest_device_readings or get_device_measurements.

Inputs: no named parameters.

list_processesList processesA
Read-only

List all processes for your tenant (active and finished), each with the devices in it. Start here to discover processId and deviceId values for the other tools.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing tools (list_devices, list_processes) vs. measurement retrieval tools with scopes (device vs. process, historical vs. latest). No overlap.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case (e.g., get_device_measurements, list_processes). No mixing of conventions.

    Tool Count5/5

    6 tools are well-scoped for a read-only API focused on device/process measurements. Not too few nor too many; each tool serves a clear function.

    Completeness5/5

    The tool surface covers enumeration of devices and processes, retrieval of historical and latest measurements at both device and process levels. No obvious gaps for the domain.

    Related MCP Connectors

    Related MCP Servers