filesystem-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@filesystem-mcplist files in the current directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📂 filesystem-mcp
Model Context Protocol (MCP) server for file system operations. Enable AI assistants like Claude, Cursor, and others to read, write, and manage files on your local system.
🚀 Features
📖 Read files - Read file contents with size limits
📂 List directories - View files with metadata (size, type)
✏️ Write files - Create and update files
🗑️ Delete files - Remove files and directories
🔍 Search files - Glob pattern matching
📊 File info - Get detailed metadata
📁 Directory operations - Create, copy, move directories
Related MCP server: Filesystem MCP
📦 Installation
pip install filesystem-mcp🔧 Usage
CLI Mode
# Start the MCP server (read-write mode)
filesystem-mcp --directory /path/to/your/project
# Start in read-only mode
filesystem-mcp --directory /path/to/your/project --readonlyClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"filesystem": {
"command": "filesystem-mcp",
"args": ["--directory", "/path/to/your/project"]
}
}
}Cursor
Add to Cursor settings (MCP configuration):
{
"mcpServers": {
"filesystem": {
"command": "filesystem-mcp",
"args": ["--directory", "/path/to/your/project"]
}
}
}🛠️ Available Tools
Tool | Description | Write |
| Read contents of a file | ❌ |
| List files in a directory | ❌ |
| Create or write to a file | ✅ |
| Delete a file or directory | ✅ |
| Create a new directory | ✅ |
| Search files by glob pattern | ❌ |
| Get file metadata | ❌ |
| Copy a file or directory | ✅ |
| Move or rename a file | ✅ |
📝 Example
from filesystem_mcp import FileSystemServer
# Create server instance
server = FileSystemServer(root_directory="/path/to/project")
# Run the server
server.run()🔐 Security
Path restrictions: All operations are restricted to the specified root directory
File size limits: Maximum 1MB for file reads
Optional read-only mode: Use
--readonlyflag to disable all write operations
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
MIT License - see LICENSE for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables AI assistants to read, search, and analyze local file systems with tools for reading file contents, listing directories, searching by patterns, and analyzing folder structures for context-aware queries.Last updated
- Flicense-qualityDmaintenanceProvides secure filesystem access for AI assistants with optimizations like file reading limits and depth-limited traversal to improve token efficiency. It enables AI models to read, write, and search files within explicitly allowed directories while automatically skipping large system folders.Last updated3
- Alicense-qualityAmaintenanceEnables AI assistants to perform file system operations within a specified project directory, including reading, writing, editing, and managing files, with optional read-only access to reference projects.Last updated50MIT
- Flicense-qualityCmaintenanceEnables AI models to securely read, write, and query metadata of local files through a controlled file system interface, with support for local and Azure deployment.Last updated
Related MCP Connectors
File uploads for AI agents. Upload, list, and manage files. No signup required.
Securely search and manage workspace context files for AI agents and teams.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LincolnBurrows2017/filesystem-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server