MCP File Operations Server
A Model Context Protocol (MCP) server that provides file operation tools for Claude Desktop.
Features
- read_file: Read file contents
- write_file: Write content to files
- list_directory: List directory contents
- create_directory: Create directories
- delete_file: Delete files
- delete_directory: Delete directories
- copy_file: Copy files
- move_file: Move/rename files
- get_file_info: Get file metadata
Installation
Quick Installation
Run the installation script:
Manual Installation
- Create virtual environment:
- Install the package:
- Install development dependencies (optional):
Testing
Run the test suite:
Or run tests directly:
Claude Desktop Integration
- Find your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the server configuration:Note: Update the path in
args
to match your actual installation directory. - Restart Claude Desktop to load the new server.
Usage
Once integrated, you can use commands like:
- "Read the file at /path/to/file.txt"
- "Write 'Hello World' to /path/to/output.txt"
- "List the contents of /path/to/directory"
- "Create a directory at /path/to/new/dir"
- "Delete the file /path/to/unwanted.txt"
- "Copy file from /source to /destination"
Security Notes
- The server has full file system access
- Only use with trusted content
- Consider restricting paths in production environments
Testing
Run the test suite:
LangGraph Integration
This package includes a complete LangGraph integration that allows you to use MCP file operations as tools within LangGraph workflows.
Installation with LangGraph
Quick Start
Examples
- Simple Integration:
examples/simple_langgraph_example.py
- Full Workflow:
examples/langgraph_file_workflow.py
- Documentation:
docs/LANGGRAPH_INTEGRATION.md
Available LangGraph Tools
All MCP file operations are available as LangGraph tools:
read_file
,write_file
,list_directory
,create_directory
delete_file
,delete_directory
,copy_file
,move_file
,get_file_info
License
MIT License
This server cannot be installed
A Model Context Protocol server that enables Claude Desktop to perform file operations like reading, writing, listing directories, and managing files through natural language commands.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.Last updated -TypeScript
- AsecurityAlicenseAqualityA collection of Model Context Protocol servers that enable Claude Desktop to provide development assistance capabilities with filesystem, Git, shell command, and web search functionality without incurring API usage costs.Last updated -219TypeScriptMIT License
- -securityAlicense-qualityA custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.Last updated -22PythonApache 2.0
- -securityFlicense-qualityA filesystem Model Context Protocol server that provides Claude Desktop with capabilities to read, write, and manipulate files on your system.Last updated -TypeScript