CodeIndexer
Code search MCP for Claude Code. Make entire codebase the context for any coding agent.
GitHub Stars
3,412
User Rating
Not Rated
Favorites
0
Views
7
Forks
283
Issues
45
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Node.js: 20.0.0以上
npm: 8.0.0以上
Installation
Installation
Prerequisites
Please specify required software and versions:Node.js: 20.0.0 or higher
npm: 8.0.0 or higher
Installation Steps
1. Clone Repository
bash
git clone https://github.com/zilliztech/CodeIndexer
cd CodeIndexer
2. Install Dependencies
bash
npm install
3. Start Server
bash
npm start
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Node.js version and reinstall dependencies.Configuration
Configuration
Basic Configuration
Claude Desktop Setup
Edit~/.config/claude-desktop/claude_desktop_config.json
(macOS/Linux) or
%APPDATA%\Claude\claude_desktop_config.json
(Windows):
json
{
"mcpServers": {
"codeindexer": {
"command": "node",
"args": ["server.js"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Environment Variables
Set the following environment variables as needed:bash
export API_KEY="your-api-key"
Configuration Example
json
{
"mcpServers": {
"example-mcp": {
"command": "node",
"args": ["server.js"],
"env": {
"PORT": "3000",
"LOG_LEVEL": "info"
}
}
}
}
Examples
Examples
Basic Usage
Programmatic Usage
javascript
// JavaScript example (Node.js)
const { MCPClient } = require('@modelcontextprotocol/client');
const client = new MCPClient();
await client.connect();
// Execute tool
const result = await client.callTool('toolName', {
parameter1: 'value1',
parameter2: 'value2'
});
console.log(result);
Use Cases
Quickly search for specific functions within a large codebase.
Build an AI coding IDE to enhance developer productivity.
Use natural language queries to find necessary code snippets.
Integrate CodeIndexer into existing IDEs to provide semantic code navigation.
Additional Resources
Author Information
0
Followers
0
Repositories
0
Gists
0
Total Contributions