Morph MCP
Provides a GitHub codebase search tool that searches any public GitHub repository by URL or owner/repo shorthand and returns relevant files with specific line ranges and code content.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Morph MCP
Supercharge your coding agent. One MCP with two specialized tools for faster edits and smarter retrieval.
Prefer the
morphCLI + skills. Same Fast Apply and WarpGrep, no tool schemas in every prompt, works in any agent with a shell:curl -fsSL https://www.morphllm.com/install.sh | bash && morph install. This MCP server stays published for hosts that need MCP.
Using OpenCode? Install the OpenCode plugin instead of this MCP server. It ships the same Fast Apply + WarpGrep tools plus automatic context compaction and tool routing that the MCP protocol cannot provide.
Which integration should I use?
Harness | Use | Tools |
OpenCode | Fast Apply + WarpGrep + GitHub search + compaction + tool routing | |
Cursor, Claude Code, VS Code, Windsurf, Zed, any MCP host | this server ( | Fast Apply + WarpGrep + GitHub search |
Conversation compaction is only available through the OpenCode plugin. The MCP protocol gives a server no access to the host's conversation history, so compaction can't be exposed as an MCP tool — use the plugin if you want it.
Related MCP server: MCP Files
Tools
Tool | What it does |
| Apply code changes at 10,500+ tokens/sec with 98% accuracy |
| Natural-language code exploration sub-agent backed by WarpGrep under the hood |
| Search any public GitHub repo by URL or |
All three tools are exposed by default. Narrow the set with ENABLED_TOOLS or DISABLED_TOOLS (see Configuration).
Quick Start
Claude Code
claude mcp add morph-mcp -e MORPH_API_KEY=sk-xxx -- npx -y @morphllm/morphmcpCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"morph-mcp": {
"command": "npx",
"args": ["-y", "@morphllm/morphmcp"],
"env": {
"MORPH_API_KEY": "sk-xxx"
}
}
}
}VS Code
Add to .vscode/mcp.json:
{
"mcp": {
"servers": {
"morph-mcp": {
"command": "npx",
"args": ["-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 changedcodebase_search
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 contentConfiguration
Variable | Description | Default |
| Your API key from morphllm.com | Required |
| Override Morph API base URL for custom proxies |
|
| Timeout for warp grep model calls in ms |
|
| Comma-separated allow-list of tools to expose, or | all tools |
| Comma-separated deny-list of tools to hide | none |
Search only, no edit_file:
"env": { "MORPH_API_KEY": "sk-...", "ENABLED_TOOLS": "codebase_search,github_codebase_search" }DISABLED_TOOLS=edit_file is equivalent. When both are set a tool is on only if allowed and not denied. The pre-0.8.124 names warpgrep_codebase_search and warpgrep_github_search still work.
Get an API Key
Sign up at morphllm.com
Go to dashboard → API Keys
Keys start with
sk-ormorph-
Troubleshooting
npm error code ETARGET ... No matching version found for ...
This happens when npx resolves against a stale local registry cache — most often with npx --prefer-offline, which intentionally avoids refreshing metadata. The examples above no longer use --prefer-offline for this reason. If you still hit it:
npm cache clean --force # then retry: npx -y @morphllm/morphmcp
# or run it with bun, which fetches fresh metadata:
bunx @morphllm/morphmcpLinks
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseAqualityNot gradedmaintenanceEnables agents to quickly find and edit code in a codebase with surgical precision. Find symbols, edit them everywhere with tools for reading code blocks, searching/replacing text, and making precise line-based modifications.311 npm-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to intelligently navigate and understand codebases by providing instant file descriptions, semantic search, and context-aware recommendations, eliminating the need to repeatedly scan files.176 PyPI23MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to semantically search and navigate code repositories using natural language, with support for multiple repos, incremental indexing, and no local install needed.-