@supcon-international/node-red-mcp-server
Model Context Protocol (MCP) server for Node-RED that allows language models to interact with Node-RED through a standardized API.
README
@supcon-international/node-red-mcp-server
Model Context Protocol (MCP) server for Node-RED — allows language models (like Claude, GPT) to interact with Node-RED through a standardized API.
This is an enhanced version based on karavaev-evgeniy/node-red-mcp-server
Description
node-red-mcp-server Node-RED-MCP-Server for handling complex Node-RED tasks autonomously
Enhanced Key Features
- Retrieve and update Node-RED flows via MCP
- Multi-version flow backup system with integrity validation
- Add detailed argument descriptions for tools, making it better for LLM usage and handling complicated tasks
- get available nodes information (name,help,module name) instead of raw code
- install new node via llm
- check module and node set module information and manage states
- Manage tabs and individual nodes
- Search for nodes by type or properties
- Access settings and runtime state
- Trigger inject nodes remotely
- Output and visualize flows and stats
Installation
Global Installation
npm install -g @supcon-international/node-red-mcp-server
Local Installation
npm install @supcon-international/node-red-mcp-server
Usage
Command Line
node-red-mcp --url http://localhost:1880 --token YOUR_TOKEN
Configuration via .env
Create a .env file:
NODE_RED_URL=http://localhost:1880
NODE_RED_TOKEN=YOUR_TOKEN
NODE_MCP_PREFIX=/api/v1 # Optional: API path prefix (e.g., /nodered-api /eventflow-api)
MCP_BACKUP_PATH=/custom/backup/path
MCP_MAX_BACKUPS=10
Then run:
node-red-mcp
Integration with Claude or Other LLMs
-
Start the MCP server or configure Claude Desktop to start it automatically with the tool configuration below.
-
Configure Claude Desktop:
- Open Claude Desktop app
- Go to Settings → Advanced → Tool Configuration
- Add a new tool configuration:
{
"node-red": {
"command": "npx",
"args": ["@supcon-international/node-red-mcp-server", "--verbose"],
"env(Optional,if None then use default value)": {
"NODE_RED_URL": "http://your-node-red-url:1880",
"NODE_RED_TOKEN": "your-token-if-needed",
"NODE_MCP_PREFIX": "/nodered-api",
"MCP_BACKUP_PATH": "/custom/backup/path",
"MCP_MAX_BACKUPS": "10"
}
}
}
or
{
"node-red": {
"command": "node",
"args": [
"/path/to/node-red-mcp-server/bin/node-red-mcp-server.mjs",
"--verbose"
],
"env(Optional,if None then use default value)": {
"NODE_RED_URL": "http://your-node-red-url:1880",
"NODE_RED_TOKEN": "your-token-if-needed",
"NODE_MCP_PREFIX": "/nodered-api",
"MCP_BACKUP_PATH": "/custom/backup/path",
"MCP_MAX_BACKUPS": "10"
}
}
}
- Replace
/path/to/node-red-mcp-serverwith the actual path to your installation - Update
NODE_RED_URLto point to your Node-RED instance - Set
NODE_RED_TOKENif your Node-RED instance requires authentication - Set
NODE_MCP_PREFIXif your Node-RED API is behind a reverse proxy or requires a path prefix (e.g.,/nodered-api,/eventflow-api). If not set, it defaults to the standard Node-RED API paths
- After configuration, Claude can interact with your Node-RED instance through the MCP tools.
For more information about the Model Context Protocol, visit the official MCP documentation.
Programmatic Usage
import { createServer } from "node-red-mcp-server";
const server = createServer({
nodeRedUrl: "http://localhost:1880",
nodeRedToken: "YOUR_TOKEN",
verbose: true,
});
await server.start();
Configuration Options
CLI Parameters
| Parameter | Short | Description |
|---|---|---|
--url |
-u |
Node-RED base URL |
--token |
-t |
API access token |
--verbose |
-v |
Enable verbose logging |
--backup-path |
Custom backup directory path | |
--max-backups |
Maximum number of backups to keep (default: 10) | |
--help |
-h |
Show help |
--version |
-V |
Show version number |
Environment Variables
| Variable | Description |
|---|---|
NODE_RED_URL |
URL of your Node-RED instance |
NODE_RED_TOKEN |
API access token |
MCP_BACKUP_PATH |
Custom backup directory path |
MCP_MAX_BACKUPS |
Maximum number of backups to keep |
NODE_MCP_PREFIX |
API path prefix for reverse proxy |
MCP Tools
Flow Tools
get-flows— Get all flowsupdate-flows— Update all flowsget-flow— Get a specific flow by IDupdate-flow— Update a specific flow by IDlist-tabs— List all tabs (workspaces)create-flow— Create a new flow tabdelete-flow— Delete a flow tabget-flows-state— Get deployment stateset-flows-state— Change deployment stateget-flows-formatted— Get human-readable flow listvisualize-flows— Generate graph-like view of flows
Node Tools
inject— Trigger an inject nodeget-available-nodes— List available node summary information (name help-doc module)install-node-module- install new node moduleget-node-detailed-info— Detailed info about a node moduleget-node-set-detailed-info- Detailed source code about a node module settoggle-node-module— Enable/disable a node moduletoggle-node-module-set- Enable/disable a node module setfind-nodes-by-type— Locate nodes by typesearch-nodes— Find nodes by name or property
Backup Tools
backup-flows— Create a named backup of current flows with optional reasonlist-backups— List all available flow backups with detailsget-backup-flows— Get the specific flows content from a backup by namebackup-health— Check backup system health and provide recommendations
Settings Tools
get-settings— Get Node-RED runtime settingsget-diagnostics— Fetch diagnostics info
Utility Tools
api-help— Show Node-RED API help
Requirements
- Node.js v16 or newer
- A running Node-RED instance with HTTP API access
License
MIT License Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。