n8n-nodes-mcp: Seamless AI Integration with Model Context Protocol

This repository profile is provided by osrepos.com, an open source repository discovery platform.

n8n-nodes-mcp: Seamless AI Integration with Model Context Protocol

Summary

The n8n-nodes-mcp is a custom n8n node designed to facilitate interaction with Model Context Protocol (MCP) servers. It empowers n8n workflows to connect with AI models, access resources, execute tools, and utilize prompts in a standardized manner, significantly enhancing AI agent capabilities.

Repository Information

Analyzed by OSRepos on November 1, 2025

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

The n8n-nodes-mcp repository provides a custom node for n8n, a fair-code licensed workflow automation platform, enabling seamless integration with Model Context Protocol (MCP) servers. MCP is a powerful protocol designed to allow AI models to interact with external tools and data sources in a standardized and efficient manner. This node empowers your n8n workflows to connect to MCP servers, access various resources, execute tools, and utilize prompts, significantly extending the capabilities of AI agents within your automations.

With 2855 stars and 494 forks, this MIT-licensed project, primarily developed in TypeScript, demonstrates strong community interest and active development.

Installation

To integrate the MCP Client node into your n8n instance, follow the official installation guide for n8n community nodes.

It is crucial to note that if you intend to use the MCP Client node as a tool within n8n AI Agents, you must set the N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE environment variable to true. This enables community nodes to function as tools for your AI agents.

Examples

The n8n-nodes-mcp node offers flexible ways to connect and interact with MCP servers, supporting various transport methods and configurations.

Connection Types and Credentials

The node supports three primary connection types:

  • Command-line Based Transport (STDIO): Configure the command, arguments, and environment variables to start an MCP server directly.
  • HTTP Streamable Transport (Recommended): Connect to an HTTP endpoint that supports streaming responses. This is the modern and recommended method for new implementations.
  • Server-Sent Events (SSE) Transport (Deprecated): Available for legacy compatibility, connecting to SSE endpoints. HTTP Streamable is preferred for new projects.

Example: Using a Local MCP Server with HTTP Streamable

  1. Start a local MCP server that supports HTTP Streamable:
    npx @modelcontextprotocol/server-example-streamable
    
  2. In n8n, configure new credentials of type MCP Client (HTTP Streamable) API.
  3. Set HTTP Streamable URL to http://localhost:3001/stream.
  4. Add an MCP Client node to your workflow, select HTTP Streamable as the Connection Type, and choose your newly created credentials.

Environment Variables

Environment variables can be passed to MCP servers via the credentials UI or, for Docker deployments, by prefixing them with MCP_.

Example: Using Brave Search MCP Server

This example demonstrates integrating the Brave Search MCP server:

  1. Install the Brave Search MCP server globally:
    npm install -g @modelcontextprotocol/server-brave-search
    
  2. Configure MCP Client credentials in n8n:
    • Command: npx
    • Arguments: -y @modelcontextprotocol/server-brave-search
    • Environment Variables: BRAVE_API_KEY=your-api-key
  3. In an n8n workflow, add an MCP Client node. First, use the "List Tools" operation to see available search tools. Then, add another MCP Client node, select the "Execute Tool" operation, choose "brave_search", and set parameters like {"query": "latest AI news"}.

Multi-Server Setup with AI Agent

For advanced scenarios, you can configure multiple MCP servers in a Docker environment and leverage them with n8n's AI Agent capabilities. By setting MCP_ prefixed environment variables in your docker-compose.yml and creating corresponding MCP Client credentials in n8n, an AI Agent can utilize various tools from different MCP servers.

version: '3'

services:
  n8n:
    image: n8nio/n8n
    environment:
      # MCP server environment variables
      - MCP_BRAVE_API_KEY=your-brave-api-key
      - MCP_OPENAI_API_KEY=your-openai-key
      # ... other MCP keys
      - N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
    ports:
      - "5678:5678"
    volumes:
      - ~/.n8n:/home/node/.n8n

Operations

The MCP Client node supports several operations to interact with MCP servers:

  • Execute Tool: Run a specific tool with defined parameters.
  • Get Prompt: Retrieve a specific prompt template.
  • List Prompts: Get a list of all available prompts.
  • List Resources: Obtain a list of resources from the MCP server.
  • List Tools: Discover all available tools, including their descriptions and parameter schemas.
  • Read Resource: Read a specific resource by its URI.

Why Use n8n-nodes-mcp?

The n8n-nodes-mcp node is an essential tool for anyone looking to enhance their n8n workflows with advanced AI capabilities. It provides a standardized and robust way to:

  • Integrate AI Models: Connect your n8n automations directly to AI models via the Model Context Protocol.
  • Access External Tools & Data: Empower AI agents to use external tools and data sources, such as search engines or weather APIs, within your workflows.
  • Streamline AI Agent Development: Simplify the creation of sophisticated AI agents by providing a unified interface for various MCP servers.
  • Leverage Community Resources: Benefit from a growing community, extensive documentation, and video tutorials that guide you through setup and advanced usage.
  • Future-Proof Integrations: Utilize the recommended HTTP Streamable transport for efficient and flexible communication with MCP servers.

Links

Related repositories

Similar repositories that may be relevant next.

FreeLLMAPI: Stack 16 Free LLM Tiers for 1.7 Billion Tokens/Month

FreeLLMAPI: Stack 16 Free LLM Tiers for 1.7 Billion Tokens/Month

June 27, 2026

FreeLLMAPI is an OpenAI-compatible proxy that aggregates the free tiers of 16 LLM providers, offering access to approximately 1.7 billion tokens per month. It simplifies access to diverse models through a single endpoint, featuring smart routing, automatic failover, and encrypted key storage. This powerful tool is designed for personal experimentation, allowing developers to leverage multiple free LLM resources efficiently.

TypeScriptLLMAI
Voicebox: The Open-Source AI Voice Studio for Cloning and Dictation

Voicebox: The Open-Source AI Voice Studio for Cloning and Dictation

June 25, 2026

Voicebox is an innovative open-source AI voice studio that allows users to clone voices, generate speech in multiple languages, and dictate into any application. It provides a comprehensive, local-first voice I/O stack, offering a powerful alternative to cloud-based solutions. This tool ensures complete privacy and control over your voice data, running entirely on your local machine.

AIVoice CloningSpeech Synthesis
EasyWhisperUI: A Cross-Platform Desktop App for Whisper Model Transcription

EasyWhisperUI: A Cross-Platform Desktop App for Whisper Model Transcription

June 22, 2026

EasyWhisperUI is a fast, local desktop application designed for transcribing audio and video using the Whisper model. It offers GPU acceleration across Windows, macOS, and Linux, providing a user-friendly interface for various transcription tasks. The application supports features like live transcription, batch processing, and translation, making it a versatile tool for media processing.

TypeScriptWhisperTranscription
Dexter: An Autonomous Agent for Deep Financial Research

Dexter: An Autonomous Agent for Deep Financial Research

June 22, 2026

Dexter is an autonomous financial research agent designed to think, plan, and learn while performing analysis. It leverages task planning, self-reflection, and real-time market data to tackle complex financial questions. This project provides a powerful tool for in-depth financial exploration, emphasizing its educational and informational purposes.

TypeScriptAIFinancial Research

Source repository

Open the original repository on GitHub.

12 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️