Skip to main content
Glama
Grim-235

Native MCP Filesystem Workspace for Claude

by Grim-235
README.md
ο»Ώ# Native MCP Filesystem Workspace for Claude

A robust, production-ready local filesystem workspace for **Claude Desktop** using the **Model Context Protocol (MCP)** on Windows.

## πŸš€ Features

- **Direct Node.js Execution**: Eliminates Windows `npx` `ENOENT` / `.cmd` spawn bugs by running through the native `node.exe` binary.
- **Structured Workspace**: Prevents "junk drawer" clutter with clear dedicated directories (`inbox`, `projects`, `notes`, `archive`).
- **Built-in Undo / Version Control**: Git initialized with `.gitignore` so every AI modification can be diffed and rolled back with `git diff` or `git restore`.
- **Full Read & Write**: Enables `read_text_file`, `write_file`, `edit_file`, `create_directory`, and directory tree listing within `D:\MCP`.
- **Strict Security Guardrail**: Enforces strict path validationβ€”Claude cannot access files outside this workspace.

---

## πŸ“ Workspace Structure

```text
D:\MCP\
β”œβ”€β”€ inbox/       # Drop raw files, PDFs, or CSVs here for Claude to process
β”œβ”€β”€ projects/    # Active projects and codebases (one subfolder per project)
β”œβ”€β”€ notes/       # Scratchpad, research notes, meeting logs, summaries
β”œβ”€β”€ archive/     # Completed work and historical records
β”œβ”€β”€ .gitignore   # Excludes node_modules and npm lockfiles
└── package.json # Manages the local MCP filesystem server
```

---

## πŸ› οΈ Setup & Configuration

### 1. Install Dependencies
```powershell
cd D:\MCP
npm install
```

### 2. Configure Claude Desktop
Add the following to your Claude Desktop configuration file (`%APPDATA%\Claude\claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "filesystem": {
      "command": "C:\\Program Files\\nodejs\\node.exe",
      "args": [
        "D:\\MCP\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
        "D:\\MCP"
      ]
    }
  }
}
```

### 3. Restart Claude Desktop
Fully exit Claude Desktop from the Windows System Tray and re-open it. Look for the hammer icon in the chat box.

---

## πŸ›‘οΈ Git Safety Net Commands

```powershell
# See what Claude just edited:
git diff

# Keep Claude's changes:
git add . && git commit -m "Claude update"

# Undo all Claude's changes if it made a mistake:
git restore .
```

Maintenance

ActivityMaintained
ResponsivenessNo issues