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 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-mcp-auth-trigger

v2.0.10

Published

n8n community node: Real MCP Server Trigger (Streamable HTTP) with Auth0 Bearer token validation

Readme

n8n-nodes-mcp-auth-trigger

A custom n8n community node that acts as an MCP Server Trigger with full Authorization header passthrough.

The built-in n8n MCP Server Trigger drops all HTTP headers before forwarding to tool sub-workflows. This node solves that by exposing the full request — including the Authorization: Bearer <token> header — as output fields your workflow can use.


The Problem This Solves

Claude MCP Client
    → sends: Authorization: Bearer eyJhbG...  ← LOST by default MCP trigger
    → sends: tool params (symbols, date, etc.) ← only these reach sub-workflows

With this node:

Claude MCP Client
    → MCP Auth Trigger node
        → outputs: { symbols, date, _auth: { token, tokenValid, userData }, _headers: {...} }
        → your workflow can validate the token however you want

Installation

Via npm (once published)

npm install n8n-nodes-mcp-auth-trigger

Manual install into n8n

# Go to your n8n custom nodes directory
cd ~/.n8n/custom   # or /data/custom for Docker

# Copy the package
cp -r /path/to/n8n-nodes-mcp-auth-trigger .

# Restart n8n

Via n8n Community Nodes UI

  1. Go to Settings → Community Nodes
  2. Click Install
  3. Enter n8n-nodes-mcp-auth-trigger
  4. Restart n8n

Usage

Node Parameters

| Parameter | Description | |---|---| | Path | URL path for the MCP endpoint, e.g. eod_prices | | Token Validation | none / auth0 / static | | Auth0 Domain | Your Auth0 domain, e.g. phoenix-lab.us.auth0.com | | Expected Token | For static mode — the exact token to match | | Reject Invalid Tokens | Return 401 immediately, or pass failure info downstream | | Response Mode | Return last node result or respond immediately (202) |

Output Fields

Every trigger output includes:

{
  "symbols": "TCS,INFY",
  "lookback_days": "10",
  "date": "2026-05-18",

  "_auth": {
    "token": "eyJhbGciOiJSUzI1NiJ9...",
    "tokenValid": true,
    "tokenError": null,
    "validationMode": "auth0",
    "userData": {
      "email": "[email protected]",
      "name": "John Doe",
      "sub": "auth0|abc123"
    }
  },

  "_headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiJ9...",
    "content-type": "application/json",
    "user-agent": "..."
  },

  "_method": "POST",
  "_path": "/webhook/eod_prices"
}

Workflow Examples

1. Pass token to a sub-workflow for Auth0 validation

MCP Auth Trigger (validation: none)
    → Execute Workflow (pass _auth.token as accessToken)
        → Your existing token validation workflow

2. Validate Auth0 directly in the trigger

MCP Auth Trigger (validation: auth0, domain: phoenix-lab.us.auth0.com)
    → IF: {{ $json._auth.tokenValid === true }}
        → ✅ Your workflow logic
        → ❌ Stop / return error

3. Access user info after validation

// In any downstream node:
{{ $json._auth.userData.email }}      // [email protected]
{{ $json._auth.userData.sub }}        // auth0|abc123
{{ $json._auth.token }}               // raw JWT
{{ $json._auth.tokenValid }}          // true/false

Accessing the Token in Your Existing Workflow

If you already have a token validation sub-workflow (like the one using n8n DataTable caching), wire it like this:

MCP Auth Trigger
    ↓
Execute Workflow (Call Token Validation)
    → workflowInputs:
        accessToken: {{ $json._auth.token }}
    ↓
IF: {{ $json.valid === true }}
    ✅ → Parse Inputs → Fetch EOD Prices → ...
    ❌ → Return error

Building from Source

git clone https://github.com/yourname/n8n-nodes-mcp-auth-trigger
cd n8n-nodes-mcp-auth-trigger
npm install
npm run build

Publishing to npm

# Update name/author in package.json first
npm login
npm publish

License

MIT