File Modifier MCP Server

Enables modification of files through a Model Context Protocol server.

Local serverstdio★ 2

What is the File Modifier MCP Server?

Enables modification of files through a Model Context Protocol server.

What the server does

A Model Context Protocol server for file modifications. This server provides functionality to modify files through Claude or other AI assistants using MCP.

  • Add content at specific line numbers
  • Replace existing content
  • Delete content
  • UTF-8 encoding support

Available tools

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

  • add — Add new content at a specific line
  • replace — Replace content matching a target
  • delete — Delete content matching a target

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
addAdd new content at a specific line
replaceReplace content matching a target
deleteDelete content matching a target

How to install the File Modifier MCP Server

{
  "mcpServers": {
    "file-modifier": {
      "command": "npx",
      "args": ["-y", "mcp-server-file-modifier"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use File Modifier to add.”
  • “Use File Modifier to replace.”
  • “Use File Modifier to delete.”

Frequently asked questions

File Modifier is an API that allows you to programmatically modify files. It enables adding, replacing, or deleting content using a Model Context Protocol (MCP) server.