Prerequisites
Before starting this tutorial, ensure you have the following installed on your system:Claude Desktop
Download and install Claude Desktop for your operating system. Claude Desktop is available for macOS and Windows. If you already have Claude Desktop installed, verify you’re running the latest version by clicking the Claude menu and selecting “Check for Updates…”Node.js
The Filesystem Server and many other MCP servers require Node.js to run. Verify your Node.js installation by opening a terminal or command prompt and running:node --version
Understanding MCP Servers
MCP servers are programs that run on your computer and provide specific capabilities to Claude Desktop through a standardized protocol. Each server exposes tools that Claude can use to perform actions, with your approval. The Filesystem Server we’ll install provides tools for:- Reading file contents and directory structures
- Creating new files and directories
- Moving and renaming files
- Searching for files by name or content
Installing the Filesystem Server
The process involves configuring Claude Desktop to automatically start the Filesystem Server whenever you launch the application. This configuration is done through a JSON file that tells Claude Desktop which servers to run and how to connect to them.1
Open Claude Desktop Settings
Start by accessing the Claude Desktop settings. Click on the Claude menu in your system’s menu bar (not the settings within the Claude window itself) and select “Settings…”On macOS, this appears in the top menu bar:This opens the Claude Desktop configuration window, which is separate from your Claude account settings.
2
Access Developer Settings
In the Settings window, navigate to the “Developer” tab in the left sidebar. This section contains options for configuring MCP servers and other developer features.Click the “Edit Config” button to open the configuration file:This action creates a new configuration file if one doesn’t exist, or opens your existing configuration. The file is located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
3
Configure the Filesystem Server
Replace the contents of the configuration file with the following JSON structure. This configuration tells Claude Desktop to start the Filesystem Server with access to specific directories:Replace
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/Users/username/Downloads"
]
}
}
}
username with your actual computer username. The paths listed in the args array specify which directories the Filesystem Server can access. You can modify these paths or add additional directories as needed.Understanding the Configuration
"filesystem": A friendly name for the server that appears in Claude Desktop"command": "npx": Uses Node.js’s npx tool to run the server"-y": Automatically confirms the installation of the server package"@modelcontextprotocol/server-filesystem": The package name of the Filesystem Server- The remaining arguments: Directories the server is allowed to access
Security ConsiderationOnly grant access to directories you’re comfortable with Claude reading and modifying. The server runs with your user account permissions, so it can perform any file operations you can perform manually.
4
Restart Claude Desktop
After saving the configuration file, completely quit Claude Desktop and restart it. The application needs to restart to load the new configuration and start the MCP server.Upon successful restart, you’ll see an MCP server indicator 👁 Image
in the bottom-right corner of the conversation input box:Click on this indicator to view the available tools provided by the Filesystem Server:If the server indicator doesn’t appear, refer to the Troubleshooting section for debugging steps.
in the bottom-right corner of the conversation input box:Click on this indicator to view the available tools provided by the Filesystem Server:If the server indicator doesn’t appear, refer to the Troubleshooting section for debugging steps.
Using the Filesystem Server
With the Filesystem Server connected, Claude can now interact with your file system. Try these example requests to explore the capabilities:File Management Examples
- “Can you write a poem and save it to my desktop?” - Claude will compose a poem and create a new text file on your desktop
- “What work-related files are in my downloads folder?” - Claude will scan your downloads and identify work-related documents
- “Please organize all images on my desktop into a new folder called ‘Images’” - Claude will create a folder and move image files into it
How Approval Works
Before executing any file system operation, Claude will request your approval. This ensures you maintain control over all actions: Review each request carefully before approving. You can always deny a request if you’re not comfortable with the proposed action.Troubleshooting
If you encounter issues setting up or using the Filesystem Server, these solutions address common problems:Next Steps
Now that you’ve successfully connected Claude Desktop to a local MCP server, explore these options to expand your setup:Explore other servers
Browse our collection of official and community-created MCP servers for
additional capabilities
Build your own server
Create custom MCP servers tailored to your specific workflows and
integrations
Connect to remote servers
Learn how to connect Claude to remote MCP servers for cloud-based tools and
services
Understand the protocol
Dive deeper into how MCP works and its architecture
