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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@couleetech/n8n-nodes-mcp-client

v0.5.22

Published

n8n node to provide MCP tools to AI nodes

Downloads

1,757

Readme

n8n-nodes-mcp-client

Please note, This package is not working yet, I will set the version to 1.0.0 when it is working. ( 90% chance I will forget to update this readme when I do )

This package provides an n8n node for interacting with Model Context Protocol (MCP) tools. It allows you to integrate MCP-compatible AI tools into your n8n workflows.

Installation

To install this package in your n8n instance:

npm install @coulee-tech/n8n-nodes-mcp-client

Features

  • List available MCP tools
  • Call specific MCP tools with custom arguments
  • Full integration with n8n workflows
  • Support for standard MCP protocol communication

MCP Protocol Requirements

Your MCP client must:

  1. Accept JSON-RPC style messages via stdin
  2. Output responses via stdout
  3. Support the following methods:
    • tools/list: Lists available tools
    • tools/call: Calls a specific tool with arguments

Example MCP message format:

// Request
{
  "method": "tools/call",
  "params": {
    "name": "tool-name",
    "arguments": {
      // tool-specific arguments
    }
  }
}

// Response
{
  "result": {
    // tool-specific response
  }
}

Configuration

Credentials

To use the MCP Client node, you need to configure the following credentials:

  1. Command: The command to execute for the MCP client (e.g., the path to your MCP-compatible tool)
  2. Arguments: Command-line arguments for the MCP client (comma-separated)

Node Configuration

The node provides two operations:

  1. List Tools

    • Lists all available MCP tools from your configured client
    • No additional parameters required
  2. Call Tool

    • Calls a specific MCP tool with custom arguments
    • Required parameters:
      • Tool Name: The name of the tool to call
      • Tool Arguments: JSON object containing the arguments for the tool

Usage Example

Here's an example of how to use the MCP Client node in your workflow:

  1. Add the MCP Client node to your workflow
  2. Configure the credentials with your MCP client command and arguments
  3. Choose an operation:
    • To list tools: Select "List Tools" operation
    • To call a tool: Select "Call Tool" operation and provide:
      {
        "toolName": "your-tool-name",
        "toolArguments": {
          "param1": "value1",
          "param2": "value2"
        }
      }

Error Handling

The node includes comprehensive error handling:

  • Invalid command or arguments
  • Tool execution failures
  • MCP protocol communication errors
  • JSON parsing errors

Development

To contribute to this package:

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Build the package:
    npm run build
  4. Run tests:
    npm test

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues and feature requests, please use the GitHub issue tracker.