The Model Context Protocol (MCP) is revolutionizing how AI assistants like Claude interact with external tools and data sources. By connecting Claude to an MCP server, you can enable it to perform tasks such as reading, writing, and organizing files on your computer—all with your explicit permission. This guide will walk you through the process of setting up an MCP server with Claude Desktop.
๐งฐ Prerequisites
Before you begin, ensure you have the following:
-
Claude for Desktop: Available for macOS and Windows. Download it from Claude for Desktop.
-
Node.js: Required to run the MCP server. Download it from nodejs.org.
๐ ️ Step 1: Install Claude for Desktop
-
Download and install Claude for Desktop for your operating system.
-
Open the application.
-
In the menu bar, click on Claude and select Check for Updates to ensure you have the latest version.
๐ Step 2: Configure the Filesystem MCP Server
-
In Claude for Desktop, go to Settings (not the in-app settings).
-
Click on the Developer tab.
-
Click on Edit Config. This will open the configuration file:
-
On macOS:
~/Library/Application Support/Claude/claude_desktop_config.json -
On Windows:
%APPDATA%\Claude\claude_desktop_config.json
-
-
Replace the contents of the file with the following, updating the paths to match your system
๐ Step 3: Restart Claude for Desktop
After saving the configuration file, restart Claude for Desktop to apply the changes.
๐งช Step 4: Test the Integration
Once Claude restarts, you should see a hammer icon in the bottom right corner of the input box. Clicking on this icon will display the tools available through the Filesystem MCP Server.
Try asking Claude to perform tasks like:
-
"Can you write a poem and save it to my desktop?"
-
"What are some work-related files in my downloads folder?"
-
"Can you take all the images on my desktop and move them to a new folder called 'Images'?"
๐ ️ Troubleshooting Tips
If the server isn't connecting:
-
Ensure Node.js is installed by running
node --versionin your terminal or command prompt. -
Verify that the paths in your
claude_desktop_config.jsonfile are correct and absolute. -
Check the syntax of your JSON configuration file.
-
Review Claude's log files for errors:
-
macOS:
~/Library/Logs/Claude -
Windows:
%APPDATA%\Claude\logs
-
-
Manually run the server to check for errors
No comments:
Post a Comment