Build your own FileSystem MCP server
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when an MCP client calls one of its tools (plus 1 other trigger). Along the way it connects Execute Command.
How it runs
Trigger: When an MCP client calls one of its tools (plus 1 other trigger).
- Operation (Switch): routes items into 2 branches
- writeOneOrMultipleFiles (Execute Command): runs a shell command on the n8n host
- readOneOrMultipleFiles (Execute Command): runs a shell command on the n8n host
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Rarely used nodes in this template: n8n-nodes-base.executeCommandTool
Nodes used (6)
- MCP Server Trigger
@n8n/n8n-nodes-langchain.mcpTrigger - Execute Command Tool
n8n-nodes-base.executeCommandTool - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Switch
n8n-nodes-base.switch - Execute Command
n8n-nodes-base.executeCommand - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
From the author
This template is for self-hosted n8n instances only. This n8n demonstrates how to build a simple FileSystem MCP server. Connecting to this server allows MCP clients and agents to list, read and create directories and files on the local machine or remote…