loading…
Search for a command to run...
loading…
A Model Context Protocol server for Node-RED integration, enabling AI agents to manage flows, install modules, and monitor Node-RED instances via natural langua
A Model Context Protocol server for Node-RED integration, enabling AI agents to manage flows, install modules, and monitor Node-RED instances via natural language.
License: MIT Node.js Version TypeScript CI/CD CodeQL codecov Security Rating
A modern, production-ready Model Context Protocol (MCP) server for Node-RED integration, built with best practices.
tsup.well-known/mcp.json (November 2025 spec)# Clone the repository
git clone https://github.com/your-org/nodered-mcp.git
cd nodered-mcp
# Install dependencies (Yarn 4 will be automatically used)
yarn install
# Build the project (no .env file needed for stdio mode)
yarn build
# Test the server (optional)
echo '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}},"id":1}' | node dist/index.mjs
# Configure in Claude Desktop (see Usage section)
# Clone and start the full stack
git clone https://github.com/your-org/nodered-mcp.git
cd nodered-mcp
# Start all services (includes Node-RED, PostgreSQL, Redis, monitoring)
docker-compose up -d
# View logs
docker-compose logs -f mcp-server
Access the services:
# Enable Corepack (if not already enabled)
corepack enable
# Verify versions
node --version # Should be 22.x.x
yarn --version # Should be 4.x.x
# Install dependencies
yarn install
# Set up environment
cp env.example .env
# Edit .env file with your configuration
# Run in development mode with hot reload
yarn dev
Add to your Claude Desktop configuration
(~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"nodered": {
"command": "node",
"args": ["path/to/nodered_mcp/dist/index.mjs"],
"env": {
"NODERED_URL": "https://your-nodered-instance.com",
"NODERED_USERNAME": "your-username",
"NODERED_PASSWORD": "your-secure-password"
}
}
}
}
| Tool | Description | Arguments |
|---|---|---|
get_flows |
Get Node-RED flows (summary/full) | includeDetails?: boolean |
get_flow |
Get specific flow details | flowId: string |
create_flow |
Create a new Node-RED flow | flowData: object |
update_flow |
Update an existing flow | flowId: string, flowData: object |
enable_flow |
Enable a specific flow | flowId: string |
disable_flow |
Disable a specific flow | flowId: string |
search_modules |
Search Node-RED palette modules | query: string, category?: string |
install_module |
Install a Node-RED module | moduleName: string, version?: string |
get_installed_modules |
Get installed modules | None |
The MCP server supports multiple transport modes and authentication methods. Choose the one that fits your setup.
| Mode | Env Var | Endpoint | Use Case |
|---|---|---|---|
| Streamable HTTP | MCP_TRANSPORT=http |
POST /mcp |
Production deployments, remote agents |
| Stdio | MCP_TRANSPORT=stdio |
stdin/stdout | Claude Desktop local integration |
The server supports two authentication methods (configured via environment variables):
MCP_USERNAME and MCP_PASSWORD. Clients send an
Authorization: Basic <base64> header.JWT_SECRET to be set.For remote MCP clients (Claude Code, custom agents, etc.), point them to the
/mcp endpoint:
# Generic connection parameters
URL: https://<your-server-host>/mcp
Transport: streamable-http
Auth header: Authorization: Basic <base64(username:password)>
Claude Code CLI example:
claude mcp add node-red \
--transport streamable-http \
--url https://<your-server-host>/mcp \
--header "Authorization: Basic <base64-credentials>"
For Claude Desktop or other local MCP hosts, use stdio mode:
{
"mcpServers": {
"nodered": {
"command": "node",
"args": ["path/to/nodered_mcp/dist/index.mjs"],
"env": {
"MCP_TRANSPORT": "stdio",
"NODERED_URL": "https://your-nodered-instance.com",
"NODERED_USERNAME": "your-username",
"NODERED_PASSWORD": "your-password"
}
}
}
}
| Variable | Required | Description |
|---|---|---|
NODERED_URL |
Yes | URL of your Node-RED instance |
NODERED_USERNAME |
Yes | Node-RED admin credentials |
NODERED_PASSWORD |
Yes | Node-RED admin credentials |
MCP_TRANSPORT |
No | http (default) or stdio |
MCP_USERNAME |
No | MCP server auth username |
MCP_PASSWORD |
No | MCP server auth password |
JWT_SECRET |
No | Secret for JWT token signing |
HOST |
No | Bind address (default: 0.0.0.0) |
PORT |
No | Listen port (default: 3000) |
CORS_ORIGIN |
No | Allowed CORS origins |
LOG_LEVEL |
No | debug, info, warn, error |
Выполни в терминале:
claude mcp add node-red-mcp -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
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-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai