Guide: Connecting Filesystem to Cursor and Claude Desktop
The Filesystem MCP server is used to: Secure access to local folders. Allows the AI to read, edit, and create files on your disk within permitted directories. Instead of manually writing configuration files, use the generator on the right.
AI Skills (Prompt Recipes)
Copy these prompts and send them to Claude/Cursor after connecting the tool to activate the skills:
Code Refactoring Analysis
Scan all `.py` files in the allowed directory, find functions that lack docstrings, and write docstrings for them.
Common Troubleshooting Issues:
- Missing commas in
claude_desktop_config.json, which crashes the entire client. - Incorrect slash escaping in Windows paths (use
\\\\instead of\\). - Incorrect arguments syntax in the JSON array.
Fill in the fields below to generate the JSON config, CLI command, or schema for AI agents.
claude_desktop_config.json
Terminal / Console
Tool JSON Schema for OpenAI/CrewAI
LangChain Python Tool