# Node-red-contrib-mcp — Connect AI agents to any MCP server

**URL:** <https://discourse.nodered.org/t/node-red-contrib-mcp-connect-ai-agents-to-any-mcp-server/100435>\
**Category:** Share Your Projects\
**Created:** [22 February 2026 21:25 UTC](https://discourse.nodered.org/t/node-red-contrib-mcp-connect-ai-agents-to-any-mcp-server/100435 "2026-02-22T21:25:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BavarianAnalyst](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bavariananalyst/32/105908_2.png) [@BavarianAnalyst](https://discourse.nodered.org/u/BavarianAnalyst)\
**Post date:** [22 February 2026 21:25 UTC](https://discourse.nodered.org/t/node-red-contrib-mcp-connect-ai-agents-to-any-mcp-server/100435/1 "2026-02-22T21:25:19Z")

</div>

Hi everyone,

I just published [node-red-contrib-mcp (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-mcp) — a set of nodes that connects Node-RED to Model Context Protocol, the open standard by Anthropic for connecting AI models to external tools and data.

What it does:

7 nodes that let you build AI-powered flows with any MCP server and any OpenAI-compatible LLM:

- mcp tool — Call any MCP tool with arguments
- mcp tools — Discover available tools on an MCP server
- mcp resource — Read MCP resources
- llm call — Call any OpenAI-compatible LLM (OpenAI, Ollama, vLLM, Azure, ...)
- ai agent — Autonomous agent loop: LLM discovers tools, reasons, calls them, repeats until it has an answer

The ai agent node is the highlight — it's the same pattern as ChatGPT or Claude (tool use in a reasoning loop), but visual and auditable in Node-RED.

Quick start:  
cd ~/.node-red  
npm install node-red-contrib-mcp

Works with any MCP server and any OpenAI-compatible LLM including local models via Ollama.

If you want to test it with real data:

> **[OpenShopFloor — The Open Source Factory AI Sandbox](https://openshopfloor.zeroguess.ai)**
>
> Explore manufacturing AI hands-on. 91 MCP tools, live factory data, visual flows — open source and free.

provides 91 free MCP tools for manufacturing AI (ERP, OEE, quality, warehouse).

Feedback and PRs welcome!
