n8n Nodes

Social media

N8n custom node for MCP.

Your AI app calls the n8n Nodes MCP server, which does the social media work and sends the result back to the chat.

About n8n Nodes

n8n Nodes is a community MCP server from nerding-io, filed in our directory under social media. N8n custom node for MCP.

n8n Nodes runs on your own machine: your AI app starts it with the command npx -y @modelcontextprotocol/server-example-streamable and talks to it over standard input and output.

At a glance

Publisher
nerding-io (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @modelcontextprotocol/server-example-streamable
Written in
TypeScript
License
MIT
GitHub stars
3,044

How to set up n8n Nodes

  1. Install Node.js on the machine that runs your AI app, because n8n Nodes starts with npx and downloads its package on first run.
  2. Check the n8n Nodes README for keys or settings; the registry lists none that n8n Nodes requires.
  3. Add n8n Nodes to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the n8n Nodes tools to confirm the connection.
  5. Run one read-only task with n8n Nodes first, and keep your app asking before each tool call until the results look right.

n8n Nodes compared with similar servers

  • Mcpso by chatmcp has fewer GitHub stars than n8n Nodes (2.1k against 3k); both are community servers, and both run locally.
  • NotFair by nowork-studio has more GitHub stars than n8n Nodes (4.4k against 3k); both are community servers, and NotFair runs as a remote server and n8n Nodes runs on your own machine.
  • TryPost by trypostit has fewer GitHub stars than n8n Nodes (1.6k against 3k); both are community servers, and TryPost runs as a remote server and n8n Nodes runs on your own machine.

Before you connect n8n Nodes

  • Give n8n Nodes its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each n8n Nodes tool call until you trust what it does with them.
  • Treat text that n8n Nodes fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for n8n Nodes on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for n8n Nodes

How marketing and sales teams put n8n Nodes to work, by company size. Pick the size closest to yours and start n8n Nodes on one use case.

Small business

  • A solo marketer can use n8n Nodes to draft a week of posts from one idea and check what performed last month before planning the next.
  • Local businesses can ask n8n Nodes which posts drove comments and follows, then do more of what worked instead of posting on guesswork.
  • n8n Nodes runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Social teams can connect n8n Nodes to pull engagement across accounts into one weekly summary their leads actually read.
  • Demand gen teams can use n8n Nodes to spot posts that earned replies from target accounts and hand those names to sales.
  • Start n8n Nodes on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise brands can route n8n Nodes drafts through legal and brand review, with publishing kept to approved people and every post logged.
  • Large social teams can use n8n Nodes for listening across regions, surfacing complaints and trends to the right owner without a manual sweep.
  • n8n Nodes is a community server, so have security review the code and pin a version before n8n Nodes touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

n8n Nodes README

From nerding-io/n8n-nodes-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

n8n-nodes-mcp-client

Important Note: The Server-Sent Events (SSE) transport is deprecated and replaced by the new HTTP Streamable transport. SSE remains available for legacy compatibility, but HTTP Streamable is now the recommended method for all new implementations.

This is an n8n community node that lets you interact with Model Context Protocol (MCP) servers in your n8n workflows.

MCP is a protocol that enables AI models to interact with external tools and data sources in a standardized way. This node allows you to connect to MCP servers, access resources, execute tools, and use prompts.

n8n is a fair-code licensed workflow automation platform.

Installation Credentials Environment Variables Operations Using as a Tool Compatibility Resources

Getting Started

Official Quickstart Video:

Community Videos

Shoutout to all the creators of the following n8n community videos that are great resources for learning how to use this node:

If you have a great video that you'd like to share, please let me know and I'll add it to the list!

Interested a deeper dive into MCP?

Check out my YouTube Series MCP Explained for more information about the Model Context Protocol.

Security Assessment

Installation

Follow the installation guide in the n8n community nodes documentation.

Also pay attention to Environment Variables for using tools in AI Agents. It's mandatory to set the N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE environment variable to true if you want to use the MCP Client node as a tool in AI Agents.

Credentials

The MCP Client node supports three types of credentials to connect to an MCP server:

Command-line Based Transport (STDIO)
  • Command: The command to start the MCP server
  • Arguments: Optional arguments to pass to the server command
  • Environment Variables: Variables to pass to the server in NAME=VALUE format
HTTP Streamable Transport (Recommended)
  • HTTP Streamable URL: The HTTP endpoint that supports streaming responses (e.g., http://localhost:3001/stream)
  • Additional Headers: Optional headers to send with requests (format: name:value, one per line)

HTTP Streamable is the recommended and modern method for all new integrations, providing better efficiency and flexibility compared to SSE.

Example: Using a Local MCP Server with HTTP Streamable

This example shows how to connect to a locally running MCP server using HTTP Streamable:

  1. Start a local MCP server that supports HTTP Streamable:

    npx @modelcontextprotocol/server-example-streamable
    
  2. Configure MCP Client credentials:

    • In the node settings, select Connection Type: HTTP Streamable
    • Create new credentials of type MCP Client (HTTP Streamable) API
    • Set HTTP Streamable URL: http://localhost:3001/stream
    • Add any required headers for authentication
  3. Create a workflow using the MCP Client node:

    • Add an MCP Client node
    • Set the Connection Type to HTTP Streamable
    • Select your HTTP Streamable credentials
    • Execute the workflow to see the results
Server-Sent Events (SSE) Transport (Deprecated, still available for legacy use)
  • SSE URL: The URL of the SSE endpoint (default: http://localhost:3001/sse)
  • Messages Post Endpoint: Optional custom endpoint for posting messages if different from the SSE URL
  • Additional Headers: Optional headers to send with requests (format: name:value, one per line)

Deprecated: SSE is deprecated and will not receive further updates, but remains available for legacy compatibility. For new projects, use HTTP Streamable.

Example: Using a Local MCP Server with SSE (legacy)

This example shows how to connect to a locally running MCP server using Server-Sent Events (SSE):

  1. Start a local MCP server that supports SSE:

    npx @modelcontextprotocol/server-example-sse
    
  2. Configure MCP Client credentials:

    • In the node settings, select Connection Type: Server-Sent Events (SSE)
    • Create new credentials of type MCP Client (SSE) API
    • Set SSE URL: http://localhost:3001/sse
    • Add any required headers for authentication
  3. Create a workflow using the MCP Client node:

    • Add an MCP Client node
    • Set the Connection Type to Server-Sent Events (SSE)
    • Select your SSE credentials
    • Execute the workflow to see the results

Note: For new projects, HTTP Streamable is strongly recommended.

Environment Variables

The MCP Client node supports passing environment variables to MCP servers using the command-line based transport in two ways:

1. Using the Credentials UI

You can add environment variables directly in the credentials configuration:

This method is useful for individual setups and testing. The values are stored securely as credentials in n8n.

2. Using Docker Environment Variables

For Docker deployments, you can pass environment variables directly to your MCP servers by prefixing them with MCP_:

version: '3'

services:
  n8n:
    image: n8nio/n8n
    environment:
      - MCP_BRAVE_API_KEY=your-api-key-here
      - MCP_OPENAI_API_KEY=your-openai-key-here
      - MCP_CUSTOM_SETTING=some-value
    # other configuration...

These environment variables will be automatically passed to your MCP servers when they are executed.

Example: Using Brave Search MCP Server

This example shows how to set up and use the Brave Search MCP server:

  1. Install the Brave Search MCP server:

    npm install -g @modelcontextprotocol/server-brave-search
    
  2. Configure MCP Client credentials:

    • Command: npx
    • Arguments: -y @modelcontextprotocol/server-brave-search
    • Environment Variables: BRAVE_API_KEY=your-api-key Add a variables (space comma or newline separated)
  3. Create a workflow that uses the MCP Client node:

    • Add an MCP Client node
    • Select the "List Tools" operation to see available search tools
    • Add another MCP Client node
    • Select the "Execute Tool" operation
    • Choose the "brave_search" tool
    • Set Parameters to: {"query": "latest AI news"}

The node will execute the search and return the results in the output.

Example: Multi-Server Setup with AI Agent

This example demonstrates how to set up multiple MCP servers in a production environment and use them with an AI agent:

  1. Configure your docker-compose.yml file:
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
      - MCP_SERPER_API_KEY=your-serper-key
      - MCP_WEATHER_API_KEY=your-weather-api-key

      # Enable community nodes as tools
      - N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
    ports:
      - "5678:5678"
    volumes:
      - ~/.n8n:/home/node/.n8n
  1. Create multiple MCP Client credentials in n8n:

    Brave Search Credentials:

    • Command: npx
    • Arguments: -y @modelcontextprotocol/server-brave-search

    OpenAI Tools Credentials:

    • Command: npx
    • Arguments: -y @modelcontextprotocol/server-openai

    Web Search Credentials:

    • Command: npx
    • Arguments: -y @modelcontextprotocol/server-serper

    Weather API Credentials:

    • Command: npx
    • Arguments: -y @modelcontextprotocol/server-weather
  2. Create an AI Agent workflow:

    • Add an AI Agent node
    • Enable MCP Client as a tool
    • Configure different MCP Client nodes with different credentials
    • Create a prompt that uses multiple data sources

Example AI Agent prompt:

I need you to help me plan a trip. First, search for popular destinations in {destination_country}.
Then, check the current weather in the top 3 cities.
Finally, find some recent news about travel restrictions for these places.

With this setup, the AI agent can use multiple MCP tools across different servers, all using environment variables configured in your Docker deployment.

Operations

The MCP Client node supports the following operations:

  • Execute Tool - Execute a specific tool with parameters
  • Get Prompt - Get a specific prompt template
  • List Prompts - Get a list of available prompts
  • List Resources - Get a list of available resources from the MCP server
  • List Tools - Get a list of available tools
  • Read Resource - Read a specific resource by URI
Example: List Tools Operation

The List Tools operation returns all available tools from the MCP server, including their names, descriptions, and parameter schemas.

Example: Execute Tool Operation

The Execute Tool operation allows you to execute a specific tool with parameters. Make sure to select the tool you want to execute from the dropdown menu.

Using as a Tool

This node can be used as a tool in n8n AI Agents. To enable community nodes as tools, you need to set the N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE environment variable to true.

Setting the Environment Variable

If you're using a bash/zsh shell:

export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
n8n start

If you're using Docker: Add to your docker-compose.yml file:

environment:
  - N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

If you're using the desktop app: Create a .env file in the n8n directory:

N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

If you want to set it permanently on Mac/Linux: Add to your ~/.zshrc or ~/.bash_profile:

export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

Example of an AI Agent workflow results:

After setting this environment variable and restarting n8n, your MCP Client node will be available as a tool in AI Agent nodes.

Compatibility

  • Requires n8n version 1.0.0 or later
  • Compatible with MCP Protocol version 1.0.0 or later
  • Supports both STDIO and SSE transports for connecting to MCP servers
  • SSE transport requires a server that implements the MCP Server-Sent Events specification

Resources

Questions about n8n Nodes

What is the n8n Nodes MCP server?

N8n custom node for MCP. n8n Nodes is maintained by nerding-io on GitHub at nerding-io/n8n-nodes-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the n8n Nodes MCP server?

Add n8n Nodes to your AI app's MCP config with the command npx -y @modelcontextprotocol/server-example-streamable. In Claude Code, run claude mcp add --transport stdio n8n-nodes -- npx -y @modelcontextprotocol/server-example-streamable. To run n8n Nodes this way you need Node.js installed.

Does n8n Nodes need an API key?

The registry lists no required keys for n8n Nodes. Check the n8n Nodes README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is n8n Nodes an official MCP server?

No. n8n Nodes is a community server maintained by nerding-io. Community servers can be excellent; read the code and the open issues before you give n8n Nodes access to company data.

What license is n8n Nodes under?

n8n Nodes is released under the MIT license, according to its GitHub repository. The license covers the code of n8n Nodes; the service it connects to has its own terms.