@mmn-systems/n8n-nodes-mcp-trigger-context
v0.3.1
Published
Community MCP Trigger node with request context passthrough
Maintainers
Readme
n8n-nodes-mcp-trigger-context
Community MCP Trigger node for current n8n 2.x installations that forwards incoming MCP HTTP request context into tool execution input as mcpRequest.
Install
npm install @mmn-systems/n8n-nodes-mcp-trigger-contextRepository: https://github.com/max00346/n8n-nodes-mcp-trigger-context
What it solves
Built-in MCP trigger tool calls do not expose HTTP headers/query/path directly to tool parameter expressions.
This node injects:
$json.mcpRequest.headers$json.mcpRequest.query$json.mcpRequest.params$json.mcpRequest.method$json.mcpRequest.path
For MCP tool calls on current n8n 2.x, the same request context is also embedded into the internal mcpToolCall.arguments payload so queue-mode worker executions receive the same header/query/path context as direct executions.
Example
In a connected HTTP Request tool/node expression:
={{ $json.mcpRequest.headers.authorization }}Notes
- Targets current n8n 2.x MCP Trigger internals.
- Requires n8n installations that include
@n8n/n8n-nodes-langchain.
Troubleshooting
If n8n shows Class could not be found after upgrading:
- Remove the old package from Community Nodes in n8n.
- Stop n8n and delete the old install at
~/.n8n/nodes/node_modules/@mmn-systems/n8n-nodes-mcp-trigger-context. - Start n8n and install a pinned version, for example
@mmn-systems/[email protected].
