Filesystem MCP Integration
Guide for integrating filesystem operations with PraisonAI agents using MCP
Add Filesystem Tool to AI Agent
Quick Start
Install Dependencies
Make sure you have Node.js installed, as the MCP server requires it:
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Create a file
Create a new file
filesystem_agent.py
with the following
code:
Run the Agent
Execute your script:
Requirements
- Python 3.10 or higher
- Node.js installed on your system
- OpenAI API key (for the agent’s LLM)
- Read/write access to the specified directories