Filesystem Context Mcp Server

by j0hanz

321 downloads Not rated yet
GitHub

About

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

Explore

- 🔒 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

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.

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)

| 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) |

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.