editor-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@editor-mcpshow me the current git status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Editor MCP — Model Context Protocol Code Agent
A secure, isolated, and feature-complete Model Context Protocol (MCP) server providing full code editor functionality (read_file, write_file, list_dir, search_files, set_workspace, run_command, git_status, git_diff).
Designed to run inside Docker and be exposed securely via Cloudflare Tunnel for remote AI pair programming from any MCP-compatible LLM client (fully tested and verified working with Claude Desktop, Claude Online, and Google Gemini).
🏗 Architecture & Security Model
[LLM Client / Connector]
│
▼ HTTPS (Streamable HTTP + Bearer Token Auth)
[Cloudflare Tunnel]
│
▼
[MCP Server Container] ──(bind mount)──► Host Workspace Files
│
▼ (Docker Socket / API)
[Workspace Container] ◄── Isolated CLI execution (`run_command`)Key Security & Capability Features
Path Traversal Guard: All file operations validate resolved paths against designated
WORKSPACE_ROOTwhitelist. Symlinks pointing outside the workspace root are automatically blocked.Isolated & Flexible CLI Execution:
run_commandexecutes arbitrary, complex shell commands (chaining&&,||, pipes|, redirects) inside a dedicated sibling Docker container (mcp-workspace:latest).Rich Developer Toolset: The workspace container includes
bash,git,node,npm,python3,pip,curl,wget,jq,ripgrep,build-base(gcc/g++/make),tar,zip,unzip, andopenssh-client.Custom Environment Variables:
run_commandsupports passing dynamic key-value environment variables per execution.Audit Logging: Every tool call is logged with timestamps to
logs/audit.log.Bearer Token Auth & OAuth 2.0: Mandated Bearer token authentication on all HTTP/SSE MCP endpoints. Includes built-in standard OAuth 2.0 endpoints for seamless integration with Google Gemini and other strict OAuth clients.
Related MCP server: Remote MCP Server Authless
🛠 Quick Start
1. Requirements
Node.js 20+
Docker & Docker Compose
2. Environment Setup
Copy the sample environment file and adjust your settings:
cp .env.example .envKey environment variables in .env:
PORT: Server HTTP port (default3000)AUTH_TOKEN: Static Bearer token required for clientsWORKSPACE_ROOT: Directory path on host storing target projects (default./workspaces)DEFAULT_WORKSPACE: Subfolder name insideWORKSPACE_ROOT(defaultdefault)WORKSPACE_IMAGE: Docker image name for execution container (defaultmcp-workspace:latest)TUNNEL_TOKEN: Cloudflare Tunnel token
3. Local Development & Testing
Build TypeScript source files:
npm run buildRun test suites:
# Security & path traversal tests
node dist/runner-fs.js
# Full End-to-End HTTP & Auth verification
node dist/runner-e2e.js4. Docker Compose Deployment
Build all images and run the MCP server and Cloudflare Tunnel:
# Build both server and workspace execution images
docker compose --profile tools build
# Start MCP server and cloudflared tunnel
docker compose up -d📖 Cloudflare Tunnel Setup Guide: For detailed step-by-step instructions on creating a tunnel in Cloudflare Zero Trust, obtaining
TUNNEL_TOKEN, and configuring public domain routing, see docs/CLOUDFLARE_TUNNEL_SETUP.md.
🧰 Detailed MCP Tools Specification
Tool Name | Description | Parameters |
| Health check and sanity test tool |
|
| Set or switch the active workspace subfolder |
|
| Read content of a file within active workspace (up to 5MB limit) |
|
| Write, overwrite, or append content to a file |
|
| Precision in-place string replacement within a file |
|
| List files and subdirectories in a directory |
|
| Visual directory tree structure visualization |
|
| Search for text/patterns across workspace files using recursive grep |
|
| High-speed regex or literal pattern search via ripgrep |
|
| Execute arbitrary CLI shell commands inside isolated workspace container |
|
| Get git repository status of active workspace | None |
| Get uncommitted or staged git changes |
|
| Inspect container tool versions (node, npm, python, git, ripgrep, gcc) | None |
| Fetch and extract readable text/JSON from web URLs |
|
| Search web queries and return top titles, URLs, and snippets |
|
📑 Governance & Guidelines
For LLM agent operational guidelines and behavioral rules, see AGENT.md.
📜 License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceAn MCP server that orchestrates AI coding assistants (Claude Code CLI and Gemini CLI) to perform complex programming tasks autonomously, allowing remote control of your local development environment from anywhere.12142MIT
- Flicense-qualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling custom tools and connectivity to AI Playground and Claude Desktop.
- Flicense-qualityCmaintenanceDeploy a remote MCP server on Cloudflare Workers without authentication, with customizable tools and connectivity to AI Playground and Claude Desktop.
- Flicense-qualityCmaintenanceSecure self-hosted remote MCP server with file and shell tools, protected by Cloudflare Tunnel and bearer-token auth.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server teaching AI agents to implement TideCloak: auth, E2EE, IGA, security analysis
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/randyaswin/editor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server