Skip to main content

Morph Fast Context

Find any code in your repository using natural language with Morph’s AI-powered code search.

Quick Start

  • Cursor
  • Claude Desktop
  • VS Code
  • Windsurf
Add to your Cursor MCP config file:Location: ~/.cursor/mcp.json (global) or .cursor/mcp.json (workspace)
{
  "mcpServers": {
    "morph-fast-context": {
      "command": "npx",
      "args": ["-y", "@morphllm/morphmcp"],
      "env": {
        "GREP_AGENT_API_KEY": "sk-your-morph-api-key-here"
      }
    }
  }
}
Reload Cursor (Cmd+Shift+P → “Developer: Reload Window”)

Installation Steps

1. Get Your API Key

Get your Morph API key from the dashboard.

2. Add Configuration

Copy the configuration for your editor from the tabs above and add it to the appropriate config file. Replace sk-your-morph-api-key-here with your actual API key.

3. Restart Your Editor

Restart your editor completely to load the new MCP server.

Usage Examples

Once installed, you can ask natural language questions about your codebase: Finding Code:
  • “Where do we validate JWT tokens?”
  • “How does user authentication work?”
  • “Find the payment processing logic”
Understanding Architecture:
  • “Where is the database connection initialized?”
  • “What API endpoints do we expose?”
  • “How do we handle file uploads?”
Locating Features:
  • “Where do we handle errors?”
  • “Find email validation code”
  • “Show me the user registration flow”

Test Your Setup

Verify everything is working:
  1. Check Tool: Ask your AI: “What MCP tools are available?”
  2. Simple Search: Try: “Find the main function”
  3. Complex Search: Try: “Where do we handle authentication?”

Support

Need help? Join our Discord community or contact us at morphllm.com/contact.