Ditto HTTP API를 통해 사물, 속성, 정책, 연결 및 클러스터 관리 등 디지털 트윈을 관리할 수 있는 AI 에이전트 기능을 제공합니다.
다른 이름 nagarjunr/iot-mcp-servers, eclipse-ditto, eclipse-ditto-mcp-server
- 스타
- 0
- Tools
- —
- 다운로드, 30일
- 85
- 최신 버전
- 0.1.1
- 마지막 커밋
- 2026년 10월 31일
- 라이선스
- MIT
Eclipse Ditto MCP란?
Eclipse Ditto은(는) MCP server입니다. Ditto HTTP API를 통해 사물, 속성, 정책, 연결 및 클러스터 관리 등 디지털 트윈을 관리할 수 있는 AI 에이전트 기능을 제공합니다.
프로젝트 README에서 생성된 요약
Eclipse Ditto MCP server 정보
이 Eclipse Ditto MCP server를 사용하면 AI 에이전트를 통해 디지털 트윈과 IoT 디바이스 상태를 관리할 수 있습니다. Eclipse Ditto HTTP API 전체에 대한 브릿지 역할을 수행하여 사용자가 사물, 속성, 기능 및 정책과 상호작용할 수 있도록 지원합니다. 이 server는 Bosch IoT Things와 같은 상용 플랫폼을 포함하여 개방형 프로토콜을 따르는 모든 배포 환경에서 작동하도록 설계되었습니다.
개발자는 DITTO_BASE_URL과 같은 환경 변수를 설정하여 로컬 환경 또는 원격 게이트웨이를 대상으로 이 server를 사용할 수 있습니다. 인증은 Basic auth 자격 증명 또는 bearer token을 통해 처리됩니다. 연결성 및 클러스터 구성과 관련된 고급 관리 작업에는 별도의 DevOps 자격 증명이 필요합니다. 도구 세트에는 RQL 표현식을 사용하여 사물을 검색하고, 디바이스에 라이브 메시지를 전송하며, 연결 메트릭을 관리하는 특정 명령이 포함되어 있습니다.
모든 삭제 작업에 대한 확인 단계와 레이스 컨디션이 없는 생성 로직을 통해 도구 설계 단계부터 안전성을 구축했습니다. 또한 지정된 기간 동안 변경 사항을 폴링하여 라이브 이벤트 스트림을 근사화하는 방법도 제공합니다. 이를 통해 일상적인 디바이스 관리부터 저수준 DevOps 관리까지 폭넓게 활용할 수 있는 다재다능한 인터페이스를 제공합니다.
활용 사례
- 1디바이스 센서 데이터 업데이트AI에게 디지털 트윈의 특정 속성이나 기능을 수정하도록 지시할 수 있습니다.
- 2원격 디바이스 동작 트리거에이전트가 사물이나 기능에 라이브 메시지를 전송하여 특정 동작을 실행할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Eclipse Ditto MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Eclipse Ditto MCP 설치
$ claude mcp add --env 'DITTO_BASE_URL=<DITTO_BASE_URL>' --env 'DITTO_BEARER_TOKEN=<YOUR_DITTO_BEARER_TOKEN>' --env 'DITTO_DEVOPS_PASSWORD=<YOUR_DITTO_DEVOPS_PASSWORD>' --env 'DITTO_PASSWORD=<YOUR_DITTO_PASSWORD>' eclipse-ditto -- uvx eclipse-ditto-mcp-serverCursor에 Eclipse Ditto MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"eclipse-ditto": {
"command": "uvx",
"args": [
"eclipse-ditto-mcp-server"
],
"env": {
"DITTO_BASE_URL": "<DITTO_BASE_URL>",
"DITTO_BEARER_TOKEN": "<YOUR_DITTO_BEARER_TOKEN>",
"DITTO_DEVOPS_PASSWORD": "<YOUR_DITTO_DEVOPS_PASSWORD>",
"DITTO_PASSWORD": "<YOUR_DITTO_PASSWORD>"
}
}
}
}VS Code에 Eclipse Ditto MCP 설치
.vscode/mcp.json
{
"servers": {
"eclipse-ditto": {
"type": "stdio",
"command": "uvx",
"args": [
"eclipse-ditto-mcp-server"
],
"env": {
"DITTO_BASE_URL": "<DITTO_BASE_URL>",
"DITTO_BEARER_TOKEN": "<YOUR_DITTO_BEARER_TOKEN>",
"DITTO_DEVOPS_PASSWORD": "<YOUR_DITTO_DEVOPS_PASSWORD>",
"DITTO_PASSWORD": "<YOUR_DITTO_PASSWORD>"
}
}
}
}VS Code CLI에 Eclipse Ditto MCP 설치
$ code --add-mcp '{"name":"eclipse-ditto","type":"stdio","command":"uvx","args":["eclipse-ditto-mcp-server"],"env":{"DITTO_BASE_URL":"<DITTO_BASE_URL>","DITTO_BEARER_TOKEN":"<YOUR_DITTO_BEARER_TOKEN>","DITTO_DEVOPS_PASSWORD":"<YOUR_DITTO_DEVOPS_PASSWORD>","DITTO_PASSWORD":"<YOUR_DITTO_PASSWORD>"}}'Claude Desktop에 Eclipse Ditto MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"eclipse-ditto": {
"command": "uvx",
"args": [
"eclipse-ditto-mcp-server"
],
"env": {
"DITTO_BASE_URL": "<DITTO_BASE_URL>",
"DITTO_BEARER_TOKEN": "<YOUR_DITTO_BEARER_TOKEN>",
"DITTO_DEVOPS_PASSWORD": "<YOUR_DITTO_DEVOPS_PASSWORD>",
"DITTO_PASSWORD": "<YOUR_DITTO_PASSWORD>"
}
}
}
}Codex에 Eclipse Ditto MCP 설치
$ codex mcp add eclipse-ditto --env 'DITTO_BASE_URL=<DITTO_BASE_URL>' --env 'DITTO_BEARER_TOKEN=<YOUR_DITTO_BEARER_TOKEN>' --env 'DITTO_DEVOPS_PASSWORD=<YOUR_DITTO_DEVOPS_PASSWORD>' --env 'DITTO_PASSWORD=<YOUR_DITTO_PASSWORD>' -- uvx eclipse-ditto-mcp-serverCodex config.toml에 Eclipse Ditto MCP 설치
~/.codex/config.toml
[mcp_servers.eclipse-ditto] command = "uvx" args = ["eclipse-ditto-mcp-server"] [mcp_servers.eclipse-ditto.env] DITTO_BASE_URL = "<DITTO_BASE_URL>" DITTO_BEARER_TOKEN = "<YOUR_DITTO_BEARER_TOKEN>" DITTO_DEVOPS_PASSWORD = "<YOUR_DITTO_DEVOPS_PASSWORD>" DITTO_PASSWORD = "<YOUR_DITTO_PASSWORD>"
Gemini CLI에 Eclipse Ditto MCP 설치
$ gemini mcp add -s user -e 'DITTO_BASE_URL=<DITTO_BASE_URL>' -e 'DITTO_BEARER_TOKEN=<YOUR_DITTO_BEARER_TOKEN>' -e 'DITTO_DEVOPS_PASSWORD=<YOUR_DITTO_DEVOPS_PASSWORD>' -e 'DITTO_PASSWORD=<YOUR_DITTO_PASSWORD>' eclipse-ditto uvx -- eclipse-ditto-mcp-serverGemini settings.json에 Eclipse Ditto MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"eclipse-ditto": {
"command": "uvx",
"args": [
"eclipse-ditto-mcp-server"
],
"env": {
"DITTO_BASE_URL": "<DITTO_BASE_URL>",
"DITTO_BEARER_TOKEN": "<YOUR_DITTO_BEARER_TOKEN>",
"DITTO_DEVOPS_PASSWORD": "<YOUR_DITTO_DEVOPS_PASSWORD>",
"DITTO_PASSWORD": "<YOUR_DITTO_PASSWORD>"
}
}
}
}구성
DITTO_BASE_URL필수Base URL of the Ditto HTTP API, e.g. http://localhost:8080
DITTO_BEARER_TOKEN비밀Bearer token, used instead of Basic auth for the same API
DITTO_DEVOPS_PASSWORD비밀Basic auth password for the separate DevOps/Connections realm
DITTO_PASSWORD비밀Basic auth password for the Things/Policies/Messages/Search API
DITTO_DEVOPS_USERNAMEBasic auth username for the separate DevOps/Connections realm
DITTO_USERNAMEBasic auth username for the Things/Policies/Messages/Search API
| 이름 | 설명 | 유형 |
|---|---|---|
| DITTO_BASE_URL | Base URL of the Ditto HTTP API, e.g. http://localhost:8080 | 필수 |
| DITTO_BEARER_TOKEN | Bearer token, used instead of Basic auth for the same API | 비밀 |
| DITTO_DEVOPS_PASSWORD | Basic auth password for the separate DevOps/Connections realm | 비밀 |
| DITTO_PASSWORD | Basic auth password for the Things/Policies/Messages/Search API | 비밀 |
| DITTO_DEVOPS_USERNAME | Basic auth username for the separate DevOps/Connections realm | |
| DITTO_USERNAME | Basic auth username for the Things/Policies/Messages/Search API |
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능nagarjunr/iot-mcp-servers is public and reachablegithub.com/nagarjunr/iot-mcp-servers ↗통과
- 패키지가 이 저장소를 소스로 명시eclipse-ditto-mcp-server names nagarjunr/iot-mcp-servers as sourcepypi.org/project/eclipse-ditto-mcp-server/ ↗통과
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-10-31github.com/nagarjunr/iot-mcp-servers ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from eclipse-ditto-mcp-server통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음65 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Eclipse Ditto MCP Server
A Model Context Protocol (MCP) server for Eclipse Ditto — the open-source (EPL-2.0) digital twin framework. It exposes Ditto's HTTP API as MCP tools so an AI agent can manage devices ("things"), their attributes/features, policies, connections, and cluster admin — the full Ditto HTTP API surface.
Since Bosch IoT Things and other commercial IoT platforms are built on Ditto's open protocol, this server also works against those deployments — nothing in the code is vendor-specific.
Built with FastMCP.
Tools
Things
| Tool | Description |
|---|---|
list_things(namespaces, filter, fields, limit) |
Search/list things. filter is a Ditto RQL expression, e.g. eq(attributes/location,"lab-1"). |
count_things(namespaces, filter) |
Count things matching a filter without fetching them. |
get_things(thing_ids, fields) |
Bulk-fetch multiple things by ID in one request. |
get_thing(thing_id, fields) |
Fetch the full digital twin for one thing. |
put_thing(thing_id, thing, overwrite=False) |
Create a thing, or replace one with overwrite=True. |
patch_thing(thing_id, patch) |
Partially update a thing via RFC-7396 JSON Merge Patch. |
delete_thing(thing_id, confirm=False) |
Delete a thing. Irreversible. |
get_thing_policy_id / set_thing_policy_id |
Read/repoint the policy controlling a thing. |
get_thing_definition / set_thing_definition / delete_thing_definition |
Manage a thing's WoT/model definition. |
whoami() |
Return the identity Ditto authenticated this connector as — useful to sanity-check credentials. |
Attributes & Features
| Tool | Description |
|---|---|
get_thing_attributes(thing_id, path=None) |
Get all attributes, or one by JSON pointer path. |
set_thing_attributes(thing_id, value, path=None, overwrite=False) |
Set the whole attributes object, or one attribute. |
delete_thing_attributes(thing_id, path=None, confirm=False) |
Delete attributes (whole object or one path). |
get_thing_features(thing_id) |
Get all features (sensor/actuator state). |
get_feature / put_feature / delete_feature |
Read/create-replace/delete one whole feature. |
get_feature_properties / set_feature_properties / delete_feature_properties |
Read/write/delete feature properties or desiredProperties, whole or by path. |
get_feature_definition / set_feature_definition / delete_feature_definition |
Manage a feature's definition. |
Messages
| Tool | Description |
|---|---|
send_message(thing_id, subject, payload, feature_id=None, direction="inbox", timeout=10) |
Send a live message to/from a thing or feature (e.g. invoke a device operation). |
claim_thing(thing_id, payload=None, timeout=10) |
Send a claim message to gain access to a thing. |
Policies
| Tool | Description |
|---|---|
get_policy / put_policy / delete_policy |
Read/create-replace/delete a policy. |
get_policy_entries(policy_id, label=None) |
Read all entries, or one by label. |
set_policy_entry / delete_policy_entry |
Create-replace/delete one policy entry. |
Connectivity & DevOps (require DITTO_DEVOPS_USERNAME/DITTO_DEVOPS_PASSWORD)
Ditto's Connections API and DevOps API (log levels, cluster config, piggyback commands) sit behind a separate "devops" Basic-auth realm on the gateway, independent of the policy-based auth used for things/policies.
| Tool | Description |
|---|---|
list_connections / get_connection |
List/fetch connection configs. |
create_connection(connection, dry_run=False) |
Create a connection (ID generated by Ditto). |
update_connection(connection_id, connection) |
Update an existing connection (404 if it doesn't exist). |
delete_connection(connection_id, confirm=False) |
Delete a connection. |
get_connection_status / get_connection_metrics / get_connection_logs |
Inspect a connection's live state. |
send_connection_command(connection_id, command) |
Open/close/reset-metrics/enable-logs/reset-logs. |
get_logging_config / set_logging_config |
Read/set cluster log levels. |
get_devops_config(path) |
Read cluster-wide runtime config. |
send_devops_piggyback(command, service_name=None, instance_index=None) |
Low-level admin command — Ditto's most powerful, least-guarded API. Use with care. |
Live events
| Tool | Description |
|---|---|
poll_thing_changes(thing_ids, namespaces, filter, fields, duration_seconds=10, max_events=50) |
Open a short-lived SSE connection and collect live thing-change events. A request/response approximation of Ditto's persistent change feed — see caveat below. |
Safety conventions
- Create vs. replace: every
put_*/set_*/create_*tool defaults tooverwrite=False, using Ditto'sIf-None-Match: *header so create-only is race-free (not a check-then-set). Passoverwrite=Trueto replace existing data. - Deletes are confirm-gated: every
delete_*tool requiresconfirm=True. There is no bulk/cascading delete. - Not covered (deliberately): WoT Web-of-Things descriptor endpoints (
/.well-known/wot,/devops/wot/*), and fine-grained policy sub-resources (subjects/{id},resources/{path},imports, token-integration actions) — whole-entryset_policy_entry/get_policy_entriescovers the common case. Add these later if you need them.
Configuration
| Env var | Required | Description |
|---|---|---|
DITTO_BASE_URL |
Yes | Base URL of the Ditto HTTP API, e.g. http://localhost:8080 or your gateway's public URL. |
DITTO_USERNAME / DITTO_PASSWORD |
No | Basic auth for the Things/Policies/Messages/Search API. Typical for self-hosted Ditto (nginx demo setup uses ditto/ditto). |
DITTO_BEARER_TOKEN |
No | Bearer token, used instead of Basic auth for the same API. Typical for OAuth2-fronted deployments (e.g. Bosch IoT Things). |
DITTO_DEVOPS_USERNAME / DITTO_DEVOPS_PASSWORD |
No | Basic auth for the separate DevOps/Connections realm (self-hosted default: devops/foobar). Required only for the Connectivity and DevOps tools. |
If both DITTO_BEARER_TOKEN and Basic auth credentials are set, the bearer token takes precedence. If neither is set, requests are sent unauthenticated (only works if your Ditto instance allows anonymous/pre-authenticated access).
Running locally
uv sync
export DITTO_BASE_URL=http://localhost:8080
export DITTO_USERNAME=ditto
export DITTO_PASSWORD=ditto
export DITTO_DEVOPS_USERNAME=devops # only needed for connectivity/devops tools
export DITTO_DEVOPS_PASSWORD=foobar
uv run dittomcpserver.py
See mcp.json for ready-to-use client configs (stdio and Docker).
Testing against a real Ditto instance
This repo's design principles call for testing against a real instance rather than mocks. docker-compose.yml (adapted from Ditto's official example, trimmed to the services this connector needs) spins up a full local Ditto stack — MongoDB, the Ditto microservices, and an nginx front door with Basic auth.
docker compose up -d # start Ditto on http://localhost:8080 (user: ditto / pass: ditto; devops: devops / foobar)
uv run pytest -v # tests/conftest.py also starts/stops the stack automatically
docker compose down # stop it manually if you started it yourself
The 47 tests cover every tool group (things, attributes/features, messages, policies, connectivity, devops, live events) against this real stack, including delete/confirm gating and create/overwrite gating.
A note on the live-events approximation
poll_thing_changes opens Ditto's SSE change feed for a bounded window instead of holding a persistent subscription (which doesn't map cleanly onto a single MCP tool call). Ditto's SSE stream sends periodic empty data: keepalive lines even when nothing has changed — the tool checks its deadline on every line received, including keepalives, so it reliably returns within duration_seconds regardless of how chatty or quiet the stream is.
License notes
docker-compose.yml and the files under docker/ are adapted from the Eclipse Ditto project (EPL-2.0) and are used here only to spin up a local test instance — they are not part of the MCP server itself.
Eclipse Ditto MCP 질문
Eclipse Ditto MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env 'DITTO_BASE_URL=<DITTO_BASE_URL>' --env 'DITTO_BEARER_TOKEN=<YOUR_DITTO_BEARER_TOKEN>' --env 'DITTO_DEVOPS_PASSWORD=<YOUR_DITTO_DEVOPS_PASSWORD>' --env 'DITTO_PASSWORD=<YOUR_DITTO_PASSWORD>' eclipse-ditto -- uvx eclipse-ditto-mcp-server를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Eclipse Ditto MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
실시간 이벤트 모니터링을 지원하나요?
네, 수명이 짧은 SSE 연결을 사용하여 실시간 사물 변경 이벤트를 폴링할 수 있습니다.