Filesystem Context Mcp Server

by j0hanz

321 downloads
Not rated
GitHub

About

Read-only MCP server for secure filesystem exploration, searching, and analysis

Details

Author
j0hanz
Downloads
321
Categories
Other, Search, Security

- Security-first: read-only operations with strict path validation
- Symlink protection prevents directory escape attacks
- Batch operations for efficient parallel file reading
- Rich metadata: file types, sizes, permissions, MIME types
- Powerful search with glob patterns and regex content search
- JSON directory tree for easy AI parsing

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Filesystem Context Mcp Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npx and configure the server to allow specific directories. Tools such as list_directory, read_file, search_files, search_content, and directory_tree are called through the Model Context Protocol interface to explore and read files without modifying them.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "filesystem context mcp server": {
            "filesystem-context": {
                "command": "npx",
                "args": [
                    "-y",
                    "@j0hanz/filesystem-context-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "filesystem-context": {
        "command": "npx",
        "args": [
            "-y",
            "@j0hanz/filesystem-context-mcp"
        ]
    }
}

Features

- πŸ”’ Security-first: Read-only operations with path validation - 🚫 Symlink protection: Prevents directory escape attacks - ⚑ Batch operations: Efficient parallel file reading - πŸ“Š Rich metadata: File types, sizes, permissions, MIME types - πŸ” Powerful search: Glob patterns and regex content search

Tools

| Tool | Description | |------|-------------| | list_allowed_directories | Check accessible directories | | list_directory | List contents with sorting and metadata | | directory_tree | JSON tree structure for AI parsing | | analyze_directory | Statistics: file counts, sizes, types | | search_files | Find files by glob patterns | | search_content | Grep-like regex search within files | | read_file | Read single file with encoding options | | read_multiple_files | Batch read multiple files in parallel | | read_media_file | Read binary/media files as base64 | | get_file_info | Detailed metadata (size, MIME, permissions) |

Installation

``bash npx -y @j0hanz/filesystem-context-mcp@latest ``
No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.