Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lenny RAG MCP Serverwhat are the key insights on B2B pricing and growth loops?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lenny RAG MCP Server
An MCP server providing hierarchical RAG over 299 Lenny Rachitsky podcast transcripts. Enables product development brainstorming by retrieving relevant insights, real-world examples, and full transcript context.
Quick Start
Claude Code
Or add to ~/.claude.json:
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Cursor
Add to .cursor/mcp.json in your project or ~/.cursor/mcp.json globally:
Replace
/path/to/lenny-rag-mcpwith your actual clone location in all configs.
MCP Tools
search_lenny
Semantic search across the entire corpus. Returns pointers for progressive disclosure.
Parameter | Type | Description |
| string | Search query (e.g., "pricing B2B products", "founder mode") |
| integer | Number of results (default: 5, max: 20) |
| string | Filter by type: |
Returns: Ranked results with relevance scores, episode references, and topic IDs for drilling down.
get_chapter
Load a specific topic with full context. Use after search_lenny to get details.
Parameter | Type | Description |
| string | Episode filename (e.g., "Brian Chesky.txt") |
| string | Topic ID (e.g., "topic_3") |
Returns: Topic summary, all insights, all examples, and raw transcript segment.
get_full_transcript
Load complete episode transcript with metadata.
Parameter | Type | Description |
| string | Episode filename (e.g., "Brian Chesky.txt") |
Returns: Full transcript (10-40K tokens), episode metadata, and topic list.
list_episodes
Browse available episodes, optionally filtered by expertise.
Parameter | Type | Description |
| string | Filter by tag (e.g., "growth", "pricing", "AI") |
Returns: List of 299 episodes with guest names and expertise tags.
Data Curation Approach
Hierarchical Extraction
Each transcript is processed into a 4-level hierarchy enabling progressive disclosure:
This allows Claude to start with lightweight search results and drill down only when needed, keeping context windows efficient.
Extraction Schema
Implicit Anchor Detection
Many guests reference companies without naming them ("at my previous company..."). The extraction prompt instructs the model to infer identities based on the guest's background:
Brian Chesky saying "when we started" → Airbnb (high confidence)
A marketplace expert saying "one ride-sharing company" → likely Uber/Lyft (medium confidence)
This surfaces examples that wouldn't be found by keyword search alone.
Quality Thresholds
Each transcript extraction is validated against minimum thresholds:
Element | Minimum | Typical |
Topics | 10 | 15-20 |
Insights | 15 | 25-35 |
Examples | 10 | 18-25 |
Extractions below thresholds trigger warnings for manual review.
Models & Tech Stack
Component | Model/Tool | Purpose |
Preprocessing | Claude Haiku (via Claude CLI) | Extract structured hierarchy from transcripts |
Embeddings | bge-small-en-v1.5 | Semantic similarity for search |
Vector DB | ChromaDB | Persistent vector storage |
MCP Framework | mcp (Python SDK) | Tool interface for Claude |
Why Claude Haiku for Preprocessing?
Quality: Haiku follows complex extraction prompts reliably
Cost:
$0.02-0.03 per transcript ($6-9 total for 299 episodes)Speed: ~30 seconds per transcript
Why bge-small-en-v1.5 for Embeddings?
Performance: Top-tier retrieval quality for its size
Efficiency: 384 dimensions, fast inference
Local: Runs entirely on CPU, no API calls needed
Corpus Statistics
Metric | Count |
Episodes | 299 |
Topics | 6,183 |
Insights | 8,840 |
Examples | 6,502 |
Avg topics/episode | 20.7 |
Avg insights/episode | 29.6 |
Avg examples/episode | 21.7 |
Rebuilding the Index
The repo includes a pre-built ChromaDB index. To rebuild from scratch:
Reprocess Transcripts (requires Claude CLI)
Rebuild Embeddings
Project Structure
License
MIT