npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-mcp-client

v0.2.12

Published

4Runr's custom MCP Client node for n8n — connects to a self-hosted MCP server via SSE and streams tool definitions to n8n AI Agents.

Readme

n8n-nodes-mcp-client

Built by 4Runr, this is a custom n8n node that connects to a self-hosted MCP Server via Server-Sent Events (SSE). It streams tool definitions to n8n AI Agents in real time, enabling flexible, dynamic automation at scale.

Features

  • Listens to an sseUrl endpoint for incoming tools events.
  • Emits tool definitions for use in the n8n AI Agent ecosystem.
  • Allows dynamic tool selection and parameter input.
  • Executes tools by POSTing to /mcp/message with the correct payload and headers.
  • Logs events, handles errors, and filters events automatically.
  • Optimized for 4Runr's AI automation infrastructure and MCP server systems.

Usage

  1. Configure Credentials

    • Set up a credential of type 4Runr MCP Access with:
      • SSE URL (required): Your MCP server's SSE endpoint (e.g., https://mcp-server/mcp-events)
      • SSE Connection Timeout (optional): Timeout in ms (default: 60000)
      • Messages POST Endpoint (required): Your MCP server's message endpoint (e.g., https://mcp-server/mcp/message)
      • Additional Headers (optional): JSON for API keys, etc. (e.g., { "X-API-Key": "Test12345" })
  2. Add the Node to Your Workflow

    • Use the "4Runr MCP Client" node as a tool source in your AI Agent configuration.
    • The node will dynamically display available tools as they arrive from the SSE stream.
    • You can select a tool and input parameters (as JSON) to execute it.
  3. Tool Execution

    • When a tool is executed, the node will POST to the configured message endpoint with the payload:
      {
        "toolCall": {
          "toolName": "check_availability",
          "parameters": { ... }
        }
      }
    • The X-API-Key header (if provided) will be included in all POST requests.
  4. Error Handling

    • The node provides robust error handling for SSE, JSON parsing, and HTTP errors.
    • Errors are logged and displayed in the n8n UI.

Assumptions

  • Tool names are accepted as sent by the server (namespacing/aliasing is optional).
  • All tool parameters and required/optional flags are respected as sent by the server.
  • The node expects the MCP server to emit a tools event with a tools array in the data payload.

Advanced/Optional

  • Tool name mapping/aliasing is supported via the Tool Name Mapping (Optional) property.
  • Future enhancements may include caching, custom parameter UI, and more.

Maintainer

Developed and maintained by 4Runr — Montreal's AI infrastructure company transforming how businesses run with intelligent systems.