Overview
MCP Server File Modifier is a Model Context Protocol server designed for modifying files through AI assistants like Claude.
To use the MCP Server File Modifier, install it via npm and run the server, which will start on port 3000 by default.
- Add content at specific line numbers - Replace existing content - Delete content - UTF-8 encoding support
- Modifying configuration files for applications
- Automating file updates in development environments
- Integrating with AI assistants for dynamic file modifications
Add to your AI client
Use these steps to connect MCP Server File Modifier in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"jpinillagoshawk-mcp-server-file-modifier-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jpinillagoshawk-mcp-server-file-modifier-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"jpinillagoshawk-mcp-server-file-modifier-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jpinillagoshawk-mcp-server-file-modifier-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"jpinillagoshawk-mcp-server-file-modifier-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jpinillagoshawk-mcp-server-file-modifier-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"jpinillagoshawk-mcp-server-file-modifier-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jpinillagoshawk-mcp-server-file-modifier-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"jpinillagoshawk-mcp-server-file-modifier-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jpinillagoshawk-mcp-server-file-modifier-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"jpinillagoshawk-mcp-server-file-modifier-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jpinillagoshawk-mcp-server-file-modifier-mcp-mirror"
]
}
}
}FAQ
Can I use this tool for any file type?
Yes! The tool supports modifications on any text-based file that adheres to UTF-8 encoding.
Is there a graphical interface for this tool?
No, it is a command-line tool designed for developers.
How do I install the MCP Server File Modifier?
You can install it using npm with the command: npm install -g mcp-server-file-modifier.