Filesystem MCP Server
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 MCP Serverlist files in my Documents folder"
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 Server
A Model Context Protocol (MCP) server that provides comprehensive file system access and operations. This server allows AI assistants to interact with your file system through a standardized interface.
Features
Resources (Read-only access)
file://{path} - Read file contents
directory://{path} - List directory contents with metadata
Tools (File Operations)
read_file_tool - Read file contents with encoding support
write_file_tool - Create or overwrite files
list_directory_tool - List directory contents (recursive option)
create_directory_tool - Create directories with parent creation
delete_file_tool - Delete files
delete_directory_tool - Delete directories (recursive option)
move_file_tool - Move or rename files/directories
copy_file_tool - Copy files or directories
search_files_tool - Search for files by pattern (supports wildcards)
get_file_info_tool - Get detailed file/directory metadata
Prompts
analyze_directory_prompt - Template for directory analysis
find_and_read_prompt - Template for finding and reading files
Related MCP server: File Context MCP Server
Security
By default, the server restricts access to your home directory. You can modify the ALLOWED_PATHS list in server.py to change this.
ALLOWED_PATHS = [str(Path.home())] # Modify this to add more pathsAccess is limited to a configured root directory
No access to system paths
User must explicitly grant permissions
Server Versions
server.py - Pure MCP SDK implementation (currently active)
Uses
mcp.server.ServerdirectlyBetter compatibility with Claude Desktop
Lower-level control
Using with Claude Desktop
To use this server with Claude Desktop, add it to your Claude configuration file.
Open your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"filesystem": {
"command": "python",
"args": ["C:\\Users\\<username>\\filesystem-mcp-server\\server.py"]
}
}
}Restart Claude Desktop
Using with MCP Inspector
You can test and debug your server with the MCP Inspector:
npx @modelcontextprotocol/inspector python server.pyExample Usage
Once connected to an MCP client (like Claude Desktop), you can:
List files in a directory
Can you list the files in my Documents folder?Read a file
Read the contents of C:\Users\<username>\test.txtSearch for files
Find all Python files in my projects directoryCreate and write to a file
Create a new file called notes.txt with the content "Hello World"Get file information
Get detailed information about myfile.pdfProject Structure
filesystem-mcp-server/
└── src/
├── __init__.py
├── config.py ← ALLOWED_PATHS + is_path_allowed()
├── tools.py ← all 10 tool implementations
├── tool_schemas.py ← the Tool(...) schema definitions for list_tools()
├── resources.py ← list_resources() + read_resource()
└── prompts.py ← list_prompts() + get_prompt()
├── server.py # Main MCP server implementation
├── requirements.txt # Python dependencies
├── test_server # Test file
└── README.md # This fileExtending the Server
You can easily add more tools by following the existing patterns:
@mcp.tool()
def your_custom_tool(param: str) -> dict:
"""Description of your tool"""
# Your implementation
return {"result": "success"}Troubleshooting
Permission Errors
If you get permission errors, check that the path is within ALLOWED_PATHS in server.py.
Server Not Responding
Check that the server is running with stdio transport and that your client is properly configured.
Requirements
Python 3.8 or higher
Windows (adaptable to Linux/macOS by changing path separators)
MCP Python SDK 1.25 or higher
Resources
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/geekgod382/filesystem-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server