Hashfile MCP Server

Hash-anchored file editing with surgical precision over file editing and ironclad control of access

Local serverstdio

What is the Hashfile MCP MCP server?

Connect Hashfile MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Hash-anchored file editing with surgical precision over file editing and ironclad control of access. The hashfile mcp mcp server is what makes that connection.

What the server does

The AI can now: - ✅ Read and edit source files with hash-anchored precision - ✅ Browse directories and create new files - ❌ Cannot touch your secrets or .env files - ❌ Cannot modify lock files or schemas - 🙈 Won't see node_modules or build artifacts

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • read_text_file — Returns content with hash-tagged lines for reliable editing:
  • edit_text_file — The edit_text_file tool exposed by this server
  • write_text_file — The write_text_file tool exposed by this server
  • list_directory — The list_directory tool exposed by this server
  • directory_tree — Supports exclude_patterns for filtering (e.g., ["/node_modules/", "/.git/"])

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Hashfile MCP's toolset — read_text_file, edit_text_file, write_text_file and 2 more — is a fair guide to whether it matches your workflow. It is maintained by mrorigo; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
read_text_fileReturns content with hash-tagged lines for reliable editing:
edit_text_fileThe edit_text_file tool exposed by this server.
write_text_fileThe write_text_file tool exposed by this server.
list_directoryThe list_directory tool exposed by this server.
directory_treeSupports exclude_patterns for filtering (e.g., ["**/node_modules/**", "**/.git/**"])

Example prompts to try

  • Use Hashfile MCP to read text file.
  • Use Hashfile MCP to edit text file.
  • Use Hashfile MCP to write text file.

Frequently asked questions

It connects Hashfile MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (read_text_file, edit_text_file, write_text_file, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Hashfile MCP directly.