J
johnhuang316/code-index-mcp
Index a repo so a model can search it cheaply
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
- Copy the command above
- Paste it as one entry under
mcpServersinclaude_desktop_config.json— local servers take command + args (example: clients) - Restart your client
Client config (built from the install command this repo gives)
{
"mcpServers": {
"johnhuang316-code-index-mcp": {
"command": "uvx",
"args": ["code-index-mcp"]
}
}
}Parsed from the README we fetched on 2026-11-05; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"johnhuang316-code-index-mcp": {
"command": "uvx",
"args": ["code-index-mcp"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio johnhuang316-code-index-mcp -- uvx code-index-mcp
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
- Install
uvx code-index-mcp
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
uvx code-index-mcp. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# Code Index MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Intelligent code indexing and analysis for Large Language Models
Transform how AI understands your codebase with advanced search, analysis, and navigation capabilities.
## Overview
Code Index MCP is a Model Context Protocol server that bridges the gap between AI models and complex codebases. It provides intelligent indexing, advanced search capabilities, and detailed code analysis to help AI assistants understand and navigate your projects effectively.
Perfect for: Code review, refactoring, documentation generation, debugging assistance, and architectural analysis.
## Quick Start
### 🚀 Recommended Setup (Most Users)
The easiest way to get started with any MCP-compatible application:
Prerequisites: Python 3.10+ and uv
1. Add to your MCP configuration (e.g., claudedesktopconfig.json or ~/.claude.json):
json
"mcpServers": {
"code-index": {
"command": "uvx",
"args": ["code-index-mcp"]
> Optional: append --project-path /absolute/path/to/repo to the args array so the server
> initializes with that repository automatically (equivalent to calling setprojectpath
> after startup).
2. Restart your application – uvx automatically handles installation and execution
3. Start using (give these prompts to your AI assistant):
Set the project path to /Users/dev/my-react-app
Find all TypeScript files in this project
Search for "authentication" functions
Analyze the main App.tsx file
If you launch with --project-path, you can skip the first command above - the server already
knows the project location.
### Codex CLI Configuration
If you are using Anthropic's Codex CLI, add the server to ~/.codex/config.toml.
On Windows the file lives at C:\Users\ \.codex\config.toml:
toml
[mcpservers.code-index]
type = "stdio"
command = "uvx"
args = ["code-index-mcp"]
> You can append --project-path C:/absolute/path/to/repo to the args list to set the project
> automatically on startup (same effect as running the setprojectpath tool).
On Windows, uvx needs the standard profile directories to be present.
Keep the environment override in the same block so the MCP starts reliably:
toml
env = {
HOME = "C:\\Users\\ ",
APPDATA = "C:\\Users\\ \\AppData\\Roaming",
LOCALAPPDATA = "C:\\Users\\ \\AppData\\Local",
SystemRoot = "C:\\Windows"
Linux and macOS already expose the required XDG paths and HOME, so you can usually omit the env
table there.
Add overrides only if you run the CLI inside a restricted container.
### FastMCP & Discovery Manifests
Run fastmcp run fastmcp.json to launch the server via FastMCP with
the correct source entrypoint and dependency metadata. Pass --project-path (or call the
setprojectpath tool after startup) so the index boots against the right repository.
Serve or copy .well-known/mcp.json to share a standards-compliant MCP manifest. Clients that
support the .well-known convention (e.g., Claude Desktop, Codex CLI) can import this file
directly instead of crafting configs manually.
Publish .well-known/mcp.llmfeed.json when you want to expose the richer LLM Feed metadata.
It references the same code-index server definition plus documentation/source links, which
helps registries present descriptions, tags, and capabilities automatically.
When sharing the manifests, remind consumers to supply --project-path (or to call
Transform how AI understands your codebase with advanced search, analysis, and navigation capabilities.
## Overview
Code Index MCP is a Model Context Protocol server that bridges the gap between AI models and complex codebases. It provides intelligent indexing, advanced search capabilities, and detailed code analysis to help AI assistants understand and navigate your projects effectively.
Perfect for: Code review, refactoring, documentation generation, debugging assistance, and architectural analysis.
## Quick Start
### 🚀 Recommended Setup (Most Users)
The easiest way to get started with any MCP-compatible application:
Prerequisites: Python 3.10+ and uv
1. Add to your MCP configuration (e.g., claudedesktopconfig.json or ~/.claude.json):
json
"mcpServers": {
"code-index": {
"command": "uvx",
"args": ["code-index-mcp"]
> Optional: append --project-path /absolute/path/to/repo to the args array so the server
> initializes with that repository automatically (equivalent to calling setprojectpath
> after startup).
2. Restart your application – uvx automatically handles installation and execution
3. Start using (give these prompts to your AI assistant):
Set the project path to /Users/dev/my-react-app
Find all TypeScript files in this project
Search for "authentication" functions
Analyze the main App.tsx file
If you launch with --project-path, you can skip the first command above - the server already
knows the project location.
### Codex CLI Configuration
If you are using Anthropic's Codex CLI, add the server to ~/.codex/config.toml.
On Windows the file lives at C:\Users\ \.codex\config.toml:
toml
[mcpservers.code-index]
type = "stdio"
command = "uvx"
args = ["code-index-mcp"]
> You can append --project-path C:/absolute/path/to/repo to the args list to set the project
> automatically on startup (same effect as running the setprojectpath tool).
On Windows, uvx needs the standard profile directories to be present.
Keep the environment override in the same block so the MCP starts reliably:
toml
env = {
HOME = "C:\\Users\\ ",
APPDATA = "C:\\Users\\ \\AppData\\Roaming",
LOCALAPPDATA = "C:\\Users\\ \\AppData\\Local",
SystemRoot = "C:\\Windows"
Linux and macOS already expose the required XDG paths and HOME, so you can usually omit the env
table there.
Add overrides only if you run the CLI inside a restricted container.
### FastMCP & Discovery Manifests
Run fastmcp run fastmcp.json to launch the server via FastMCP with
the correct source entrypoint and dependency metadata. Pass --project-path (or call the
setprojectpath tool after startup) so the index boots against the right repository.
Serve or copy .well-known/mcp.json to share a standards-compliant MCP manifest. Clients that
support the .well-known convention (e.g., Claude Desktop, Codex CLI) can import this file
directly instead of crafting configs manually.
Publish .well-known/mcp.llmfeed.json when you want to expose the richer LLM Feed metadata.
It references the same code-index server definition plus documentation/source links, which
helps registries present descriptions, tags, and capabilities automatically.
When sharing the manifests, remind consumers to supply --project-path (or to call
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/johnhuang316-code-index-mcp/)
- Source
- awesome · https://github.com/johnhuang316/code-index-mcp
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.