# 🔥 LEANN Claude Code Integration Transform your development workflow with intelligent code assistance using LEANN's semantic search directly in Claude Code. ## Prerequisites **Step 1:** First, complete the basic LEANN installation following the [📦 Installation guide](../../README.md#installation) in the root README: ```bash uv venv source .venv/bin/activate uv pip install leann ``` **Step 2:** Install LEANN globally for MCP integration: ```bash uv tool install leann-core ``` This makes the `leann` command available system-wide, which `leann_mcp` requires. ## 🚀 Quick Setup Add the LEANN MCP server to Claude Code: ```bash claude mcp add leann-server -- leann_mcp ``` ## 🛠️ Available Tools Once connected, you'll have access to these powerful semantic search tools in Claude Code: - **`leann_list`** - List all available indexes across your projects - **`leann_search`** - Perform semantic searches across code and documents - **`leann_ask`** - Ask natural language questions and get AI-powered answers from your codebase ## 🎯 Quick Start Example ```bash # Build an index for your project (change to your actual path) leann build my-project --docs ./ # Start Claude Code claude ``` **Try this in Claude Code:** ``` Help me understand this codebase. List available indexes and search for authentication patterns. ```