npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@zio3/smart-fs-mcp

v1.1.0

Published

Model Context Protocol (MCP) server for LLM-optimized filesystem operations with safety controls. For use with Claude Desktop.

Readme

Smart Filesystem MCP (Simple-First Edition)

npm version License: MIT Node.js Version

A simple-first Model Context Protocol (MCP) server that provides LLM-optimized filesystem operations with complete CRUD support. Designed to be used with Claude Desktop or other MCP-compatible clients. Most operations complete with a single command - complexity only appears when you hit limits or perform dangerous operations.

🎯 Key Features

  • One-step operations: read_file just works for most files
  • Smart error handling: Detailed info + alternatives only when limits are exceeded
  • Safety-first: Sandboxed directory access, dry-run previews for deletions
  • LLM-optimized: Token estimation, content previews, and helpful suggestions
  • Complete CRUD: Create, Read, Update, Delete for both files and directories
  • REST API Mode: SwaggerUI for browser-based testing and CURL access

📋 Requirements

  • Node.js >= 18.0.0
  • Operating System: Windows, macOS, Linux
  • For MCP integration: Claude Desktop or compatible MCP client

🚀 Quick Start

Using with Claude Desktop

You have two options:

  1. Use directly with npx (recommended - no installation required)
  2. Install globally (if you prefer)
# Option 2: Global installation
npm install -g @zio3/smart-fs-mcp

Configure Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

Option 1: Use with npx (no installation required)

{
  "mcpServers": {
    "smart-fs-mcp": {
      "command": "npx",
      "args": ["@zio3/smart-fs-mcp", "/path/to/allowed/dir1", "/path/to/allowed/dir2"]
    }
  }
}

Option 2: Use with global installation

{
  "mcpServers": {
    "smart-fs-mcp": {
      "command": "smart-fs-mcp",
      "args": ["/path/to/allowed/dir1", "/path/to/allowed/dir2"]
    }
  }
}

Manual Testing

# Test the MCP server directly
smart-fs-mcp                                    # Current directory only
smart-fs-mcp /path/to/dir1 /path/to/dir2       # Specific directories

Development & Debugging

Local Development

# Clone and install dependencies
git clone https://github.com/zio3/smart-fs-mcp.git
cd smart-fs-mcp
npm install

# Run in development mode
npm run dev /path/to/allowed/dir1

REST API Mode (for testing without MCP)

# Start API server
npm run api:dev

# Access SwaggerUI at http://localhost:3000/api-docs

This is useful for testing the tools before using them in Claude Desktop.

🔧 Available Tools

File Operations

  • read_file - Read files with automatic size handling and partial read support (line ranges)
  • write_file - Write content with parent directory creation
  • edit_file - Smart text replacement or regex editing
  • move_file - Move, rename, or backup files
  • delete_file - Delete with safety checks

Directory Operations

  • list_directory - List contents with details
  • mkdir - Create directories recursively
  • move_directory - Move or rename directories
  • delete_directory - Delete with dry-run preview

Search & Info

  • search_content - Grep-like search with regex support
  • file_info - Detailed file/directory information
  • list_allowed_dirs - Show accessible directories

🛡️ Safety Features

  • Sandboxed Access: Only explicitly allowed directories are accessible
  • Path Traversal Protection: Blocks ../ and other escape attempts
  • Size Limits: 20KB default for read operations
  • Critical File Detection: Warnings for important files (package.json, .env, etc.)
  • Dry-Run Previews: Preview deletions before execution

📖 Documentation

🤝 Contributing

  1. Keep the simple-first philosophy
  2. Don't add steps that could be automatic
  3. Test with real-world file sizes
  4. Make error messages helpful, not preachy

📄 License

MIT License - see LICENSE file for details.

🙏 Why Simple-First?

Traditional MCP tools often require multiple steps: check → analyze → preview → read. This tool recognizes that most of the time, you just want to read the file. Complexity should only appear when actually needed, not as a precaution.