Secure filesystem access for AI agents with configurable directory and file type restrictions
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by FileSystem MCP Server.
directoryThe absolute or relative path to the directory (supports both / and \\ separators)
pathAbsolute or relative path to the resource
file_pathPath to write to (must be within allowed dirs)
contentText string to write
content_base64Base64-encoded binary data
Local MCP server for Visual Studio 2022+ that provides code-workspace functionality by giving AI agents selective access to project folders and files
This MCP server is optimized for:
.code-workspace files--allow-write (disabled by default)\) and Unix (/) path separatorsEnsure you have Python 3.10+ installed
Clone the repository
Navigate to the project directory
Install dependencies using uv:
.mcp.jsoninit() tool firstThe easiest way to get started! Create a config.json file:
For MCP server usage:
config.json in the same folder as your .mcp.json file (usually C:\Users\YourUsername\)For debugging from source (Visual Studio 2022+):
config.json in the same directory as app.py (D:/Projects/filesystem_server/)Note: Set
"allow_write": trueto enablewrite_fileandwrite_file_binarytools.
Add this to your .mcp.json file (usually C:\Users\YourUsername\ in VS 2022+):
Note: When installed via pip, the command is just vs-filesystem-mcp-server - no path to app.py needed!
If you're developing and running from source code:
Benefits:
Usage:
Important Location Notes:
config.json goes next to app.pyconfig.json goes next to .mcp.jsonBest for production MCP client configurations where you want everything in one place:
MCP Client Configuration (.mcp.json):
Benefits:
The server automatically uses command-line arguments first, then falls back to config.json if no arguments provided.
How it works:
Benefits:
init(directory, file_path) - Validates accessibility of configured directories and can optionally list a directory and/or read a file
directory (optional): Directory path to list contents (can be None)file_path (optional): File path to read content (can be None){ "message": "OK", "isError": false, ... } if all directories accessiblelist_directory(directory, report_progress=True, batch_size=100) - Lists files and subdirectories in a given directory, with optional progress reporting
directory: The absolute or relative path to the directory (supports both / and \ separators)report_progress (optional): If True, returns progress information and batch details (default: True)batch_size (optional): Number of items to process before reporting progress (default: 100)report_progress is Falsereport_progress is True"error" and "error_message" keysread_file(file_path) - Reads the content of a specified file as text
read_file_binary(file_path) - Reads the content of a specified file as base64-encoded binary
{ "content_base64": <base64 string>, "encoding": "base64", "error": False } on successFactual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/filesystem-mcp-server)<a href="https://allmcps.com/mcp/filesystem-mcp-server"><img src="https://allmcps.com/api/badge/filesystem-mcp-server?style=directory" alt="FileSystem MCP Server on AllMCPs" /></a>