> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morphllm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Step-by-step guide to make Claude Code better and faster using Morph.

# Make Claude Code Better and Faster with Morph

Enhance your Claude Code experience with faster, more efficient code editing capabilities using Morph.

## Overview

Morph provides enhanced code editing capabilities for Claude, offering faster processing and more efficient workflows. This guide will help you optimize your Claude Code setup for better performance.

### What You'll Need

* A Morph API key (free tier available)

## Step 1: Install Morph MCP for Fast Edits

Add the Morph MCP (Model Context Protocol) to Claude for enhanced file editing capabilities:

```bash theme={null}
claude mcp add filesystem-with-morph -e MORPH_API_KEY=YOUR_API_KEY -e ALL_TOOLS=false -- npx @morphllm/morphmcp
```

### Get Your Morph API Key

1. Visit [morphllm.com](https://morphllm.com)
2. Sign up for a free account
3. Generate an API key from your dashboard
4. Replace `your-api-key-here` in the command above

<Tip>
  Morph offers a free tier that's perfect for getting started with enhanced code editing capabilities.
</Tip>

## Step 2: Configure Claude to Use Morph

Add Morph instructions to Claude's global config:

```bash theme={null}
mkdir -p ~/.claude && echo "Fast Apply: IMPORTANT: Use \`edit_file\` over \`str_replace\` or full file writes. It works with partial code snippets—no need for full file content.
Warp Grep: warp-grep is a subagent that takes in a search string and tries to find relevant context. Best practice is to use it at the beginning of codebase explorations to fast track finding relevant files/lines. Do not use it to pin point keywords, but use it for broader semantic queries. \"Find the XYZ flow\", \"How does XYZ work\", \"Where is XYZ handled?\", \"Where is <error message> coming from?\"" >> ~/.claude/CLAUDE.md
```

This ensures that Claude will use Morph's optimized editing and searching capabilities instead of the default tools.

## Benefits of Using Morph

### Performance

* **10,500 tokens/second** processing speed
* Fast, efficient code edits and generations

### Quality

* Enhanced code editing capabilities in 1 shot
* Seamless integration with Claude Desktop

### Developer Experience

* Faster iteration cycles
* More reliable code edits
* Improved developer experience

## Troubleshooting

### MCP Installation Issues

If the MCP installation fails, try:

1. Ensuring you have the latest version of Claude Desktop
2. Checking that Node.js and npm are properly installed
3. Verifying your Morph API key is valid

### Claude Not Using Morph Tool

If Claude isn't using the Morph editing tool:

1. Verify the `.claude/CLAUDE.md` file was created correctly
2. Explicitly request the use of the Morph tool in your prompts

## Next Steps

Once configured, you can start using Claude with enhanced Morph editing capabilities. Your development workflow will be faster and more efficient immediately.

<Card title="Ready to enhance your Claude Code experience?" icon="rocket">
  Follow these steps to make Claude Code better and faster with Morph.
</Card>
