MCP Filesystem Server (Encoding Supported)
A Model Context Protocol (MCP) server for filesystem operations, optimized for intelligent interaction with large files and covering various text encodings (like UTF-8, EUC-KR).
Quick Setup with uvx
You can easily run this MCP server using uvx (the execution tool provided by uv). To configure this server in your MCP client (such as Claude Desktop or Antigravity), add the following to your configuration file:
MCP Client Configuration
Add the following JSON to your MCP settings file (For Claude Desktop):
- macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-filesystem-encoding": {
"command": "uvx",
"args": [
"mcp-filesystem-encoding",
"C:\\Users\\username\\Desktop\\Test",
"C:\\Users\\username\\Documents\\Projects"
]
}
}
}
Note: The arguments provided after the package name act as your Allowed Root Directories.
- Multiple Paths Supported: You can specify as many root directories as you need by adding them as separate string arguments in the
argsarray (e.g.,"C:\\dir1","C:\\dir2", etc.).- Security Boundary: The MCP server will strictly restrict its file operations (read, write, search) to only these listed directories and their subdirectories.
Important Variables & Usage Guidelines
1. Using the path Variable (Config & Tools)
- At Server Setup: Provide the allowed root paths in your
argslist (as shown above). - During Tool Execution: When the MCP client (AI) uses tools like
read_fileorsearch_files, it must specify the fully qualified absolutepath(e.g.,C:\Users\username\Desktop\Test\file.txt). If the AI requests a path outside of the configured root directories, the server will deny access.
2. The encoding Option
This extended MCP server natively supports reading, writing, and searching files across different encodings, preventing character corruption in non-UTF-8 local environments (such as Korean euc-kr / cp949, or Japanese shift-jis).
The encoding parameter is optional (defaults to "utf-8") and is readily available across the following tool operations:
- Examine Content:
read_file,read_multiple_files,head_file,tail_file - Modify Content:
write_file,edit_file - Discover Content:
search_files(for precise text matching),grep_files(advanced Regex searches requiring decoding of target files)
Usage Example in MCP Call:
// Example: Reading a legacy Korean document
{
"path": "C:\\Users\\Username\\Documents\\legacy_document.txt",
"encoding": "euc-kr"
}
Available Tools Summary
- Basic IO:
read_file,write_file,edit_file - Search:
search_files,grep_files - File System:
list_directory,create_directory,directory_tree - Analytics:
compare_files,find_duplicate_files
(All internal tools strictly enforce the path policy boundaries and seamlessly support the encoding option to empower your environment without breaking localized text!)
Metadata
Release files for mcp-filesystem-encoding 0.2.4
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 | |
|---|---|---|---|---|
| mcp_filesystem_encoding-0.2.4.tar.gz | 96.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_filesystem_encoding-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 130.3 kB
Release files / mcp_filesystem_encoding-0.2.4.tar.gz
| Download URL | mcp_filesystem_encoding-0.2.4.tar.gz |
|---|---|
| Size | 96.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6269772a6a845f2617038ae294949cfb0f6b6e72efe288a2185a891e7be5b2ae
|
|
BLAKE2b-256 checksum How to use checksums |
9f4c955bcdb40c5943c6c9638c49dd13cc8aa01583fd0317e462ffe68a0a6bc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mcp_filesystem_encoding-0.2.4-py3-none-any.whl
| Download URL | mcp_filesystem_encoding-0.2.4-py3-none-any.whl |
|---|---|
| Size | 33.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ef70756df50fd21558dc348971012c9aabd3ba532a6800638361aa9d31b4a30
|
|
BLAKE2b-256 checksum How to use checksums |
32f7c272f2500f82c8d4b4d8c9bb777be5e42c9f9c5a45398220a4838ef62e09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for mcp-filesystem-encoding 0.2.4
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.