chunkhound

chunkhound

Built by chunkhound • 1,182 stars

What is chunkhound?

Local first codebase intelligence

How to use chunkhound?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add chunkhound using the following command: npx @modelcontextprotocol/chunkhound 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/chunkhound --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/chunkhound

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

chunkhound FAQ

Q

Is chunkhound safe?

Yes, chunkhound follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is chunkhound up to date?

chunkhound is currently active in the registry with 1,182 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for chunkhound?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<p align="center"> <a href="https://chunkhound.github.io"> <picture> <source media="(prefers-color-scheme: dark)" srcset="public/wordmark-centered-dark.svg"> <img src="public/wordmark-centered.svg" alt="ChunkHound" width="400"> </picture> </a> </p> <p align="center"> <strong>Local-first codebase intelligence</strong> </p> <p align="center"> <a href="https://github.com/chunkhound/chunkhound/actions/workflows/smoke-tests.yml"><img src="https://github.com/chunkhound/chunkhound/actions/workflows/smoke-tests.yml/badge.svg" alt="Tests"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a> <img src="https://img.shields.io/badge/100%25%20AI-Generated-ff69b4.svg" alt="100% AI Generated"> <a href="https://discord.gg/BAepHEXXnX"><img src="https://img.shields.io/badge/Discord-Join_Community-5865F2?logo=discord&logoColor=white" alt="Discord"></a> </p>

Your AI assistant searches code but doesn't understand it. ChunkHound researches your codebase—extracting architecture, patterns, and institutional knowledge at any scale. Integrates via MCP.

Features

  • cAST Algorithm - Research-backed semantic code chunking
  • Multi-Hop Semantic Search - Discovers interconnected code relationships beyond direct matches
  • Semantic search - Natural language queries like "find authentication code"
  • Regex search - Pattern matching without API keys
  • Local-first - Your code stays on your machine
  • 32 languages with structured parsing
    • Programming (via Tree-sitter): Python, JavaScript, TypeScript, JSX, TSX, Java, Kotlin, Groovy, C, C++, C#, Go, Rust, Haskell, Swift, Bash, MATLAB, Makefile, Objective-C, PHP, Dart, Lua, Vue, Svelte, Zig
    • Configuration: JSON, YAML, TOML, HCL, Markdown
    • Text-based (custom parsers): Text files, PDF
  • MCP integration - Works with Claude, VS Code, Cursor, Windsurf, Zed, etc
  • Real-time indexing - Automatic file watching, smart diffs, seamless branch switching

Documentation

Visit chunkhound.github.io for complete guides:

Requirements

Installation

# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install ChunkHound
uv tool install chunkhound

Quick Start

  1. Create .chunkhound.json in project root
{
  "embedding": {
    "provider": "voyageai",
    "api_key": "your-voyageai-key"
  },
  "llm": {
    "provider": "claude-code-cli"
  }
}

Note: Use "codex-cli" instead if you prefer Codex. Both work equally well and require no API key.

  1. Index your codebase
chunkhound index

For configuration, IDE setup, and advanced usage, see the documentation.

Why ChunkHound?

ApproachCapabilityScaleMaintenance
Keyword SearchExact matchingFastNone
Traditional RAGSemantic searchScalesRe-index files
Knowledge GraphsRelationship queriesExpensiveContinuous sync
ChunkHoundSemantic + Regex + Code ResearchAutomaticIncremental + realtime

Ideal for:

  • Large monorepos with cross-team dependencies
  • Security-sensitive codebases (local-only, no cloud)
  • Multi-language projects needing consistent search
  • Offline/air-gapped development environments

License

MIT

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "chunkhound": { "command": "npx", "args": ["chunkhound"] } } }