# Code Search MCP

> **TL;DR.** Code Search MCP is a category of [Model Context Protocol](https://www.

- **Category:** AI / Developer Tools / Infrastructure
- **Stage:** established
- **Age:** 377 days
- **Origin date:** 2025-06-04
- **First detected:** 2026-04-22
- **Canonical URL:** https://earlyterms.com/term/code-search-mcp
- **Sources:** 6 primary URLs

## Definition

Code Search MCP is a category of [Model Context Protocol](https://www.anthropic.com/news/model-context-protocol) servers that give AI coding agents semantic and structural search over local codebases. Instead of loading entire directories into a context window, these servers index code once — via Tree-sitter ASTs or vector embeddings — and serve only the relevant snippets on demand.

The pattern crystallized on [Hacker News in June 2025](https://news.ycombinator.com/item?id=44176107), when the first "Show HN: Code Search MCP" posts appeared weeks after Anthropic open-sourced MCP. [zilliztech/claude-context](https://github.com/zilliztech/claude-context) became the category's breakout implementation, reaching 7k stars by mid-2026, while a dozen competing servers — CocoIndex, Sourcerer, Reflex, Anvil — each staked out different indexing and embedding strategies.

## Analogy

Think of it as a librarian for your codebase: fetches the right page instead of handing the AI every book.

## Why it's emerging now

Anthropic's MCP spec (Nov 2024) made code search a first-class plugin target. Claude Code's explosive adoption in 2025 exposed a gap: its native search is grep-level, so builders flooded in with AST + vector alternatives that cut token waste by 40–98% and surface call graphs, not just file contents.

## Related terms

- *parent:* model-context-protocol
- *parent:* mcp-server
- *related:* mcp-tool
- *related:* claude-code
- *related:* agentic-coding
- *related:* context-engineering
- *related:* context-window
- *competitor:* vault-context
- *related:* agent-harness
- *related:* coding-agents
- *related:* tokenmaxxing
- *related:* language server protocol

## Sources

1. [zilliztech/claude-context — Code search MCP for Claude Code (7.1k stars)](https://github.com/zilliztech/claude-context)
2. [Anthropic — Introducing the Model Context Protocol](https://www.anthropic.com/news/model-context-protocol)
3. [Show HN: Anvil – multi-repo AI pipeline and MCP server for code search](https://news.ycombinator.com/item?id=47848169)
4. [CocoIndex Code — AST-based code search, 1.4k stars](https://github.com/cocoindex-io/cocoindex-code)
5. [Jean-Luc Davern: Semantic Code Search in Claude Code — The Missing Feature](https://medium.com/@jldavern/semantic-code-search-in-claude-code-the-missing-feature-32b22d62f6a2)
6. [Show HN: Sourcerer – MCP for semantic code search that reduces token waste](https://news.ycombinator.com/item?id=45074706)

---
_Generated by EarlyTerms · https://earlyterms.com/term/code-search-mcp_
