ScavioScavio
ProductPricingDocs
Sign InGet Started
  1. Home
  2. Tutorials
  3. How to Pair Local Code Search with Scavio for Claude Code
Tutorial

How to Pair Local Code Search with Scavio for Claude Code

An r/ClaudeAI post launched Semble for local code search. Walk-through pairing local code search with Scavio for out-of-repo grounding.

Get Free API KeyAPI Docs

An r/ClaudeAI launch documented Semble cutting Claude Code grep+read token cost dramatically on large repos. This walks pairing local code search MCP with Scavio for out-of-repo grounding (framework docs, recent issues, Stack Overflow).

Prerequisites

  • Claude Code CLI
  • A large repo (>100K LOC) where grep+read is expensive
  • Scavio API key
  • (Optional) Semble or another local code search MCP

Walkthrough

Step 1: Install Semble (or equivalent) for in-repo code search

Local index, no cloud upload.

Bash
# Per Semble docs (verify current install command at the project's README):
# git clone <semble-repo> && cd semble && <install steps>

Step 2: Add Semble as MCP to Claude Code

One CLI line.

Bash
claude mcp add semble <semble-mcp-url-or-path>

Step 3: Add Scavio as MCP for out-of-repo grounding

Web search, framework docs, etc.

Bash
claude mcp add scavio https://mcp.scavio.dev/mcp --header 'x-api-key: $SCAVIO_API_KEY'

Step 4: Tell Claude in the system prompt which tool to pick when

Explicit routing rules.

Text
// 'For in-repo code questions, call semble.search. For framework docs, recent issues, or Stack Overflow questions, call scavio.search. Do not use grep+read for in-repo lookups.'

Step 5: Try a typical task and watch the trace

Should NOT see grep+read fanout.

Text
// 'Find where we handle pagination in the API and update the cursor logic to support backward pagination.'
// Trace should show: semble.search('pagination') → 3-5 ranges → edit those.

Step 6: Compare token cost vs the old grep+read pattern

Honest measurement.

Text
// Run the same task with Semble disabled, then enabled. Expect 80-98% token reduction on large repos.

Python Example

Python
# No code; this is a Claude Code config tutorial. Input tokens drop from tens of thousands to hundreds per query on large repos.

JavaScript Example

JavaScript
// Same — MCP config, not application code.

Expected Output

JSON
Claude Code with two clearly-named MCPs: Semble (in-repo) and Scavio (out-of-repo). Token cost on large repos drops dramatically; routing is explicit; no overlap.

Related Tutorials

  • How to Pick MCP Servers by Real Workflow (Not Hype)

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Claude Code CLI. A large repo (>100K LOC) where grep+read is expensive. Scavio API key. (Optional) Semble or another local code search MCP. A Scavio API key gives you 50 free credits on signup.

Yes. The free tier includes 50 credits on signup, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Related Resources

Use Case

Local Code Search for Claude Code

Read more
Best Of

Best Local Code Search MCPs for Claude Code (2026)

Read more
Solution

Local Code Search Stack (Claude Code, Large Repos)

Read more
Use Case

Claude Code Token Cost MCP Stack

Read more
Best Of

Best Search API for Claude Code in 2026

Read more
Workflow

Claude Code Web Search via Scavio MCP

Read more

Start Building

An r/ClaudeAI post launched Semble for local code search. Walk-through pairing local code search with Scavio for out-of-repo grounding.

Get Free API KeyRead the Docs
ScavioScavio

Real-time search API for AI agents. Search every platform, not just Google.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative

Tools

  • JSON Formatter
  • cURL to Code
  • Token Counter
  • All Tools

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy