MCP for Morph
Connect to Morph's blazing-fast file editing via Model Context Protocol
Works across directories
No manual path configuration. Automatically finds your project root via .git, package.json, and other indicators.
Lightning-fast edits
Powered by Morph's 10,500+ token/sec apply model. Edit any file type with surgical precision.
Two Modes
Default (recommended)
edit_file + codebase_search via ENABLED_TOOLS="edit_file,codebase_search"
Full filesystem
All 16 tools (including the above) via ENABLED_TOOLS="all"
Installation
1
Run Command
terminal
claude mcp add filesystem-with-morph -e MORPH_API_KEY=your-api-key-here -e ENABLED_TOOLS=edit_file -- npx @morphllm/morphmcp
💡 Update Claude instructions: Configure Claude to use Morph for all code edits:
echo "IMPORTANT
ALWAYS use mcp__filesystem-with-morph__edit_file tool to make any code edits. Do not use the default edit tool." > .claude/CLAUDE.md2
Get API Key
Get your API key from the dashboard and replace your-api-key-here in the command.
3
Verify
Verify installation: The one-liner automatically configures everything. Start a new conversation and type/mcp and/tools to confirm Morph's tools are available.