| title | Welcome to SHARC |
|---|---|
| description | Semantic code search for AI assistants |
SHARC (Semantic Hybrid Architecture for Repository Code-search) is a powerful MCP-powered semantic code search tool that helps AI assistants understand and navigate codebases more efficiently.
SHARC provides semantic code search capabilities to AI assistants like Claude Code, Cursor, and other MCP-compatible tools. Instead of relying on keyword matching or file-by-file exploration, SHARC uses state-of-the-art embeddings to understand the meaning of your code and find relevant results instantly.
Semantic search finds relevant code directly, eliminating the need for multiple grep/read operations. Return only the most relevant code snippets instead of entire files. Get answers in seconds, not minutes. Real-time file watching keeps your index current. Install SHARC and configure it with your AI assistant in minutes. Learn about the 7 MCP tools available for indexing and searching. See published NPM packages for the MCP server and code splitter. Understand how SHARC works under the hood.flowchart TB
A["User in AI Assistant"] --> B["MCP Tool Handler"]
B --> C["SHARC Backend"]
C --> D["Embedding + Search"]
D --> E["Ranked Results"]
The fastest way to get started is with Claude Code:
claude mcp add sharc -e SHARC_API_KEY=sk_mcp_... -- npx -y @sharc-code/mcp@latestThen index your codebase and start searching:
> Index this codebase for semantic search
● index_codebase (MCP)
⎿ Indexed 2,450 chunks from 342 files in 18.3s
> How does authentication work in this project?
● search_code (MCP)
⎿ Found 3 results for query: "authentication"