Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@morphllm/morphmcp

Package Overview
Dependencies
Maintainers
2
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morphllm/morphmcp

Fast & accurate MCP server with AI-powered file editing and intelligent code search. Prevents context pollution and saves time for a better user experience.

latest
Source
npmnpm
Version
0.8.190
Version published
Weekly downloads
4.8K
24.65%
Maintainers
2
Weekly downloads
 
Created
Source

Morph MCP

Supercharge your coding agent. One MCP with two specialized tools for faster edits and smarter retrieval.

Tools

ToolWhat it does
edit_fileApply code changes at 10,500+ tokens/sec with 98% accuracy
codebase_searchNatural-language code exploration sub-agent backed by WarpGrep under the hood
github_codebase_searchSearch any public GitHub repo by URL or owner/repo shorthand

All three tools are always exposed. Clients can manage tool visibility on their side.

Quick Start

Claude Code

claude mcp add morph-mcp -e MORPH_API_KEY=sk-xxx -- npx --prefer-offline -y @morphllm/morphmcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "morph-mcp": {
      "command": "npx",
      "args": ["--prefer-offline", "-y", "@morphllm/morphmcp"],
      "env": {
        "MORPH_API_KEY": "sk-xxx"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "mcp": {
    "servers": {
      "morph-mcp": {
        "command": "npx",
        "args": ["--prefer-offline", "-y", "@morphllm/morphmcp"],
        "env": {
          "MORPH_API_KEY": "sk-xxx"
        }
      }
    }
  }
}

How the Tools Work

edit_file

Applies code edits using Morph's Fast Apply model. The agent sends partial code with // ... existing code ... placeholders, and Fast Apply merges it into the full file.

Input:
  path: "src/api.ts"
  code_edit: |
    export async function fetchData(endpoint: string) {
      // ... existing code ...
      const response = await fetch(endpoint, { 
        headers,
        timeout: 5000  // added timeout
      });
      // ... existing code ...
    }
  instruction: "Add 5 second timeout to fetch call"

Output: Git-style unified diff showing exactly what changed

codebase_search is the MCP-facing wrapper around WarpGrep. Ask a natural-language question about what you want to understand and it will use WarpGrep under the hood to locate relevant files and line ranges. It does not accept regex or symbol-only queries.

Good: Where does auth get handled, what are the different oauth methods supported? Bad: auth()

Input:
  search_string: "Where does auth get handled, what are the different oauth methods supported?"
  repo_path: "/Users/me/project"
  search_type: "default"  # optional: "default" or "node_modules"

Output: List of files with specific line ranges + actual code content

Configuration

VariableDescriptionDefault
MORPH_API_KEYYour API key from morphllm.comRequired
MORPH_API_URLOverride Morph API base URL for custom proxieshttps://api.morphllm.com
MORPH_WARP_GREP_TIMEOUTTimeout for warp grep model calls in ms30000

Get an API Key

  • Sign up at morphllm.com
  • Go to dashboard → API Keys
  • Keys start with sk- or morph-

License

MIT

FAQs

Package last updated on 11 Jun 2026

Did you know?

Socket

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.

Install

Related posts