
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

A secure Python MCP server exposing local filesystem management, streaming read/write, content search and replace, image processing and Tesseract OCR tools over stdio, SSE and Streamable HTTP transports.
FsExt MCP Server (Python) is cataloged as an MCP server attributed to kurtzhi. A secure Python MCP server exposing local filesystem management, streaming read/write, content search and replace, image processing and Tesseract OCR tools over stdio, SSE and Streamable HTTP transports. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for FsExt MCP Server (Python) are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. The --lock-root option restricts all file and directory operations to the specified root workspace to prevent cross-directory path escape.
It supports stdio for local desktop clients, SSE for legacy remote streaming, and Streamable HTTP for modern bidirectional remote connections.
Yes. OCR relies on a local Tesseract binary and does not fall back to a WASM or JavaScript-based engine.
README.md · 14ecead10021 · Fetched 2026-11-13 11:56:53 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A full-featured secure MCP server for local file system operations, with built-in image processing, OCR and media tools. Fully compliant with the official Model Context Protocol specification, offering standardized request/response schemas, large-file streaming I/O, multi-transport remote deployment, and comprehensive text search & replace functionality for LLM agent integration.
additionalProperties: false schema validation to block unexpected input fields. All operations share a universal success/error wrapping structure for consistent client parsing.stdio (local desktop client integration), sse (legacy lightweight remote stream), and Streamable HTTP (modern bidirectional remote streaming transport).--lock-root directory restriction capability. All file/directory operations are strictly confined to the specified root workspace to prevent unauthorized cross-directory path escape attacks.uvx automatically pulls the published PyPI package and launches an isolated runtime environment, eliminating manual dependency installation or virtual environment setup.
# Default stdio mode, unrestricted full filesystem access
uvx fsext-mcp-server
# Lock all operations to a dedicated workspace (production security recommended)
uvx fsext-mcp-server --lock-root /your/workspace
# Stdio mode with workspace isolation
uvx fsext-mcp-server --transport stdio --lock-root /your/workspace
# Remote SSE streaming service
uvx fsext-mcp-server --transport sse --host 0.0.0.0 --port 8000 --lock-root /your/workspace
# Modern Streamable HTTP remote service
uvx fsext-mcp-server --transport http --host 0.0.0.0 --port 8000 --lock-root /your/workspace
No pre-deployment on host machines required; uvx dynamically instantiates the server when an MCP client establishes a connection.
{
"mcpServers": {
"fsext": {
"command": "uvx",
"args": [
"fsext-mcp-server",
"--lock-root",
"/your/workspace"
],
"env": {"PYTHONUTF8": "1"}
}
}
}
Session lifecycle limitations exist within official langchain-mcp-adapters; complete stable long-connection logic requires extra adapter customization. Below is the standard minimal connection template:
# Core config: Connect to FsExt MCP via uvx stdio transport
server_config = {
"fsext": {
"transport": "stdio",
"command": "uvx",
"args": ["fsext-mcp-server", "--lock-root", r"/your/workspace"],
"env": {"PYTHONUTF8": "1"}
}
}
# Load all exposed filesystem MCP tools
client = MultiServerMCPClient(server_config)
async with client.session("fsext") as session:
mcp_tools = await load_mcp_tools(session)
# Bind loaded MCP tools to LLM instance for agent workflows
llm = ChatOpenAI(base_url="your-local-llm-api").bind_tools(mcp_tools)
pip install fsext-mcp-server
# Default stdio local mode
fsext-mcp-server-py
fsext-mcp-server
# Short alias
fsext-py
fsext
# Secure workspace locked mode
fsext --lock-root /your/workspace
# Remote SSE streaming server
fsext --transport sse --port 8000
It is recommended to use uv for fast, deterministic environment deployment:
# Clone official source repository
git clone https://github.com/kurtzhi/fsext-mcp-server-python
cd fsext-mcp-server-python
# Install full runtime + dev dependencies
uv sync
The server supports three official MCP transport modes and flexible workspace root isolation configuration via CLI flags.
| Parameter | Default Value | Description |
|---|---|---|
--transport | stdio | MCP transport type: stdio / sse / http |
--host | 127.0.0.1 | Network bind address (ignored under stdio transport) |
--port | 8000 | Service bind port (ignored under stdio transport) |
--lock-root | None | Restrict all filesystem operations to this root directory; full unrestricted access if omitted |
uv run -m fsext
uv run -m fsext --lock-root /your/workspace/path
uv run -m fsext --transport sse --host 0.0.0.0 --port 8000
http://<host>:<port>/ssehttp://<host>:<port>/messageshttp://127.0.0.1:8000/sseuv run -m fsext --transport http --host 0.0.0.0 --port 8000
Single shared entry point for both client requests and server streaming:
http://<host>:<port>/mcp
http://127.0.0.1:8000/mcp| Feature | SSE Dual-Endpoint Transport | Streamable HTTP Single-Endpoint Transport |
|---|---|---|
| Endpoint Architecture | Two separate endpoints: GET stream subscription + POST message sender | Single unified URL handles all bidirectional traffic |
| Communication Pattern | Unidirectional server-to-client event push only | Full bidirectional request/stream hybrid capability |
| Connection Reliability | Frequent session loss, complex cross-endpoint state management | Automatic session recovery, optimized for high concurrent remote connections |
| Official Specification Status | Legacy compatible implementation, not recommended for new deployments | Current official MCP standard for remote network integrations |
All MCP tools share an identical top-level wrapping JSON structure for both successful execution and runtime failure states. Every tool’s business payload is nested within the info sub-object under the root res field.
{
"res": {
"success": boolean,
"info": object
}
}
success: Global operation status flag
true: Tool logic executed without exceptions; info contains tool-specific return datafalse: Operation failed (workspace escape block, missing file, IO error, invalid input schema, permission denied, etc.)info field:
success: true): Custom structured business payload unique to each toolsuccess: false): Fixed standardized error object with machine-readable error code and human-readable explanation
"info": {
"code": "ERROR_CODE_IDENTIFIER",
"message": "Detailed human-readable failure description"
}
{
"res": {
"success": true,
"info": {
"paths": [
"/tmp/tests/test_util.py",
"/tmp/tests/__init__.py",
"/tmp/tests/img/cochem_castle.jpg"
]
}
}
}
{
"res": {
"success": false,
"info": {
"code": "WORKSPACE_ESCAPE_FORBIDDEN",
"message": "Access restricted: Path `/tmp/test2` is outside allowed workspace `/tmp/tests`"
}
}
}
All tools enforce workspace root isolation and fully follow the standardized input/output schema definitions listed below.
All tool input schemas enable additionalProperties: false strict validation to reject unrecognized parameters and prevent malicious path injection vectors.
Description: Scan target directory recursively or shallowly, return filtered absolute filesystem path list with file-type and extension filtering controls. Parameters:
source_dir (string, required): Root directory path for scanningrecursive (boolean, required): Enable full recursive traversal of all subdirectoriesonly_files (boolean, required): Filter output to return only regular files, exclude directoriesfile_extension (string, optional, default=""): Filter results to files matching the specified suffix extension
Success Response Payload:{
"res": {
"success": true,
"info": {
"paths": ["/absolute/path/file1.txt", "/absolute/path/file2.py"]
}
}
}
Description: Recursively copy an entire directory tree, with configurable overwrite behavior for pre-existing target directories. Parameters:
source_dir (string, required): Source directory tree pathcopy_dest_dir (string, required): Target output directory pathoverwrite (boolean, optional, default=false): Clear and overwrite existing destination directory contents
Success Response Payload:{
"res": {
"success": true,
"info": {}
}
}
Description: Atomically move an entire directory tree to a new target path. Fails immediately if destination exists unless overwrite is explicitly enabled to avoid accidental data loss. Parameters:
source_dir (string, required): Source directory pathdest_dir (string, required): Target directory pathoverwrite (boolean, optional, default=false): Allow overwriting conflicting destination directories
Success Response Payload: Empty info object wrapper with success flag.Description: Create a new text file, automatically generate missing parent directories, support configurable text encoding and initial file content. Parameters:
file_path (string, required): Target absolute file pathcontent (string, optional, default=""): Initial text content written to the new filecharset (string, optional, default="utf-8"): Text encoding enum value (full charset list below)
Supported Charset Enum Values:
utf-8, utf-16, latin-1, iso-8859-1, cp1252, Windows-1252, gbk, gb2312, shift_jis, euc_jp, euc_kr
Success Response Payload: Empty info object wrapper with success flag.Description: Permanently delete a single regular file only; rejects directory path inputs to block mass recursive deletion risks. Parameters:
file_path (string, required): Target regular file absolute path
Success Response Payload: Empty info object wrapper with success flag.Description: Copy a single file while retaining original filesystem metadata, with configurable overwrite for conflicting target files. Parameters:
source_file_path (string, required): Source file absolute pathdest_file_path (string, required): Target output file absolute pathoverwrite (boolean, optional, default=false): Overwrite pre-existing destination file
Success Response Payload: Empty info object wrapper with success flag.Description: Atomically move a single file to a new absolute path, with configurable overwrite behavior for conflicting destination files. Parameters:
source_file_path (string, required): Source file absolute pathdest_file_path (string, required): Target file absolute pathoverwrite (boolean, optional, default=false): Allow overwriting conflicting destination files
Success Response Payload: Empty info object wrapper with success flag.Description: Retrieve complete metadata for files or directories, with optional SHA-256 cryptographic digest calculation for integrity verification. Parameters:
file_path (string, required): Target filesystem entry absolute pathcalc_digest (boolean, optional, default=false): Compute SHA-256 hash of file contents
Success Response Payload:{
"res": {
"success": true,
"info": {
"absolute_path": "C:\\Users\\zhigu\\Documents\\My Games\\fsext-mcp-server\\pyproject.toml",
"is_readable": true,
"is_writable": true,
"size": 1672,
"is_regular_file": true,
"is_directory": false,
"is_symbolic_link": false,
"creation_millis": 1782288135574.7114,
"last_modified_millis": 1782279393020.1187,
"last_access_millis": 1782644004556.3462,
"sha256_digest": "59614cf5f8ecff38de37637f1d5b6f607d885bd277815786f5ce4bb2ee5b73a6"
}
}
}
Description: Lightweight existence check for any filesystem entry (file or directory) without loading full metadata. Parameters:
file_path (string, required): Target absolute path to verify
Success Response Payload:{
"res": {
"success": true,
"info": {
"exists": true
}
}
}
Description: Read the complete text content of a target file with user-specified text encoding. Parameters:
file_path (string, required): Target text file absolute pathcharset (string, optional, default="utf-8"): Text encoding enum value
Success Response Payload:{
"res": {
"success": true,
"info": {
"content": "complete-text-file-content-here"
}
}
}
Description: Stream segmented text reading optimized for large files; skip leading lines and limit total read lines to avoid memory overload. Parameters:
file_path (string, required): Target text file absolute pathlines_to_skip (integer, required, minimum=0): Number of initial lines to skip during readingmax_lines_to_read (integer, required, minimum=0): Maximum total lines to extract from fileline_separator (string, optional, default="\n"): Line break delimiter charactercharset (string, optional, default="utf-8"): Text encoding enum value
Success Response Payload:{
"res": {
"success": true,
"info": {
"lines_count": 5,
"content": "segmented-text-content-block"
}
}
}
Description: Chunked streaming read for binary files; returns Base64 encoded byte payloads for safe network JSON-RPC transmission with end-of-stream marker detection. Parameters:
file_path (string, required): Target binary file absolute pathbytes_to_skip (integer, required, minimum=0): Number of leading bytes to skip before reading chunkmax_bytes_to_read (integer, required, minimum=0): Maximum byte length to read in single chunk
Success Response Payload:{
"res": {
"success": true,
"info": {
"data_base64": "base64-encoded-binary-byte-data",
"raw_bytes_length": 5,
"end_of_stream": true
}
}
}
Description: Write UTF or multi-encoded text content to target file, supporting full overwrite or append-only write modes. Parameters:
file_path (string, required): Target output file absolute pathtext (string, required, minLength=1): Raw text content to persistappend (boolean, optional, default=false): Append mode flag (false = overwrite entire file)charset (string, optional, default="utf-8"): Text encoding enum value
Success Response Payload: Empty info object wrapper with success flag.Description: Decode Base64 encoded binary payload and write raw bytes to target file, supporting append mode for multi-chunk binary uploads. Parameters:
file_path (string, required): Target output file absolute pathbase64_data (string, required, minLength=1): Base64 encoded raw binary byte payloadappend (boolean, optional, default=false): Append binary data to end of file (false = overwrite)
Success Response Payload: Empty info object wrapper with success flag.Description: Recursively scan directory tree and return absolute paths of all files containing matching target text pattern; support regex matching, case insensitivity, and file extension filtering. Parameters:
dir_path (string, required): Root directory for recursive content scanrecursive (boolean, required): Enable full subdirectory recursionsearch_term (string, required): Plain text keyword or regular expression patternis_regex (boolean, optional, default=false): Treat search_term as regex pattern when trueignore_case (boolean, optional, default=true): Case-insensitive pattern matchingfile_extension (string, optional, default=""): Filter scanned files by extension suffixcharset (string, optional, default="utf-8"): Text encoding enum value for file parsingDescription: Multi-directory bulk content matching, returns structured match results with configurable preceding and trailing context lines around matched content, plus global result count limiting. Parameters:
dir_path (string, required): Root scan directory absolute pathrecursive (boolean, required): Enable full recursive subdirectory traversalsearch_term (string, required): Search keyword or regex patternlimit (integer, required): Hard maximum limit on total returned matching entriesis_regex (boolean, optional, default=false): Enable regular expression matchingignore_case (boolean, optional, default=true): Disable case-sensitive matchinglines_before (integer, optional, default=0): Number of context lines preceding each matched linelines_after (integer, optional, default=0): Number of context lines following each matched linefile_extension (string, optional, default=""): Filter scanned files by extension suffixcharset (string, optional, default="utf-8"): Text encoding enum value for file parsing
Success Response Payload:{
"res": {
"success": true,
"info": {
"results": [
{
"file_path": "/absolute/path/source.py",
"start_line": 1,
"end_line": 1,
"text": "full-matched-line-content-with-context"
}
]
}
}
}
Description: Precision single-file content search, returns structured matching segments with configurable pre/post context lines for code and document inspection workflows. Parameters:
file_path (string, required): Target single file absolute pathsearch_term (string, required): Search keyword or regex patternis_regex (boolean, optional, default=false): Enable regular expression matching logicignore_case (boolean, optional, default=true): Case-insensitive matching togglelines_before (integer, optional, default=0): Preceding context lines for each matchlines_after (integer, optional, default=0): Subsequent context lines for each matchcharset (string, optional, default="utf-8"): Text encoding enum value for file parsing
Success Response Payload: Structured array of line match objects identical to multi-file search output format.Description: Perform global in-place text replacement within a single target file; return total count of matched and replaced text segments after write. Parameters:
file_path (string, required): Target editable file absolute pathsearch_term (string, required): Text substring to locate and replacereplacement (string, required): New replacement text payloadline_separator (string, optional, default="\n"): Line break delimiter for file parsing
Success Response Payload:{
"res": {
"success": true,
"info": {
"count": 1
}
}
}
Description: Resize source image to specified width/height dimensions, with native support for aspect ratio preservation and canvas padding to fill exact target resolution dimensions. Parameters:
source_path (string, required): Source input image absolute pathdest_path (string, required): Resized output image absolute pathwidth (integer, required, exclusiveMinimum=0): Target pixel width dimensionheight (integer, required, exclusiveMinimum=0): Target pixel height dimensionkeep_aspect_ratio (boolean, optional, default=true): Lock original image aspect ratio during scalingpad_to_target (boolean, optional, default=true): Add transparent padding to fill exact target width/height when aspect ratio is locked
Success Response Payload: Empty info object wrapper with success flag.Description: Extract a rectangular pixel region from source image and export as a standalone output image file. Parameters:
source_path (string, required): Source input image absolute pathdest_path (string, required): Cropped output image absolute pathx (integer, required, minimum=0): Left pixel coordinate of crop region originy (integer, required, minimum=0): Top pixel coordinate of crop region originwidth (integer, required, exclusiveMinimum=0): Pixel width of cropped rectangular regionheight (integer, required, exclusiveMinimum=0): Pixel height of cropped rectangular region
Success Response Payload: Empty info object wrapper with success flag.Description: Rotate source image clockwise by arbitrary floating-point degree values; automatically expand output canvas dimensions to retain full image content without clipping edges. Parameters:
source_path (string, required): Source input image absolute pathdest_path (string, required): Rotated output image absolute pathdegrees (number, required): Clockwise rotation angle in degrees
Success Response Payload: Empty info object wrapper with success flag.Description: Extract human-readable text from raster image files via local Tesseract OCR binary installation. No WASM JavaScript fallback implementation exists; an empty tesseract_bin_path argument will not initialize alternative web-based OCR engines.
Parameters:
image_path (string, required): Input image absolute path for text recognitiontesseract_bin_path (string, optional, default=""): Absolute path to local Tesseract executable binary; empty value uses system PATH lookup onlytessdata_path (string, optional, default=""): Absolute directory path containing Tesseract language training data fileslang (string, optional, default="eng"): Language code prefix matching available tessdata training files
Success Response Payload:{
"res": {
"success": true,
"info": {
"content": "full-ocr-extracted-text-from-input-image"
}
}
}
All standardized npm-equivalent uv development scripts for source repository contributors:
# Clean compiled build artifacts and temporary output directories
uv run -m scripts.clean
# Compile source code and type validation
uv run -m scripts.build
# Watch source files for incremental development rebuilds
uv run -m scripts.dev
# Full rebuild pipeline: clean artifacts + full source compilation
uv run -m scripts.rebuild
# Launch remote SSE transport server instance
uv run -m scripts.server
# FastMCP interactive development mode
uv run -m scripts.fastmcp
# MCP Inspector debug connection launcher
uv run -m scripts.inspect
# Execute full test suite with compiled test artifacts
uv run -m scripts.test
This project is open-sourced under the Apache License 2.0. See the LICENSE file located in the project root directory for complete legal license terms and conditions.
This project integrates multiple open-source dependency libraries including chardet, Pillow, python-magic, and Tesseract bindings. All third-party libraries retain their respective original open-source license agreements and copyright statements.
Important Note: No FFmpeg binary artifacts are bundled within this distribution. End users must comply with FFmpeg’s official licensing terms separately if media processing extensions are enabled externally.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for FsExt MCP Server (Python) from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/fsext-mcp-server-python)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.