Secure Filesystem MCP server

Secure filesystem server that provides controlled access to local files and directories through robust path validation, comprehensive file operations, and a Sequential Thinking tool for step-by-step problem solving.
Back to servers
Setup instructions
Provider
lpsDevelopers
Release date
Mar 21, 2025
Language
Python
Stats
1 star

This MCP server provides Claude with advanced capabilities including secure file system access and sequential thinking tools, enhancing AI assistant functionality in work environments.

Installation Requirements

  • Python 3.10 or higher
  • UV (Python package manager) installed and in system PATH
  • Latest Claude Desktop version

Installation Steps

1. Install UV (if not already installed)

For Windows (PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

For macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

2. Verify UV installation

uv --version

3. Get the LPS-MCP server

git clone https://github.com/lpsDevelopers/LPS-MCP
cd mcp-lps

4. Install dependencies

uv pip install "mcp[cli]"

Setting Up with Claude Desktop

1. Configure Claude Desktop

Open Claude Desktop settings (Claude menu → Settings → Developer → Edit Settings)

2. Add MCP server configuration

Add the following to your claude_desktop_config.json file:

{
  "mcpServers": {
    "lps-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/LPS-MCP",
        "run",
        "server.py",
        "path/to/directory"
      ]
    }
  }
}

Note: Replace path/to/LPS-MCP with the absolute path to the directory containing server.py. The last parameter defines which directories will be accessible (separate multiple directories with commas).

Language option: To use tool descriptions in Spanish, select server_es.py instead of server.py

3. Restart Claude Desktop

Restart the application to load the new configuration.

Available Tools

File System Tools

  • read_file: Read a file's content
  • read_multiple_files: Read several files at once
  • list_directory: Show files and directories at a location
  • directory_tree: Display directory structure in JSON format
  • search_files_tool: Search for files by name
  • get_file_info: Display file metadata
  • list_allowed_directories: Show accessible directories

Sequential Thinking Tool

  • sequentialthinking: Allows Claude to break down complex problems into structured thinking steps, enabling:
    • Following logical thought sequences
    • Reviewing previous thoughts
    • Creating branches to explore different approaches
    • Dynamically adjusting the number of steps needed

Using the MCP Server

Once configured, you can ask Claude to:

Access Files

  • "Can you read the file [path]?"
  • "Show me the content of [path]"

Explore Directories

  • "What files are in [directory]?"
  • "Show me the file structure in [directory]"

Use Sequential Thinking

  • "Analyze step by step the following problem: [problem]"
  • "Develop a plan for [task] using sequential thinking"

Combine Tools

You can have Claude first explore your project structure and files, then use sequential thinking to solve complex code-related problems.

Troubleshooting

  • Server doesn't appear in Claude: Ensure UV is properly installed and in PATH, and verify the paths in the configuration file are correct.
  • Access denied error: Check that you're attempting to access directories within the allowed paths.
  • Claude can't find the tools: Restart Claude Desktop after modifying the configuration.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "lps-mcp" '{"command":"uv","args":["--directory","path/to/LPS-MCP","run","server.py","path/to/directory"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "lps-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "path/to/LPS-MCP",
                "run",
                "server.py",
                "path/to/directory"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

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

2. Add this to your configuration file:

{
    "mcpServers": {
        "lps-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "path/to/LPS-MCP",
                "run",
                "server.py",
                "path/to/directory"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later