{}const=>[]async()letfn</>var
AIDevelopment

How to connect MCP in Claude Desktop and manage files from the chat

Learn how to connect local resources to Claude and interact with files as an assistant operator. Practical guide with examples.

К

Kodik

Author

2 min read

📦 What is MCP and why does Claude need it?

MCP (Model Context Protocol) is a way for Claude to interact directly with resources on your computer.

  • ✅ Read and edit files

  • ✅ Automate tasks through CLI

  • ✅ Receive data from local directories

  • ✅ Make the interaction with Claude much deeper and more flexible

🔥 100,000+ students already with us

Tired of reading theory?
Time to code!

Kodik — an app where you learn to code through practice. AI mentor, interactive lessons, real projects.

🤖 AI 24/7
🎓 Certificates
💰 Free
🚀 Start learning
Joined today

🛠 Setting up the MCP server in Claude Desktop

📁 Step 1. Find the configuration file

On macOS, the file is usually located at the path:

~/Library/Application Support/Claude/claude_desktop_config.json

On Windows:

C:\Users\<Имя>\AppData\Roaming\Claude\claude_desktop_config.json

If the file does not exist, create it.

🧾 Step 2. Add the MCP configuration

Example configuration for connection file system:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "C:\\Users\\Mirage\\Desktop",
        "C:\\Users\\Mirage\\Downloads"
      ]
    }
  }
}

🔄 Step 3. Restart Claude

Save the file and restart Claude Desktop. When you first use it, Claude will ask for permission to use the MCP.

💬 How to use MCP in the chat

Now you can write commands directly in the chat:

Task

Team in Claude

📄 Create file

Create a file "Notes.txt" in "Documents"

🔍 Find files

Find all ".docx" in the "Work" folder

📖 Read file

Show the contents of "To-do list.txt"

✅ Performance check

Try:

Создай файл "test.txt" на рабочем столе с текстом "Greetings from Claude!"

🧩 Where will it come in handy?

  • Development and testing of local projects

  • Interaction with code and configuration directly from Claude

  • Automation of routine tasks

  • Creating your own plugins and workspaces

🧠 Tip from Kodik

Do you want to master working with files, programming and automation? 📱 Check out the app Code - we teach programming from scratch in a convenient format!

🎯Stop procrastinating

Liked the article?
Time to practice!

In Kodik, you don't just read — you write code immediately. Theory + practice = real skills.

Instant practice
🧠AI explains code
🏆Certificate

No registration • No card