MCP Edit File Lines MCP Server

Make line-based edits to a text file. Each edit replaces exact line sequences.

Local serverstdioTypeScript

What is the MCP Edit File Lines MCP Server?

Make line-based edits to a text file. Each edit replaces exact line sequences.

What you get

A TypeScript-based MCP server that provides tools for making precise line-based edits to text files within allowed directories.

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
get_file_linesedit_file_lines (dry run)
approve_editShows the output of each operation
edit_file_linesMake line-based edits to a file using string or regex pattern matching. Each edit can: - Replace entire lines - Replace specific text matches while preserving line formatting - Use regex patterns for complex matches - Ha
search_fileSearch a file for text patterns or regular expressions to find specific line numbers and their surrounding context. This tool is particularly useful for locating the exact lines you want to edit with edit_file_lines.

Configuration

VariableDescriptionRequired
MCP_EDIT_STATE_TTLConfiguration value read at startup.Optional

Example prompts to try

  • “Use MCP Edit File Lines to get file lines.”
  • “Use MCP Edit File Lines to approve edit.”
  • “Use MCP Edit File Lines to edit file lines.”

Frequently asked questions

Make line-based edits to a text file. Each edit replaces exact line sequences. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.