Server Thingpark
БесплатноНе проверенAn MCP server that enables AI assistants to manage LoRaWAN devices on Actility ThingPark, allowing device listing, details, and downlink command sending via nat
Описание
An MCP server that enables AI assistants to manage LoRaWAN devices on Actility ThingPark, allowing device listing, details, and downlink command sending via natural language.
README
A Model Context Protocol (MCP) server that connects AI assistants to the Actility ThingPark LoRaWAN network server. Manage devices and send downlink commands through natural language.
Works with ThingPark Community, ThingPark Enterprise, and other deployments that expose the DX Core API.
Tools
| Tool | Description |
|---|---|
list_devices |
List all registered LoRaWAN devices with DevEUI, class, and profile |
get_device |
Get detailed device information by DevEUI |
send_downlink |
Send a raw hex downlink payload to any device |
get_downlink_queue |
View pending downlink messages for a device |
invalidate_token |
Clear cached OAuth token (troubleshooting) |
These tools work with any LoRaWAN device on your ThingPark account.
Sensor Helpers
The server auto-loads sensor-specific helper modules from sensors/. These provide high-level tools for configuring specific sensors without needing to know the raw hex payload format.
See sensors/SUPPORTED.md for the list of supported sensors and how to add your own.
| Sensor | Manufacturer | Tools |
|---|---|---|
| LHT65N-VIB | Dragino | Transmit interval, vibration mode, sensitivity, alarm |
Installation
Using uv (recommended)
When using uv no specific installation is needed. Use uvx to directly run the server:
uvx mcp-server-thingpark
Using pip
pip install mcp-server-thingpark
After installation, run it as:
mcp-server-thingpark
From source
git clone https://github.com/bbruhn91/mcp-server-thingpark.git
cd mcp-server-thingpark
python -m venv .venv
source .venv/bin/activate
pip install -e .
Configuration
The server requires three environment variables for ThingPark API authentication:
| Variable | Description | Example |
|---|---|---|
THINGPARK_URL |
ThingPark platform base URL | https://community.thingpark.io/thingpark |
THINGPARK_CLIENT_ID |
API client ID | sub-XXXXXXXXX/your-username |
THINGPARK_CLIENT_SECRET |
API client secret | your-client-secret |
Getting API Credentials
- Log in to your ThingPark platform (e.g. community.thingpark.io)
- Go to your account settings
- Create an API client with
client_credentialsgrant type - Note the client ID (
sub-XXXXXXXXX/username) and client secret
Usage with Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"thingpark": {
"command": "uvx",
"args": ["mcp-server-thingpark"],
"env": {
"THINGPARK_URL": "https://community.thingpark.io/thingpark",
"THINGPARK_CLIENT_ID": "sub-XXXXXXXXX/your-username",
"THINGPARK_CLIENT_SECRET": "your-client-secret"
}
}
}
}
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"thingpark": {
"command": "uvx",
"args": ["mcp-server-thingpark"],
"env": {
"THINGPARK_URL": "https://community.thingpark.io/thingpark",
"THINGPARK_CLIENT_ID": "sub-XXXXXXXXX/your-username",
"THINGPARK_CLIENT_SECRET": "your-client-secret"
}
}
}
}
Usage with Claude Code
Add to ~/.claude/.mcp.json:
{
"mcpServers": {
"thingpark": {
"command": "uvx",
"args": ["mcp-server-thingpark"],
"env": {
"THINGPARK_URL": "https://community.thingpark.io/thingpark",
"THINGPARK_CLIENT_ID": "sub-XXXXXXXXX/your-username",
"THINGPARK_CLIENT_SECRET": "your-client-secret"
}
}
}
}
Usage with VS Code
Install the MCP extension and add to your VS Code settings or .vscode/mcp.json:
{
"mcp": {
"servers": {
"thingpark": {
"command": "uvx",
"args": ["mcp-server-thingpark"],
"env": {
"THINGPARK_URL": "https://community.thingpark.io/thingpark",
"THINGPARK_CLIENT_ID": "sub-XXXXXXXXX/your-username",
"THINGPARK_CLIENT_SECRET": "your-client-secret"
}
}
}
}
}
Examples
> List all my LoRaWAN devices
> Show me details for device A84041F21867E433
> Send downlink 0100003C to device A84041F21867E433 on FPort 2
> Set the transmit interval to 60 seconds on my vibration sensor
Adding Support for a New Sensor
- Create
src/mcp_server_thingpark/sensors/<sensor_name>.pywith aregister(mcp, send_downlink)function:
def register(mcp, send_downlink):
@mcp.tool()
def my_sensor_set_interval(dev_eui: str, seconds: int) -> str:
"""Set transmit interval for MySensor."""
payload = f"01{seconds:06X}"
return send_downlink(dev_eui, payload, fport=2)
- Create
src/mcp_server_thingpark/sensors/<sensor_name>.mdwith the downlink command reference - Add a row to
src/mcp_server_thingpark/sensors/SUPPORTED.md - Submit a PR
The module is auto-discovered on startup — no need to edit server.py.
Debugging
You can use the MCP inspector to debug the server:
npx @modelcontextprotocol/inspector uvx mcp-server-thingpark
Increase logging verbosity with the -v flag:
mcp-server-thingpark -v # INFO level
mcp-server-thingpark -vv # DEBUG level
Technical Notes
DevEUI vs ref
The ThingPark DX Core API uses an internal ref identifier in URL paths, not the DevEUI. This server maps DevEUI to ref automatically — you always use DevEUIs.
Authentication
OAuth2 client credentials flow against the ThingPark Keycloak OIDC endpoint. Tokens are cached and refreshed automatically.
License
This project is licensed under the MIT License — see the LICENSE file for details.
Установка Server Thingpark
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/bbruhn91/mcp-server-thingparkFAQ
Server Thingpark MCP бесплатный?
Да, Server Thingpark MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Server Thingpark?
Нет, Server Thingpark работает без API-ключей и переменных окружения.
Server Thingpark — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Server Thingpark в Claude Desktop, Claude Code или Cursor?
Открой Server Thingpark на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Server Thingpark with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
