MCP Catalogs
首页chunkhound screenshot

chunkhound

by chunkhound·1,258·综合分 55

支持32种语言的本地代码库智能工具,通过MCP集成提供语义代码搜索功能。

developer-toolsai-llmsearch
99
Forks
82
活跃 Issue
本月
最近提交
2 天前
收录于

概述

ChunkHound是一个本地优先的代码库智能工具,能从代码库中提取架构、模式和制度知识。它使用经过研究验证的cAST算法进行语义代码分块,并提供超出直接匹配的多跳语义搜索功能。该工具支持自然语言查询的语义搜索和不需API密钥的正则表达式模式匹配,使其在不同用例中具有多功能性,同时保持本地隐私。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:搜索具有跨团队依赖的大型monorepo
:需要本地处理的敏感代码库
:需要一致搜索功能的多语言项目
:ChunkHound需要互联网连接吗?
:ChunkHound支持哪些编程语言?

什么时候选它

当您在安全敏感环境中需要深入代码关系分析,或在大型多语言代码库中传统搜索不足时,选择 ChunkHound。

什么时候不要选它

如果您需要基于云的搜索且希望最小化本地设置,或者您处理的是完全不需要语义关系分析的代码库,请避免使用 ChunkHound。

此 server 暴露的工具

从 README 抽取出 6 个工具
  • search_code

    Semantic search for code using natural language queries

  • regex_search

    Pattern matching search in code without API keys

  • index_codebase

    Index the codebase for semantic search and analysis

  • find_dependencies

    Discover interconnected code relationships and dependencies

  • code_analysis

    Analyze code patterns and architecture

  • research_code

    Deep research into code using multi-hop semantic search

说明:Tool names inferred from feature descriptions and documentation about capabilities. The README mentions MCP integration but doesn't explicitly list tool names with signatures.

可对比工具

semantic-sensecodesearchast-grepripgrep

安装

  1. 如需要,安装uv包管理器:curl -LsSf https://astral.sh/uv/install.sh | sh
  2. 安装ChunkHound:uv tool install chunkhound
  3. 在项目根目录创建.chunkhound.json并配置API密钥(正则搜索不需要)
  4. 索引代码库:chunkhound index

对于Claude Desktop集成,添加到config.json:

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

FAQ

ChunkHound需要互联网连接吗?
不需要,ChunkHound是本地优先的工具,可以离线工作。但某些功能如语义搜索可能需要嵌入API密钥,这些需要互联网连接。
ChunkHound支持哪些编程语言?
ChunkHound支持32种语言,包括Python、JavaScript/TypeScript、Java、C/C++、Go、Rust等。它使用Tree-sitter解析编程语言,并使用自定义解析器处理文本文件。

Hacker News 讨论

开发者社区最近的相关讨论。

chunkhound 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。