
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@shtse8/filesystem-mcp
Advanced tools
Empower your AI agents (like Cline/Claude) with secure, efficient, and token-saving access to your project files.
This Node.js server implements the Model Context Protocol (MCP) to provide a robust set of filesystem tools, operating safely within a defined project root directory.
cwd)
at launch. The process starting the server (e.g., your MCP host) must
set the cwd to your intended project directory.read_content, delete_items, edit_file) attempt every operation and
return a detailed result for each, indicating success or failure with
specific error messages. This allows for robust error handling and follow-up
actions.npx with minimal
configuration.npx)The simplest and recommended way to use this server is via npx, configured
directly in your MCP host environment (e.g., Roo/Cline's mcp_settings.json).
This ensures you always use the latest version from npm without needing local
installation or Docker.
Configure your MCP Host:
Modify your MCP host's settings (e.g., mcp_settings.json) to run the server
using npx.
{
"mcpServers": {
"filesystem-mcp": {
"command": "npx",
"args": [
"@shtse8/filesystem-mcp"
],
"name": "Filesystem (npx)"
}
}
}
(Alternative) Using bunx:
If you prefer using Bun, you can use bunx instead:
{
"mcpServers": {
"filesystem-mcp": {
"command": "bunx",
"args": [
"@shtse8/filesystem-mcp"
],
"name": "Filesystem (bunx)"
}
}
}
That's it! Restart your MCP Host environment (if necessary) for the settings
to take effect. Your AI agent can now use the filesystem tools. Important:
The server uses its own Current Working Directory (cwd) as the project root.
Ensure your MCP Host (e.g., Cline/VSCode) is configured to launch the npx or
bunx command with the cwd set to your active project's root directory.
This server equips your AI agent with a powerful and efficient filesystem toolkit:
📁 Explore & Inspect (list_files, stat_items):
list_files: Effortlessly list files and directories. Go deep with
recursive listing or get detailed file statistics (size, type,
timestamps) included directly in the results. Perfect for understanding
project structure.stat_items: Get detailed status information (size, type, permissions,
timestamps) for multiple files or directories in a single call.📄 Read & Write Content (read_content, write_content):
read_content: Read the full content of multiple files simultaneously.
Ideal for fetching source code or configuration files efficiently.write_content: Write content to multiple files, automatically creating
necessary parent directories. Supports both overwriting and
appending modes per file.✏️ Precision Editing & Searching (edit_file, search_files,
replace_content):
edit_file: Perform surgical edits across multiple files. Supports
precise insertion, pattern-based replacement, and deletion of
text blocks. Intelligently preserves indentation and provides diff
output for review. The ultimate tool for targeted code modifications!search_files: Unleash the power of regex search across entire
directories. Find specific code patterns, comments, or any text, complete
with surrounding context lines for each match. Filter by file patterns
(e.g., *.ts).replace_content: Perform search-and-replace operations (text or regex)
across multiple files at once.🏗️ Manage Directories (create_directories):
mkdir -p style).🗑️ Delete Safely (delete_items):
↔️ Move & Copy (move_items, copy_items):
move_items: Rename or move multiple files and directories.
Automatically creates destination parent directories if needed.copy_items: Copy multiple files and directories recursively. Ensures
destination directories exist.🔒 Control Permissions (chmod_items, chown_items):
chmod_items: Change POSIX-style permissions (e.g., '755') for multiple
files/directories.chown_items: Change owner (UID) and group (GID) for multiple
files/directories (effectiveness depends on OS and user privileges).Key Benefit: All tools accepting multiple paths/operations process each item individually and return a detailed status report, ensuring you know exactly what succeeded and what failed, even within a single batch request!
For users who prefer containerization or need a specific environment.
1. Ensure Docker is running.
2. Configure your MCP Host:
Modify your MCP host's settings to run the Docker container. Crucially, you
must mount your project directory to /app inside the container.
{
"mcpServers": {
"filesystem-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/path/to/your/project:/app",
"shtse8/filesystem-mcp:latest"
],
"name": "Filesystem (Docker)"
}
}
}
Explanation:
-v "/path/to/your/project:/app": Mounts your local project directory into
the container at /app. The server inside the container will treat /app as
its root. Remember to replace /path/to/your/project with the correct
absolute path for your system. (Note: Depending on your MCP host environment
and shell, you might be able to use variables like $PWD (Linux/macOS),
%CD% (Windows Cmd), or ${workspaceFolder} (if supported by the host)
instead of the explicit path, but this is not guaranteed to work universally.)shtse8/filesystem-mcp:latest: Specifies the Docker image. Docker will pull
it if needed.3. Restart your MCP Host environment.
git clone https://github.com/shtse8/filesystem-mcp.gitcd filesystem-mcp && npm installnpm run build{
"mcpServers": {
"filesystem-mcp": {
"command": "node",
"args": ["/path/to/cloned/repo/filesystem-mcp/build/index.js"],
"name": "Filesystem (Local Build)"
}
**Note:** When running a local build directly with `node`, ensure you launch the command from the directory you intend to be the project root, as the server will use `process.cwd()` to determine its operational scope.
}
}
npm installnpm run build (compiles TypeScript to build/)npm run watch (optional, recompiles on save)This repository uses GitHub Actions (.github/workflows/publish.yml) to
automatically:
main.main.Requires NPM_TOKEN, DOCKERHUB_USERNAME, and DOCKERHUB_TOKEN secrets
configured in the GitHub repository settings.
Contributions are welcome! Please open an issue or submit a pull request.
FAQs
An MCP server providing filesystem tools relative to a project root.
The npm package @shtse8/filesystem-mcp receives a total of 29 weekly downloads. As such, @shtse8/filesystem-mcp popularity was classified as not popular.
We found that @shtse8/filesystem-mcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.