CocoIndex

•

Enables semantic code indexing and natural language search across code repositories for AI coding assistants.

CocoIndex is an MCP (Model Context Protocol) server designed to provide semantic code indexing and search capabilities. Powered by CocoIndex, it allows AI coding assistants like OpenCode and Claude Code to index your code repositories and perform natural language queries. It leverages a local PostgreSQL database with pgvector for storing embeddings, ensuring a local-first approach without external API calls for embedding generation. This tool simplifies the process of making large codebases semantically searchable for AI-driven development workflows.

主要功能

01Semantic code search with natural language queries
020 GitHub stars
03Multi-language support for common programming languages and Markdown
04Ability to maintain and search multiple distinct code indexes
05Local-first embedding generation using 'sentence-transformers/all-MiniLM-L6-v2'
06MCP-native, exposing five tools over stdio transport for client compatibility

使用案例

01Integrating semantic code search into AI coding assistants like OpenCode and Claude Code
02Indexing and searching large developer repositories with natural language queries
03Providing a local, privacy-preserving solution for code understanding for AI tools