MCP Server File Modifier
Model Context Protocol server for file modifications and control
Overview
The MCP Server File Modifier is a Model Context Protocol (MCP) server that facilitates file modifications and control using AI assistants.
To use the MCP Server File Modifier, install it via npm and run the server, which will start listening for API commands on port 3000 by default.
- Ability to add content at specified line numbers - Replace existing file content - Delete specific content in files - Support for UTF-8 encoding
- Modifying configuration files dynamically in real-time.
- Integrating with AI tools for automated file adjustments.
- Enhancing development workflows by providing file manipulation capabilities.
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": {
"mcp-server-file-modifier-jpinillagoshawk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-file-modifier-jpinillagoshawk"
]
}
}
}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": {
"mcp-server-file-modifier-jpinillagoshawk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-file-modifier-jpinillagoshawk"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-file-modifier-jpinillagoshawk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-file-modifier-jpinillagoshawk"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-file-modifier-jpinillagoshawk": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-file-modifier-jpinillagoshawk"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-file-modifier-jpinillagoshawk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-file-modifier-jpinillagoshawk"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-file-modifier-jpinillagoshawk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-file-modifier-jpinillagoshawk"
]
}
}
}FAQ
What programming language is MCP Server File Modifier built with?
It is built using Node.js, allowing for easy installation and setup.
Is there any support for other file encodings?
Currently, it supports UTF-8 encoding only.
Can this server be run on any port?
Yes, the server can be configured to run on different ports if needed.