MCP Filesystem Server
Go server implementing Model Context Protocol (MCP) for filesystem operations.
Overview
Filesystem MCP Server is a Go server implementing the Model Context Protocol (MCP) for executing various file system operations.
To use the server, install it via the command go install github.com/mark3labs/mcp-filesystem-server, and configure it in your claude_desktop_config.json to specify the directories it can access.
- Read/write files - Create/list/delete directories - Move files/directories - Search for files - Retrieve file metadata
- Managing files and directories in specified paths.
- Performing batch file read operations without interruption from failed reads.
- Integrating with other applications to manage file systems programmatically.
Add to your AI client
Use these steps to connect MCP Filesystem Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-filesystem-server-mark3labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-mark3labs"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-filesystem-server-mark3labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-mark3labs"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-filesystem-server-mark3labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-mark3labs"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-filesystem-server-mark3labs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-mark3labs"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-filesystem-server-mark3labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-mark3labs"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-filesystem-server-mark3labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-mark3labs"
]
}
}
}FAQ
Can the server access any directory on my computer?
No, the server is restricted to operations within directories specified via args during setup.
Is there a limit on the number of files I can read?
No, the `read_multiple_files` operation allows you to read multiple files at once without failing the entire operation on individual failures.
What license does the Filesystem MCP Server use?
The project is licensed under the MIT License, allowing for free use, modification, and distribution.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":133,"uuid":"d64fba2f-0454-468a-984d-bd6f7a249928","name":"mcp-filesystem-server","title":"MCP Filesystem Server","description":"Go server implementing Model Context Protocol (MCP) for filesystem operations.","avatar_url":"https://avatars.githubusercontent.com/u/17607124?v=4","created_at":"2024-12-13T09:01:19.401Z","updated_at":"2024-12-13T09:42:46.738Z","status":"created","author_name":"mark3labs","author_avatar_url":"https://avatars.githubusercontent.com/u/17607124?v=4","tags":"[]","category":"file-systems","is_featured":false,"sort":1,"url":"https://github.com/mark3labs/mcp-filesystem-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"383\",\"license\":\"MIT license\",\"language\":\"Go\",\"is_official\":false,\"latest_commit_time\":\"2025-06-02 22:31:32\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]