MCP File Tools logo

MCP File Tools

Provides controlled local workspace access for reading, editing, searching, encoding conversion, backups, and source navigation.

Install MCP File Tools

Pick your client, then add it in one click or paste the config.

SSE (Remote)
Server URL
http://127.0.0.1:8765/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

MCP File Tools MCP server gives agents controlled access to explicitly authorized local workspaces through file, search, source-navigation, backup, and encoding tools. It supports stdio and optional authenticated Streamable HTTP, with startup directories defining the accessible roots. Reach for it when an agent needs to inspect or modify local project files while preserving boundaries, previewing changes, checking fingerprints, or handling legacy text encodings.

Use cases

  • Read and inspect files in an authorized local project
  • Apply reviewed edits with fingerprint and conflict checks
  • Search source trees and inspect declarations
  • Convert legacy text files to another encoding
  • Create and restore local workspace backups

Key features

  • Controlled access to authorized local workspaces
  • Atomic and preview-based file mutations
  • Legacy encoding and line-ending detection
  • Source navigation and structural search
  • Workspace fingerprints and state verification
  • Persistent backup operations

Tools41

What MCP File Tools lets your agent do. Expand a tool for its parameters.

Self-reported~139 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

5/5 checks healthy over the last 44d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed41Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP File Tools works

What the MCP File Tools MCP server does

MCP File Tools MCP server provides agent access to local directories that are explicitly authorized when the process starts. Its capabilities cover ordinary file operations, project inspection, text search, source navigation, state verification, backups, and encoding management. The repository identifies the current implementation as Scripthold and describes it as derived from the original mcp-file-tools project.

The server is intended for local workspaces rather than remote storage services. Workspace boundaries are enforced using canonical-root containment, with additional handling for Windows reparse points and junctions. Missing paths and traversal behavior are validated before operations proceed.

How it works

A stdio client starts the executable with one or more authorized directories as arguments. Those startup roots are authoritative. A roots-capable stdio client may provide dynamic roots only when no directory arguments are supplied at launch.

The server can also run over Streamable HTTP. HTTP mode uses bearer authentication, defaults to loopback-oriented operation, and exposes an MCP endpoint alongside liveness and readiness endpoints. Non-loopback exposure requires additional security configuration, including TLS or a trusted proxy boundary.

Mutating operations can use a preview-and-apply pattern. Proposed changes may be checked against exact fingerprints and conflict conditions before being written. The tool catalog also includes backup creation, restoration, comparison-related state checks, and explicit backup cleanup operations.

Setup and configuration

Published platform binaries are available from the repository’s release page and can be checked against the supplied checksums. Building from source requires Go; the documented build flow runs the test suite and builds the executable from ./cmd/scripthold.

For local stdio use, configure an MCP client with the executable path and authorized workspace arguments. For HTTP use, provide a bearer token and an address such as 127.0.0.1:8765; requests must include the token in the Authorization header. The documented container example mounts a project at /data, runs with a read-only root filesystem, drops capabilities, and uses an unprivileged user.

Tools and capabilities

MCP File Tools MCP server exposes tools for:

  • Reading one or multiple text files and writing or editing files.
  • Previewing and applying packaged multi-file patches.
  • Listing directories, generating trees, and retrieving file metadata.
  • Searching files with text queries, regular expressions, or path-oriented operations.
  • Inspecting source symbols, outlines, relations, and bounded source context.
  • Computing digests and fingerprints, then verifying expected workspace state.
  • Storing, restoring, and garbage-collecting local backups.
  • Detecting encodings and line endings, converting text encodings, and applying conversions.

The implementation documents support for 168 registered text encodings, including UTF-32 little-endian and big-endian forms, with conservative handling when detection is ambiguous.

Limitations and notes

The server only reaches directories authorized through its startup or supported roots configuration. HTTP should not be exposed beyond loopback without reviewing the project’s security guidance and configuring an appropriate authentication and transport boundary.

The repository lists GPL-3.0 licensing. Detailed schemas, parameters, limits, and error behavior are maintained in the project’s TOOLS.md reference, so clients should consult that file before relying on particular argument names or operation limits. The tool names include both preview and apply variants; callers should not assume that a preview changes files.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP File Tools

MCP File Tools is an MCP server that connects AI clients to explicitly authorized local workspaces. Its main tools read, write, edit, search, inspect, patch, back up, verify, and convert files, with support for source navigation, legacy encoding detection, and controlled stdio or authenticated Streamable HTTP access.

Download a platform release or build the executable from source. The documented source setup clones the repository, runs `go test ./...`, and builds with `go build -o scripthold ./cmd/scripthold`. Configure the resulting executable in an MCP client and pass each authorized workspace as a startup argument.

Pass each authorized directory as a startup argument in the stdio client configuration. These startup roots define the accessible workspace boundaries. A roots-capable stdio client can provide dynamic roots only when the process starts without directory arguments.

Yes, it supports authenticated Streamable HTTP. Set a bearer-token source and an HTTP address, then send the token with every MCP request. The documented endpoint uses `/mcp`; non-loopback exposure requires explicit security configuration, including TLS or a trusted proxy boundary.

Yes, it includes encoding detection and conversion tools. The project documents 168 registered text encodings, UTF-32 little-endian and big-endian support, and conservative behavior when the detected encoding is ambiguous.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP File Tools AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-file-tools?style=directory)](https://allmcps.com/mcp/mcp-file-tools)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-file-tools"><img src="https://allmcps.com/api/badge/mcp-file-tools?style=directory" alt="MCP File Tools on AllMCPs" /></a>