File Editor MCP server

Provides file operations for reading, writing, and editing on host systems.
Back to servers
Provider
arathald
Release date
Jan 31, 2025
Language
TypeScript
Stats
6 stars

This TypeScript MCP server provides filesystem editing tools for Large Language Models (LLMs), allowing them to read and modify files on your system when used with compatible clients. It's a direct port of Anthropic's filesystem editing tools to a TypeScript MCP server.

Installation

Prerequisites

  • Node.js installed on your system
  • npm (Node Package Manager)

Setup Instructions

  1. Clone or download the repository to your local machine

  2. Navigate to the project directory and install dependencies:

    npm install
    
  3. Build the project:

    npm build
    

Configuration

Claude Desktop App Configuration

To use this MCP server with the Claude desktop app:

  1. Locate your Claude desktop app configuration file
  2. Add the following to your config under the "mcpServers" section:
    "mcp-editor": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-editor/dist/server.js"]
    }
    
  3. Be sure to replace /absolute/path/to/mcp-editor with the actual path to where you installed the server

MCP Installer Configuration

If you're using MCP Installer:

  1. Simply provide your LLM with the path on your disk to the mcp-editor directory
  2. The installer will handle the rest of the configuration

Usage Guidelines

Security Warnings

Important security considerations:

  • This MCP server has NO access controls and relies entirely on your client's approval mechanisms
  • Do NOT automatically approve write operations - doing so essentially gives the LLM permission to modify any files on your system
  • Review all file modifications carefully before approving them
  • This server is primarily provided as a reference implementation

Recommended Companion Tools

For enhanced functionality, it's recommended to use this server alongside:

Server Capabilities

This MCP server enables LLMs to:

  • Read files from your filesystem
  • Write to files on your filesystem
  • Create new files
  • Modify existing files

Always verify what files the LLM is attempting to access or modify before approving any operations.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later