Filesystem MCP Server
Overview
Filesystem MCP Server is an implementation of a Model Context Protocol (MCP) server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
To use the Filesystem MCP Server, clone the repository, install the necessary dependencies, build the server, and configure the MCP settings. You can then interact with the server using various file system operations.
- Supports various file system operations such as listing, creating, reading, writing, and appending files. - Provides analysis operations to analyze text file properties and calculate file hashes. - Includes compression operations for creating and extracting ZIP archives.
- Managing file directories and contents programmatically.
- Analyzing text files for statistics like line and word counts.
- Creating and extracting ZIP files for file management.
Add to your AI client
Use these steps to connect Filesystem MCP 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-lxiaolong068": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-lxiaolong068"
]
}
}
}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-lxiaolong068": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-lxiaolong068"
]
}
}
}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-lxiaolong068": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-lxiaolong068"
]
}
}
}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-lxiaolong068": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-lxiaolong068"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-filesystem-server-lxiaolong068": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-lxiaolong068"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-filesystem-server-lxiaolong068": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-filesystem-server-lxiaolong068"
]
}
}
}FAQ
What programming language is used for the server?
The server is implemented in TypeScript.
How can I contribute to the project?
You can fork the repository, create a feature branch, write tests, and submit a pull request.
Is there a license for this project?
Yes, the project is licensed under the MIT license.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3041,"uuid":"a08953da-f05c-40d6-ab5d-8b4692263f77","name":"mcp-filesystem-server","title":"Filesystem MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/152262674?v=4","created_at":"2025-03-17T02:38:39.954Z","updated_at":"2025-03-17T03:01:23.768Z","status":"created","author_name":"lxiaolong068","author_avatar_url":"https://avatars.githubusercontent.com/u/152262674?v=4","tags":"[]","category":"file-systems","is_featured":false,"sort":1,"url":"https://github.com/lxiaolong068/mcp-filesystem-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-17 03:49:45\"}","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"}]]}]