AI-agent-with-MCP-server-n8n-workflow
Verified Safeby pietro-franca
Overview
Integrate an AI chat agent with an MCP Server using n8n workflows to enable dynamic, tool-assisted responses for user queries.
Installation
n8n startEnvironment Variables
- OPENAI_API_KEY
- MCP_SERVER_URL
Security Notes
The system message for the AI Agent explicitly restricts it to only use `brave_web_search` and `brave_local_search` tools, mitigating the risk of arbitrary tool execution via dynamic parameter injection. The `executeTool` operation takes dynamic `toolName` and `toolParameters` from the AI, which would be a critical vulnerability without this restriction. However, the overall security depends on the trustworthiness of the external MCP server and the tools it exposes.
Similar Servers
n8n-mcp
The n8n-MCP server enhances n8n's workflow automation by providing a Model Context Protocol interface, allowing AI agents to discover, validate, and manage n8n nodes and workflows with rich, structured documentation and metadata.
mcp-n8n-builder
Programmatic creation and management of n8n workflows by AI assistants via the Model Context Protocol (MCP).
project-nova
Manages Paperless-NGX documents by providing an MCP server that exposes an SSE endpoint for integration with n8n, enabling AI agents to search, upload, and manage documents, tags, correspondents, and document types.
Local_MCP_Client
The client acts as a cross-platform web and API interface for natural language interaction with configurable MCP servers, facilitating structured tool execution and dynamic agent behavior using local LLMs.