MCP ScannerCustom audit
All servers

dimitar-grigorov/mcp-file-tools

MCP server for file operations on non-UTF-8 text: detects the encoding from the bytes, hands the model UTF-8, and writes back in the original encoding with BOM and CRLF/LF intact. 24 encodings — Cyrillic/CP1251, CP1252, KOI8, ISO-8859, UTF-16, GBK/GB18030.

Publisherdimitar-grigorov community
MCP Registryio.github.dimitar-grigorov/mcp-file-tools
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 30Forks 10Last push 2026-11-14
Go 94.5%JavaScript 5.5%by source files the scanner reads
Code safetypartly tracedExposure5.9Prompts10.0Supply chain10.0Secrets10.0Transparency10.0
Analysis confidence85%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure5.9/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain10.0/10Good

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 67 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 1 source file could be read only in part
  • 23 of 45 tools, prompts and resources could not be followed through the code
  • 20 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
  • 2 tools, prompts and resources registered only in the repository's tests are not counted on this page

Top risks in plain words

  • HIGHTools convert_encoding, copy_file, move_file read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    convert_encoding, copy_file, move_file can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need convert_encoding, copy_file, move_file, switch them off.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 40 tools, 3 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
convert_encoding, copy_file, detect_encoding, edit_file, grep_text_files, manage_bom and 5 more
11 of 43

No tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files11 tools · convert_encoding, copy_file, detect_encoding +8

Tool annotations

19 of 43 tools declare annotations. readOnlyHint 10, idempotentHint 4.

Tools, prompts and resources (43: 40 tools, 3 prompts)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

convert_encodingtool Filesoutside textReads/writes files
No description.
copy_filetool Filesoutside textReads/writes files
No description.
move_filetool Move or rename files/directories. Fails if destination exists. Parameters: source (required), destination (required).Reads/writes files
Move or rename files/directories. Fails if destination exists. Parameters: source (required), destination (required).
audit_encodingsprompt Survey a directory tree and report the encoding, BOM and line-ending situation.
Survey a directory tree and report the encoding, BOM and line-ending situation.
fix_mojibakeprompt Diagnose and repair a file showing � characters or garbled Cyrillic/accented text.
Diagnose and repair a file showing � characters or garbled Cyrillic/accented text.
migrate_to_utf8prompt Convert a legacy-encoded tree to UTF-8 with a dry run first.
Convert a legacy-encoded tree to UTF-8 with a dry run first.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
check_for_updatestool Check if a newer version of mcp-file-tools is available. Returns current version, latest version, and update instructions if outdated. Uses a cached result (max
Check if a newer version of mcp-file-tools is available. Returns current version, latest version, and update instructions if outdated. Uses a cached result (max 1 GitHub API call per 30 min); force=true bypasses the cache. Call once at the start of each session.
create_directorytool Create a directory recursively (mkdir -p). Succeeds silently if already exists. Parameter: path (required).
Create a directory recursively (mkdir -p). Succeeds silently if already exists. Parameter: path (required).
delete_filetool Delete a file. Does not delete directories. Parameter: path (required).
Delete a file. Does not delete directories. Parameter: path (required).
detect_encodingtool Filesoutside textread-only (declared)
No description.
edit_filetool Filesoutside text
No description.
get_file_infotool Get file/directory metadata: size, timestamps, permissions, type. Use this to check file size before reading large files with read_text_file. Parameter: path (rread-only (declared)
Get file/directory metadata: size, timestamps, permissions, type. Use this to check file size before reading large files with read_text_file. Parameter: path (required).
grep_text_filestool Filesoutside textread-only (declared)
No description.
list_allowed_directoriestool Returns the list of directories this server is allowed to access, normally the directory it was started in. Subdirectories are also accessible. If empty, the usread-only (declared)
Returns the list of directories this server is allowed to access, normally the directory it was started in. Subdirectories are also accessible. If empty, the user needs to add paths as args in .mcp.json or set MCP_FILE_TOOLS_ALLOWED_DIRS.
list_directorytool List files and directories with optional glob pattern filtering (e.g., *.pas, *.dfm). Parameters: path (required), pattern (optional, default: *), sortBy ("nameread-only (declared)
List files and directories with optional glob pattern filtering (e.g., *.pas, *.dfm). Parameters: path (required), pattern (optional, default: *), sortBy ("name" default, "mtime" newest first, "size" largest first), reverse (bool, flips the order).
list_encodingstool read-only (declared)
No description.
manage_bomtool Detect, strip, or add Unicode BOM (Byte Order Mark). UTF-8 BOM breaks PHP/shell scripts; UTF-16 files need BOMs. Parameters: path (required), action (required: Filesoutside text
Detect, strip, or add Unicode BOM (Byte Order Mark). UTF-8 BOM breaks PHP/shell scripts; UTF-16 files need BOMs. Parameters: path (required), action (required: "detect"|"strip"|"add"), encoding (required for "add": utf-8, utf-16-le, utf-16-be, utf-32-le, utf-32-be).
manage_line_endingstool Filesoutside text
No description.
read_multiple_filestool Read multiple files concurrently with encoding support. PREFER THIS when reading several non-UTF-8 files at once. Individual failures don't stop the batch — parread-only (declared)
Read multiple files concurrently with encoding support. PREFER THIS when reading several non-UTF-8 files at once. Individual failures don't stop the batch — partial results are returned. Parameters: paths (required array), encoding (optional, auto-detected per file).
read_text_filetool Filesoutside textread-only (declared)
No description.
search_filestool Filesoutside textread-only (declared)
No description.
treetool Compact indented tree view of directory structure. PREFER THIS for directory visualization. Skips .gitignore'd files and .git (respectGitignore=false to includeFilesoutside textread-only (declared)
Compact indented tree view of directory structure. PREFER THIS for directory visualization. Skips .gitignore'd files and .git (respectGitignore=false to include). Set showEncoding=true to detect and display file encodings (e.g., for auditing legacy codebases). Parameters: path (required), maxDepth (0=unlimited), maxFiles (default 1000), dirsOnly (bool), exclude (array of patterns), showEncoding (bool, shows detected encoding per file).
write_filetool Filesoutside text
No description.

Text the model reads (43)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

tree tool
Compact indented tree view of directory structure. PREFER THIS for directory visualization. Skips .gitignore'd files and .git (respectGitignore=false to include). Set showEncoding=true to detect and display file encodings (e.g., for auditing legacy codebases). Parameters: path (required), maxDepth (0=unlimited), maxFiles (default 1000), dirsOnly (bool), exclude (array of patterns), showEncoding (bool, shows detected encoding per file).
(name computed at run time) tool
list_directory tool
List files and directories with optional glob pattern filtering (e.g., *.pas, *.dfm). Parameters: path (required), pattern (optional, default: *), sortBy ("name" default, "mtime" newest first, "size" largest first), reverse (bool, flips the order).
(name computed at run time) tool
search_files tool
(name computed at run time) tool
grep_text_files tool
(name computed at run time) tool
get_file_info tool
Get file/directory metadata: size, timestamps, permissions, type. Use this to check file size before reading large files with read_text_file. Parameter: path (required).
(name computed at run time) tool
list_allowed_directories tool
Returns the list of directories this server is allowed to access, normally the directory it was started in. Subdirectories are also accessible. If empty, the user needs to add paths as args in .mcp.json or set MCP_FILE_TOOLS_ALLOWED_DIRS.
(name computed at run time) tool
read_text_file tool
(name computed at run time) tool
read_multiple_files tool
Read multiple files concurrently with encoding support. PREFER THIS when reading several non-UTF-8 files at once. Individual failures don't stop the batch — partial results are returned. Parameters: paths (required array), encoding (optional, auto-detected per file).
(name computed at run time) tool
edit_file tool
(name computed at run time) tool
write_file tool
(name computed at run time) tool
detect_encoding tool
(name computed at run time) tool
convert_encoding tool
(name computed at run time) tool
manage_line_endings tool
(name computed at run time) tool
manage_bom tool
Detect, strip, or add Unicode BOM (Byte Order Mark). UTF-8 BOM breaks PHP/shell scripts; UTF-16 files need BOMs. Parameters: path (required), action (required: "detect"|"strip"|"add"), encoding (required for "add": utf-8, utf-16-le, utf-16-be, utf-32-le, utf-32-be).
(name computed at run time) tool
list_encodings tool
(name computed at run time) tool
create_directory tool
Create a directory recursively (mkdir -p). Succeeds silently if already exists. Parameter: path (required).
(name computed at run time) tool
move_file tool
Move or rename files/directories. Fails if destination exists. Parameters: source (required), destination (required).
(name computed at run time) tool
copy_file tool
(name computed at run time) tool
delete_file tool
Delete a file. Does not delete directories. Parameter: path (required).
(name computed at run time) tool
check_for_updates tool
Check if a newer version of mcp-file-tools is available. Returns current version, latest version, and update instructions if outdated. Uses a cached result (max 1 GitHub API call per 30 min); force=true bypasses the cache. Call once at the start of each session.
(name computed at run time) tool
audit_encodings prompt
Survey a directory tree and report the encoding, BOM and line-ending situation.
fix_mojibake prompt
Diagnose and repair a file showing � characters or garbled Cyrillic/accented text.
migrate_to_utf8 prompt
Convert a legacy-encoded tree to UTF-8 with a dry run first.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure5.9
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path MEDIUM
    3 findings in convert_encoding, copy_file, move_file; 3 more to review
  • Requests any address
    No tool sends a request to an address the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 43 capabilities; 22 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    11 of 43 capabilities touch files; 11 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 43 capabilities; 22 more call code the scanner could not follow, where it may happen
Where the code is: 43 handlers in 21 files at commit f6328bbf260d
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain10.0
  • Dependency manifests
    2 manifests: go.mod, tools/go.mod
  • Lockfiles checked against OSV
    2 files resolved and checked against the OSV database
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    github.com/modelcontextprotocol/go-sdk v1.8.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 43 capabilities; 22 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read (10 only in code no tool reaches)
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKgithub.com/modelcontextprotocol/go-sdk v1.8.0

The project's own security

Security policyyes SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-14
Signed releasesnot checked yet

Where it is published

MCP Registryio.github.dimitar-grigorov/mcp-file-tools
Listed in4 catalogs (github_search, glama, mcp_registry, mcp_toplist)
LicenseGPL-3.0
Created2026-01-24
Topicsbom claude cp1251 cp1252 cyrillic delphi gbk golang iso-8859 koi8

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.