Node-RED MCP Server
Provides tools to manage Node-RED instances via the Admin API v2, including creating, updating, validating, and deleting flows; controlling runtime state; managing installed node modules; reading and deleting context data; retrieving runtime settings and diagnostics; and triggering inject/debug nodes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Node-RED MCP Server get all flows from my Node-RED instance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Node-RED MCP Server
MCP server for Node-RED workflow management. Provides AI assistants with 17 tools to manage flows, node modules, context stores, and runtime settings through the Node-RED Admin API v2.
Installation
Standalone Node-RED:
claude mcp add node-red -e NODE_RED_URL=http://localhost:1880 -e NODE_RED_TOKEN=your-api-token -- npx mcp-node-redHome Assistant Add-on (Basic Auth):
claude mcp add node-red -e NODE_RED_URL=http://username:password@homeassistant.local:1880 -- npx mcp-node-redAdd to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or ~/.config/claude/claude_desktop_config.json (Linux):
{
"mcpServers": {
"node-red": {
"command": "npx",
"args": ["mcp-node-red"],
"env": {
"NODE_RED_URL": "http://localhost:1880",
"NODE_RED_TOKEN": "your-api-token"
}
}
}
}Restart Claude Desktop to load the server.
Related MCP server: node-red-contrib-mcp-server
Configuration
Environment Variables
NODE_RED_URL(required): Your Node-RED instance URLNODE_RED_TOKEN(optional): API token for authentication
Environment Files
The server loads environment variables from .env and .env.local files in the working directory:
.env-- Base defaults (tracked in version control if desired).env.local-- Local overrides (gitignored, never committed)
Precedence (highest to lowest):
Real environment variables (e.g., set via shell or MCP config)
.env.local.env
Copy .env.example as a starting template:
cp .env.example .envNode-RED Setup
Standalone Node-RED
Enable Admin API in Node-RED
settings.js:
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "$2a$08$...", // bcrypt hash
permissions: "*"
}]
}Generate API token:
curl -X POST http://localhost:1880/auth/token \
-H "Content-Type: application/json" \
-d '{"client_id":"node-red-admin","grant_type":"password","scope":"*","username":"admin","password":"your-password"}'Home Assistant Add-on
The Home Assistant Node-RED add-on uses Basic Auth with your Home Assistant credentials:
# Test connection
curl http://USERNAME:PASSWORD@homeassistant.local:1880/flowsConfiguration:
{
"mcpServers": {
"node-red": {
"command": "npx",
"args": ["mcp-node-red"],
"env": {
"NODE_RED_URL": "http://admin:your-ha-password@homeassistant.local:1880"
}
}
}
}Note: No NODE_RED_TOKEN needed - credentials are in the URL.
Features
Flow Management
get_flows: Retrieve all flows from your Node-RED instance
create_flow: Create new flows via POST /flow
update_flow: Update individual flows safely via PUT /flow/:id
validate_flow: Validate flow configuration without deploying
delete_flow: Delete a flow and all its nodes by ID
Runtime Control
get_flow_state: Get runtime state of flows (started/stopped)
set_flow_state: Start or stop all flows in the runtime
Node Module Management
get_nodes: List all installed node modules with versions and status
install_node: Install a node module from the npm registry
set_node_module_state: Enable or disable an installed node module
remove_node_module: Uninstall a node module from Node-RED
Context Store
get_context: Read context data at global, flow, or node scope
delete_context: Delete context values at any scope
Runtime Info
get_settings: Get Node-RED runtime settings including version
get_diagnostics: Get system diagnostics (Node.js, OS, memory)
Node Interaction
trigger_inject: Trigger an inject node (same as clicking the button)
set_debug_state: Enable or disable a debug node's output
Usage
Once configured, ask your AI assistant natural language questions:
Get all flows from my Node-RED instanceCreate a new flow with label "Temperature Monitor"Update flow "flow1" to change its label to "New Name"Delete the flow with ID "flow1"What node modules are installed?Install the node-red-contrib-mqtt moduleTrigger the inject node to test my flowShow me the global context dataGet the Node-RED runtime settings and versionSafety Features
Individual flow updates: Uses PUT /flow/:id to update only the specified flow
No accidental deletions: Other flows remain completely untouched
Validation: All flow configurations are validated before sending to Node-RED
Read-only by default: Only modifies flows when explicitly requested
Module management guards: Core modules cannot be removed; enable/disable is reversible
Scoped context operations: Context reads and deletes are scoped to specific keys
Development
See docs/development.md for development setup, testing, and contribution guidelines.
License
MIT
Available Tools
17 toolscreate_flowB
Create a new flow using POST /flow. Adds a new flow to Node-RED. Flow ID can be provided or will be auto-generated.
Inputs: flow (required).
delete_contextC
Delete a context store value at global, flow, or node scope.
Inputs: key (required), scope (required), id, store.
delete_flowB
Delete a flow from Node-RED by ID. Removes the flow and all its nodes.
Inputs: flowId (required).
get_contextA
Read context store data at global, flow, or node scope. Omit key to list all keys.
Inputs: scope (required), id, key, store.
get_diagnosticsA
Get diagnostic information about the Node-RED runtime. Returns system info including Node.js version, OS details, and memory usage.
Inputs: no named parameters.
get_flowsB
Get all flows from Node-RED instance. Returns current flows configuration including revision number.
Inputs: no named parameters.
get_flow_stateA
Get the runtime state of Node-RED flows. Returns whether flows are currently started or stopped. Requires runtimeState to be enabled in Node-RED settings.
Inputs: no named parameters.
get_nodesB
Get all installed node modules from Node-RED. Returns array of node module objects with their node sets.
Inputs: no named parameters.
get_settingsA
Get the runtime settings of the Node-RED instance. Returns server configuration including version, httpNodeRoot, and user info.
Inputs: no named parameters.
install_nodeA
Install a new node module into Node-RED. Installs from the npm registry.
Inputs: module (required).
remove_node_moduleA
Remove an installed node module from Node-RED. Cannot remove core modules.
Inputs: module (required).
set_debug_stateB
Enable or disable a debug node. When disabled, the debug node will not produce output.
Inputs: nodeId (required), enabled (required).
set_flow_stateA
Set the runtime state of Node-RED flows to start or stop them. Requires runtimeState to be enabled in Node-RED settings.
Inputs: state (required).
set_node_module_stateB
Enable or disable a node module in Node-RED. When disabled, the module nodes are unavailable.
Inputs: module (required), enabled (required).
trigger_injectA
Trigger an inject node to fire with its configured values. The node must be a deployed inject node.
Inputs: nodeId (required).
update_flowB
Update a specific flow by ID using PUT /flow/:id. Only affects the specified flow, leaving all other flows untouched. Requires flow object with id, label, nodes array, and optional configs array.
Inputs: flowId (required), updates (required).
validate_flowA
Validate flow configuration without deploying. Checks for required fields and structural integrity.
Inputs: flow (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Tools are largely distinct and group cleanly into context, node, flow, and runtime concerns. Minor risk of confusion between get_nodes (installed modules) and get_settings/get_diagnostics, and between get_flows vs get_flow_state, but descriptions disambiguate them.
Consistent verb_noun pattern throughout: get_context, delete_context, get_nodes, install_node, remove_node_module, set_node_module_state, get_settings, trigger_inject, create_flow, update_flow, delete_flow, get_flow_state, set_flow_state.
17 tools is slightly heavy but each maps to a concrete, useful operation across clearly delineated sub-areas (flows, context, nodes, runtime). It earns nearly all its slots, though a couple could be consolidated.
Notable gap: there is get_context and delete_context but no set_context, so the context store is effectively read/delete-only and a key write operation is missing. Flow CRUD + state is otherwise well covered, but context and settings remain read-only with no write path.
Maintenance
Related MCP Connectors
AI-callable tools for API mocking, testing, monitoring, security, and automation.
26 pay-per-call AI agent tools for marketing, sales, content, research, verification, and integration testing. Agents pay per call via x402 micropayments (USDC on Base), raw JSON in and out. Includes delivery-acceptance receipts (ACCEPT/REJECT/REVIEW), a webhook capture/replay/conformance lab, and n8n workflow validation with bounded JSON-Patch repair.
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
Enables AI assistants to retrieve event data and execute event management operations in Nunify.
Related MCP Servers
- AlicenseAqualityDmaintenanceLets AI assistants interact with Node-RED to read flows, search nodes, edit function code, deploy changes safely, and manage modules.131MIT
- AlicenseNot gradedqualityBmaintenanceExposes Node-RED flows as MCP tools for AI assistants, with OAuth protection and optional admin tools for flow management.109 npm2ISC
- AlicenseBqualityDmaintenanceConnects AI assistants to the Node-RED Admin API, enabling flow inspection, node management, graph analysis, debug capture, and rollback operations through natural language.37MIT
- AlicenseNot gradedqualityBmaintenanceTurns Node-RED flows into OAuth-protected MCP tools that AI assistants can call, with optional read-only access to the Node-RED admin API.55 npmMIT