
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Unified MCP server with AI-powered file editing (Morph Fast Apply) and intelligent code search (Fast Context Search)
Unified Model Context Protocol (MCP) server providing AI-powered file editing and intelligent code search capabilities.
| Variable | Description | Default |
|---|---|---|
MORPH_API_KEY | Your Morph API key (required for AI tools) | - |
ENABLED_TOOLS | Comma-separated list of enabled tools, or all | all |
MORPH_DEBUG | Enable debug logging for grep agent (true/false) | false |
ENABLE_WORKSPACE_MODE | Auto-detect workspace root (true/false) | true |
WORKSPACE_ROOT | Override workspace root directory | $PWD |
Control which tools are available using ENABLED_TOOLS:
# Enable all tools (default)
ENABLED_TOOLS=all
# Only AI-powered tools
ENABLED_TOOLS=edit_file,fast_context_search
# Only fast apply
ENABLED_TOOLS=edit_file
# Only context search
ENABLED_TOOLS=fast_context_search
# Custom selection
ENABLED_TOOLS=read_file,write_file,edit_file,fast_context_search
edit_filePRIMARY TOOL FOR EDITING FILES - Efficiently edit existing files by smartly showing only changed lines. Uses Morph's fast apply model for intelligent code merging.
Key features:
// ... existing code ...Requires: MORPH_API_KEY
fast_context_searchIntelligently search and gather relevant code context from a repository using an AI-powered search agent. Automatically explores the codebase with grep, file reading, and directory analysis.
Example queries:
Requires: MORPH_API_KEY
read_file - Read complete file contents with optional head/tailread_multiple_files - Read multiple files simultaneouslywrite_file - Create or overwrite filestiny_edit_file - Make small line-based edits with diff outputcreate_directory - Create directories recursivelylist_directory - List directory contentslist_directory_with_sizes - List with file sizes and sortingdirectory_tree - Get recursive JSON tree structuremove_file - Move/rename files and directoriessearch_files - Recursively search with exclude patternsget_file_info - Get detailed file metadatalist_allowed_directories - Show accessible directoriesAdd to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"morph-mcp": {
"command": "npx",
"args": ["-y", "morph-mcp"],
"env": {
"MORPH_API_KEY": "sk-your-morph-api-key-here",
"ENABLED_TOOLS": "all"
}
}
}
}
Add to .cursor/mcp.json:
{
"mcpServers": {
"morph-mcp": {
"command": "npx",
"args": ["-y", "morph-mcp"],
"env": {
"MORPH_API_KEY": "sk-your-morph-api-key-here",
"ENABLED_TOOLS": "all"
}
}
}
}
One-liner installation:
claude mcp add morph-mcp -e MORPH_API_KEY=sk-your-morph-api-key-here -e ENABLED_TOOLS=all -- npx morph-mcp
{
"mcpServers": {
"morph-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--mount", "type=bind,src=/Users/username/Desktop,dst=/projects/Desktop",
"morph-llm/morph-mcp", "/projects"
],
"env": {
"MORPH_API_KEY": "sk-your-morph-api-key-here",
"ENABLED_TOOLS": "all"
}
}
}
}
For quick installation, click the installation buttons below:
Or manually add to .vscode/mcp.json:
{
"mcp": {
"servers": {
"morph-mcp": {
"command": "npx",
"args": ["-y", "morph-mcp", "${workspaceFolder}"],
"env": {
"MORPH_API_KEY": "sk-your-morph-api-key-here",
"ENABLED_TOOLS": "all"
}
}
}
}
}
sk- or morph-For fast editing only:
{
"env": {
"MORPH_API_KEY": "sk-...",
"ENABLED_TOOLS": "edit_file"
}
}
For code search only:
{
"env": {
"MORPH_API_KEY": "sk-...",
"ENABLED_TOOLS": "fast_context_search"
}
}
For everything (recommended):
{
"env": {
"MORPH_API_KEY": "sk-...",
"ENABLED_TOOLS": "all"
}
}
In your AI assistant, try:
Ask AI: "Use the edit_file tool to add error handling to this function"
The AI will:
1. Read the current code
2. Generate smart edit instructions with "// ... existing code ..."
3. Apply changes at 4500+ tokens/sec
4. Show you a git-style diff
Ask AI: "Use fast_context_search to find where JWT tokens are validated"
The agent will:
1. Explore the repository using grep, read, and analyse tools
2. Find relevant code across multiple files
3. Return precise line ranges with full context
4. Display formatted XML output with line numbers
@morph-llm/morph-fast-applyOld config:
{
"env": {
"MORPH_API_KEY": "sk-...",
"ALL_TOOLS": "false"
}
}
New config:
{
"env": {
"MORPH_API_KEY": "sk-...",
"ENABLED_TOOLS": "edit_file"
}
}
morph-codeseekOld config:
{
"env": {
"GREP_AGENT_API_KEY": "sk-..."
}
}
New config:
{
"env": {
"MORPH_API_KEY": "sk-...",
"ENABLED_TOOLS": "fast_context_search"
}
}
morph-mcp/
├── index.ts # Main server & tool registry
├── grep/ # Fast context search agent
│ ├── agent/ # Multi-round exploration logic
│ ├── tools/ # Grep, read, analyse, finish
│ └── utils/ # Ripgrep, file finder, logger
├── morph-client.ts # Morph API integration
└── path-*.ts # Security & validation
MORPH_API_KEY=sk-...ENABLED_TOOLS=alltail -f ~/Library/Logs/Claude/mcp*.logMORPH_DEBUG=true${TMPDIR}/morph-codeseek-debug/list_allowed_directories toolENABLE_WORKSPACE_MODE=true| Feature | Speed | Accuracy |
|---|---|---|
| Fast Apply (edit_file) | 4500+ tok/sec | 99.2% |
| Context Search | 4 rounds, <30s | High relevance |
| File Operations | Native speed | 100% |
MIT License - See LICENSE file for details
Built by Morph - Making AI code editing fast and accurate.
FAQs
Unified MCP server with AI-powered file editing (Morph Fast Apply) and intelligent code search (Fast Context Search)
We found that morph-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.