概览
What is MCP Server File Modifier?
MCP Server File Modifier is a Model Context Protocol server that enables AI assistants like Claude to modify files on the local filesystem. It provides operations to add, replace, and delete content at specific line numbers.
How to use MCP Server File Modifier?
Install globally with npm install -g mcp-server-file-modifier, then run mcp-server-file-modifier. The server starts on port 3000 by default and accepts file modification requests via the MCP protocol.
Key features of MCP Server File Modifier
- Add content at specific line numbers
- Replace existing content
- Delete content
- UTF-8 encoding support
Use cases of MCP Server File Modifier
- Insert new lines into configuration files
- Update function implementations in code files
- Remove outdated comments or blocks from text documents
FAQ from MCP Server File Modifier
What is MCP Server File Modifier?
A server that exposes file modification operations (add, replace, delete) to MCP-compatible AI assistants, allowing them to edit local files programmatically.
How do I install MCP Server File Modifier?
Run npm install -g mcp-server-file-modifier to install it globally via npm.
How do I start the server?
Run mcp-server-file-modifier from the command line. The server listens on port 3000 by default.
What file operations does MCP Server File Modifier support?
It supports three operations: add (insert content at a line), replace (replace matching content), and delete (remove matching content).
What encoding does MCP Server File Modifier support?
The server supports UTF-8 encoding for file operations.