MCP Setup Guide · #1 Essential

How to Set Up Filesystem MCP with ClawdBot

The foundation MCP: let ClawdBot read, write, and manage files—safely scoped to directories you choose.

Overview

The Filesystem MCP enables:

Security: Access is strictly limited to paths you specify. ClawdBot cannot escape these directories.

Prerequisites

Basic Setup

Allow access to a single working directory:

Single Directory Config json
{
  "filesystem": {
    "command": "npx",
    "args": ["-y", "@modelcontextprotocol/server-filesystem", "./workdir"]
  }
}

Replace ./workdir with your project folder path.

Multiple Directories

Grant access to several locations:

Multi-Path Config json
{
  "filesystem": {
    "command": "npx",
    "args": [
      "-y", "@modelcontextprotocol/server-filesystem",
      "./projects",
      "./documents",
      "/tmp/clawdbot-scratch"
    ]
  }
}

Path Rules

Verify Setup

  1. Run clawdbot status — filesystem MCP should show as "running"
  2. Test: "List files in the current directory"
  3. Test: "Read the contents of README.md"
  4. Test: "Create a file called test.txt with 'Hello World'"

Common Errors

ErrorCauseFix
Path not allowed Requested path outside allowed directories Add the path to config args, or use allowed path
ENOENT File or directory doesn't exist Check path spelling, create parent directories
EACCES Permission denied at OS level Check file permissions, run ClawdBot with appropriate user
Directory not found Config path doesn't exist Create the directory first, or fix the path

Security Best Practices

⚠️ Important Security Notes

  • Never allow / or C:\ — always scope to specific directories
  • Avoid ~ (home directory) unless you trust all operations
  • Use a dedicated scratch directory for AI-generated files
  • Regularly audit what ClawdBot has written

Recommended Setup

Example Prompts

Integration with Other MCPs

Filesystem pairs well with:

Related MCPs