Safe File MCP Server

Context Coder: MCP server providing secure file system operations with relative path handling for AI context management

Local serverstdio

What is the Safe File MCP Server?

Context Coder: MCP server providing secure file system operations with relative path handling for AI context management

The short version

Context Coder (aka. Coco) provides AI models with an MCP tools to load your entire codebase into the LLM context. This gives AI assistants everything they need to write code that fits your existing patterns and architecture.

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_codebase_top_largest_filesGet top X largest files in codebase - helpful for identifying files to add to .cocoignore/.cocominify
read_fileRead file contents (only use when specifically asked to re-read or for debugging)
write_fileCreate or overwrite files
edit_fileMake line-based partial edits to files (available when --edit-file-mode is enabled)
create_directoryCreate directories
list_directoryList directory contents (only use when specifically asked or for debugging)
directory_treeGet directory structure as JSON (only use when specifically asked or for debugging)
move_fileMove or rename files
search_filesSearch by pattern
execute_commandRun shell commands

How to install the Safe File MCP Server

{
  "mcpServers": {
    "context-coder": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway",
        "--streamableHttp",
        "http://localhost:3001/mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Safe File MCP to get codebase top largest files.”
  • “Use Safe File MCP to read file.”
  • “Use Safe File MCP to write file.”

Frequently asked questions

Context Coder: MCP server providing secure file system operations with relative path handling for AI context management Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.