mcpField
N
node-red-mcp-server

node-red-mcp-server

Local
github.com/karavaev-evgeniyDeveloper Tools39Updated 68w ago

About node-red-mcp-server

node-red-mcp-server is an MCP server for Node-RED that lets language models manage flows, nodes, and settings through a standard interface. It is aimed at users who want models such as Claude to automate Node-RED flows.

Key features

  1. 01Read and update flows and tabs
  2. 02List and toggle node modules
  3. 03Search nodes by type or properties
  4. 04Inspect settings, diagnostics, and runtime state
  5. 05Trigger inject nodes remotely

Use cases

  1. 01Letting a language model read and modify Node-RED flows
  2. 02Triggering inject nodes remotely through an assistant
  3. 03Reviewing flow state and runtime statistics

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

npm version npm downloads GitHub license

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.

Description

node-red-mcp-server creates a bridge between language models and the Node-RED platform, providing tools to manage flows, nodes, and settings via the MCP (Model Context Protocol). This enables language models to automate and control Node-RED flows programmatically.

Key Features
  • Retrieve and update Node-RED flows via MCP
  • 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 node-red-mcp-server
Local Installation
npm install node-red-mcp-server

Usage

Command Line
node-red-mcp-server --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

Then run:

node-red-mcp-server
Integration with Claude or Other LLMs
  1. Start the MCP server or configure Claude Desktop to start it automatically with the tool configuration below.

  2. Configure Claude Desktop:

    • Open Claude Desktop app
    • Go to Settings → Advanced → Tool Configuration
    • Add a new tool configuration. You can use npx to run the server without manual installation. This is often the easiest way to get started:
    {
      "node-red": {
        "command": "npx",
        "args": [
          "node-red-mcp-server"
        ],
        "env": {
          "NODE_RED_URL": "http://your-node-red-url:1880",
          "NODE_RED_TOKEN": "your-token-if-needed"
        }
      }
    }
    
    • Ensure NODE_RED_URL points to your Node-RED instance.
    • Set NODE_RED_TOKEN if your Node-RED instance requires authentication.

    Alternatively, if you have installed the server globally or locally and know the path to the script, you can configure it like this:

    {
      "node-red": {
        "command": "node",
        "args": [
          "/path/to/node-red-mcp-server/bin/node-red-mcp-server.mjs"
          // You can add other CLI arguments here, e.g., "--verbose"
        ],
        "env": {
          "NODE_RED_URL": "http://your-node-red-url:1880",
          "NODE_RED_TOKEN": "your-token-if-needed",
          "MCP_SERVER_PORT": "3000"
        }
      }
    }
    
    • Replace /path/to/node-red-mcp-server with the actual path to your installation
    • Update NODE_RED_URL to point to your Node-RED instance
    • Set NODE_RED_TOKEN if your Node-RED instance requires authentication
  3. 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
ParameterShortDescription
--url-uNode-RED base URL
--token-tAPI access token
--verbose-vEnable verbose logging
--help-hShow help
--version-VShow version number
Environment Variables
VariableDescription
NODE_RED_URLURL of your Node-RED instance
NODE_RED_TOKENAPI access token

MCP Tools

Flow Tools
  • get-flows — Get all flows
  • update-flows — Update all flows
  • get-flow — Get a specific flow by ID
  • update-flow — Update a specific flow by ID
  • list-tabs — List all tabs (workspaces)
  • create-flow — Create a new flow tab
  • delete-flow — Delete a flow tab
  • get-flows-state — Get deployment state
  • set-flows-state — Change deployment state
  • get-flows-formatted — Get human-readable flow list
  • visualize-flows — Generate graph-like view of flows
Node Tools
  • inject — Trigger an inject node
  • get-nodes — List available node types
  • get-node-info — Detailed info about a node module
  • toggle-node-module — Enable/disable a node module
  • find-nodes-by-type — Locate nodes by type
  • search-nodes — Find nodes by name or property
Settings Tools
  • get-settings — Get Node-RED runtime settings
  • get-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) 2023

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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.