Back to Home
pietro-franca icon

AI-agent-with-MCP-server-n8n-workflow

Verified Safe

by 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

Run Command
n8n start

Environment 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

Stats

Interest Score28
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars1
Forks0
Last Update2025-11-19

Tags

AI Agentn8nMCP ServerTool ExecutionChatbot