raptio-mcp
Enables MCP clients to monitor KegLand RAPT fermentation chambers and RaptPill hydrometers via the RAPT.io API, and to control temperature, PID settings, and profiles when mutating operations are explicitly enabled.
README
Disclaimer: This is an independent, community-built project and is not affiliated with, endorsed by, or supported by KegLand or RAPT.io. RAPT, RaptPill, and KegLand are trademarks of their respective owners, referenced here solely to describe compatibility. This software is provided as is, with no warranty of any kind — see
LICENSEfor full terms, including an additional plain-language disclaimer specific to this project's use of an unsupported third-party API.
RAPT.io MCP Server
An MCP (Model Context Protocol) server for monitoring and controlling KegLand RAPT devices — Fermentation Chambers and RaptPill hydrometers — via the RAPT.io API.
⚠️ Read-only by default. The RAPT.io API is unsupported and undocumented for most mutating operations (see Security & API usage notes below). This server refuses all
POSTrequests to the RAPT.io API unless an operator explicitly opts in viaRAPTIO_MCP_READ_ONLY=false.
Features
Fermentation Chamber
- List all fermentation chambers
- Get status (temperature, heating/cooling, PID, run times)
- Get telemetry history
- (when
RAPTIO_MCP_READ_ONLY=false) Set target temperature, enable/disable PID, configure PID parameters
RaptPill (Hydrometer)
- List all RaptPills
- Get status (gravity, temperature, battery level)
- Get telemetry history
General
- List all bonded devices
- Manage/view fermentation profiles
Several previously-available control tools (heating/cooling/fan/light toggles, hysteresis, compressor/mode-switch delay) have been removed pending verification of the underlying API endpoint. See Removed tools below.
Installation
Requirements
- Python 3.11+
- uv (recommended) or pip
With uv
uv sync --frozen
With pip
pip install -e .
Authentication
This server authenticates to the RAPT.io API using your RAPT.io username and an API Secret (not your account password).
- Log in to the RAPT Portal.
- Navigate to My Account → API Secrets (https://app.rapt.io/account/apisecrets).
- Click Add API Secret and record the value immediately — it is hashed server-side and cannot be retrieved again later.
Do not use your actual account password for
RAPT_API_SECRET. The API Secret is a separate, independently revocable credential — if it leaks, you can rotate it from the portal without touching your real account login.
Configuration
Set the following environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
RAPT_USERNAME |
yes | — | RAPT.io account email |
RAPT_API_SECRET |
yes | — | API Secret generated at app.rapt.io/account/apisecrets |
RAPTIO_MCP_AUTH_TOKEN |
yes | — | Shared-secret bearer token that MCP clients must send as Authorization: Bearer <token> |
RAPTIO_MCP_READ_ONLY |
no | true |
When true (default), all mutating (set_*) tool calls are refused before reaching the RAPT.io API. Set to false to allow the documented mutating endpoints (see Security & API usage notes) |
RAPTIO_MCP_ALLOWED_HOSTS |
recommended | (unset — validation disabled) | Comma-separated list of allowed Host header values (DNS-rebinding protection) |
RAPTIO_MCP_ALLOWED_ORIGINS |
recommended | (unset — validation disabled) | Comma-separated list of allowed Origin header values |
RAPTIO_MCP_HOST |
no | 0.0.0.0 |
Bind address |
RAPTIO_MCP_PORT |
no | 8000 |
Bind port |
RAPTIO_MCP_LOG_LEVEL |
no | INFO |
Python logging level |
Usage
Run directly (Streamable HTTP)
RAPT_USERNAME="you@example.com" \
RAPT_API_SECRET="your-api-secret" \
RAPTIO_MCP_AUTH_TOKEN="$(openssl rand -hex 32)" \
uv run raptio-mcp
The server listens on http://<RAPTIO_MCP_HOST>:<RAPTIO_MCP_PORT>/mcp
(Streamable HTTP transport, stateless, JSON responses). All requests to
/mcp require the bearer token above. /healthz is unauthenticated and
intended for orchestrator liveness/readiness probes.
Connecting an MCP client
Configure your MCP client to use the Streamable HTTP transport, e.g.:
claude mcp add --transport http raptio http://localhost:8000/mcp \
--header "Authorization: Bearer <your RAPTIO_MCP_AUTH_TOKEN>"
Earlier versions of this server used the stdio transport (for local subprocess use with Claude Desktop/Claude Code). As of
0.2.0the server runs exclusively over Streamable HTTP, which requires the bearer token above — there is no longer an implicit trust boundary from process ownership, so authentication is mandatory.
Available Tools
| Tool | Description | Mode |
|---|---|---|
get_bonded_devices |
List all bonded devices | read-only |
get_bonded_device |
Get a single device | read-only |
get_bonded_device_telemetry |
Get device telemetry | read-only |
get_fermentation_chambers |
List all fermentation chambers | read-only |
get_fermentation_chamber |
Get chamber status | read-only |
get_fermentation_chamber_telemetry |
Get chamber temperature history | read-only |
set_fermentation_chamber_temperature |
Set target temperature | mutating — requires RAPTIO_MCP_READ_ONLY=false |
set_fermentation_chamber_pid_enabled |
Enable/disable PID control | mutating — requires RAPTIO_MCP_READ_ONLY=false |
set_fermentation_chamber_pid |
Configure PID parameters | mutating — requires RAPTIO_MCP_READ_ONLY=false |
get_hydrometers |
List all RaptPills | read-only |
get_hydrometer |
Get RaptPill status | read-only |
get_hydrometer_telemetry |
Get gravity/temperature history | read-only |
get_profiles |
List all fermentation profiles | read-only |
get_profile |
Get profile details | read-only |
get_profile_types |
List available profile types | read-only |
While RAPTIO_MCP_READ_ONLY=true (default), the three mutating tools are
still listed (so their schemas remain discoverable) but every call
returns an explicit error instead of reaching the RAPT.io API.
Removed tools
The following tools existed in earlier versions but have been removed pending verification:
set_fermentation_chamber_heating_enabledset_fermentation_chamber_cooling_enabledset_fermentation_chamber_fan_enabledset_fermentation_chamber_light_enabledset_fermentation_chamber_cooling_hysteresisset_fermentation_chamber_heating_hysteresisset_fermentation_chamber_compressor_delayset_fermentation_chamber_mode_switch_delay
They all relied on POST /api/FermentationChambers/UpdateFermentationChamber,
an endpoint that does not appear in RAPT.io's published API
specification (https://api.rapt.io/swagger/v1/swagger.json) and has no
documented concurrency behavior. They will be reinstated only after the
endpoint's existence and safety have been confirmed against a live
account. (set_fermentation_chamber_light_enabled also previously sent
incorrect enum values — On/Off/Auto instead of the correct
AlwaysOn/AlwaysOff/Automatic — and will need that fix applied
before reinstatement too.)
Security & API usage notes
The RAPT.io public API is explicitly described by KegLand as unsupported:
"Access to the Api is unsupported. This means you will not get assistance from KegLand with regards to any issues you may encounter while using the Api... if you destroy a device through misuse of the Api, it will void your warranty... The Api (endpoints, parameters, response models etc.) is subject to change without notice." — https://docs.rapt.io/integrations/api-secrets
Given this, the server defaults to a conservative posture:
- Read-only by default (
RAPTIO_MCP_READ_ONLY=true) — no request that could change device state is sent unless explicitly enabled. - Only officially-documented endpoints are used for mutations —
SetTargetTemperature,SetPIDEnabled,SetPID— all confirmed present in RAPT.io's own published Swagger spec. - Undocumented endpoints are not used — see Removed tools.
- Authentication is mandatory on the HTTP transport (
RAPTIO_MCP_AUTH_TOKEN), since Streamable HTTP removes the implicit trust boundary that the previous stdio-subprocess model provided for free. - All mutating tool calls are audit-logged (tool name, arguments, outcome) to the server's structured logs.
If you choose to set RAPTIO_MCP_READ_ONLY=false, you are opting into
sending commands to physical brewing/fermentation hardware over an
API that KegLand may change or restrict without notice, and any damage
or account restriction resulting from that use is your responsibility
per KegLand's own terms above.
Authentication flow details
Internally, the server exchanges your RAPT_USERNAME and
RAPT_API_SECRET for a short-lived bearer token via OAuth2 Resource
Owner Password Credentials grant against https://id.rapt.io/connect/token,
per RAPT.io's documented flow. Tokens are cached in memory and refreshed
automatically ~30 seconds before expiry.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。