filesystem-edit-mcp
An MCP (Model Context Protocol) server for filesystem operations with encoding support and umlaut fixing for C++ code.
Architecture
Encoding & Temp File Flow
Features
- read_text_file: Read files with configurable encoding per file extension
- edit_file: Edit files with pattern matching and automatic umlaut fixing
- Path validation: Security boundary enforcement via
ALLOWED_DIRS - Encoding support: Configure encodings per file pattern (e.g., latin-1 for
.cpp) - Umlaut fixing: Transform German umlauts in C++ string literals, comments, and character constants
Installation
Requires:
- Python ≥ 3.13
- Node.js +
npxon PATH (the server spawns@modelcontextprotocol/server-filesystemas a subprocess)
Python deps (mcp, pydantic, tree-sitter, tree-sitter-cpp) are pulled in automatically by uvx:
uvx filesystem-edit-mcp /path/to/your/codebase
Configuration
Add to your MCP client config (Windsurf / Cursor / any MCP-compatible client):
{
"mcpServers": {
"filesystem-edit-mcp": {
"command": "uvx",
"args": ["filesystem-edit-mcp", "/path/to/your/codebase"]
}
}
}
Multiple directories:
{
"mcpServers": {
"filesystem-edit-mcp": {
"command": "uvx",
"args": ["filesystem-edit-mcp", "/path/to/dir1", "/path/to/dir2"]
}
}
}
Environment Variables
| Variable | Description |
|---|---|
ALLOWED_DIRS |
Allowed directories (supports :, ,, ; delimiters) — CLI args take precedence |
SERVER_CONFIG |
Path to the server config file (default: server_config.json) |
Notes:
- Windows 8.3 short paths (e.g.,
C:\Users\FOO~1) are automatically expanded to long form - System temp directories (
%TEMP%,%TMP%) are automatically allow-listed - Error messages show resolved paths for easier debugging
Server Config
{
"umlaut_config": {
"string_mapping": { "Ä": "CAE_UMLT", "ä": "AE_UMLT" },
"comment_mapping": { "Ä": "Ae", "ä": "ae" },
"char_mapping": { "Ä": "CAE_UMLT_CHAR" }
},
"encoding_config": {
"default": "utf-8",
"mapping": { "*.cpp": "latin-1", "*.h": "latin-1" }
}
}
Security
Path validation prevents access to files outside configured directories.
License
MIT
Metadata
Release files for filesystem-edit-mcp 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| filesystem_edit_mcp-1.3.1.tar.gz | 8.2 kB | Without provenance | Details for filesystem_edit_mcp-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| filesystem_edit_mcp-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for filesystem_edit_mcp-1.3.1-py3-none-any.whl |
Total release size: 19.2 kB
Release files / filesystem_edit_mcp-1.3.1.tar.gz
| Download URL | filesystem_edit_mcp-1.3.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74a5e1fa8e4b9ec435f0aed410243c74beb93a4beb91ce998a1b79ee09f43e79
|
|
BLAKE2b-256 checksum How to use checksums |
a9bda4c504e99e4823aebbed74d5603a2a54f668a89634d1f509e35548e6d27e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / filesystem_edit_mcp-1.3.1-py3-none-any.whl
| Download URL | filesystem_edit_mcp-1.3.1-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7afe33f87505bd08f53429c6629972a5a96e5cb94d013684b81ccef82a4619f5
|
|
BLAKE2b-256 checksum How to use checksums |
010edcc09787cbb66da830ce13d8003e398014ea7fbb92b60fd1eed60ca3a3e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for filesystem-edit-mcp 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.