What does mcp-code-search-server do?
It helps LLMs find the exact location of code identifiers (e.g., function names, variables, classes) in files and returns the complete definition, not just the line where it appears.
@fx-an
基本情報
一个MCP Server,帮助LLM查找相关代码在文件中的位置,支持返回完整的函数定义。
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-code-search-server": {
"command": "npx",
"args": [
"mcp-code-search-server"
]
}
}
}在指定目录中搜索代码标识符并返回其完整定义。此工具帮助查找变量、函数、类等定义的具体实现代码,而不仅是引用位置。通过获取完整的代码定义及其上下文,有助于理解代码的内部逻辑、数据流和依赖关系,从而更好地分析和解释代码功能。
mcp-code-search-server is an MCP (Model Context Protocol) server that helps large language models (LLMs) find the location of relevant code within files and supports returning complete function definitions. It uses ripgrep to search for identifiers (variables, functions, classes, etc.) in a codebase and returns their full definitions, not just references.
Install with npm install mcp-code-search-server or pnpm install mcp-code-search-server. Run as a CLI tool with npx mcp-code-search-server. It can be integrated as an MCP server in LLM tools by configuring a command that launches npx -y mcp-code-search-server over stdio.
It helps LLMs find the exact location of code identifiers (e.g., function names, variables, classes) in files and returns the complete definition, not just the line where it appears.
JavaScript/TypeScript, Java, and Python are explicitly supported for code parsing.
Use `npm install mcp-code-search-server` or `pnpm install mcp-code-search-server`. Then run it with `npx mcp-code-search-server`.
It communicates with the LLM via the stdio interface following the Model Context Protocol.
Yes. It provides default configuration to exclude common non-code directories and file types, with smart filtering.

PeopleRouter is people search for your agent. Find candidates, researchers, developers, creators and industry experts across LinkedIn, Google Scholar, GitHub, Hugging Face, X, Xiaohongshu, Instagram and Zhihu; enrich pro
VarynForge is an SEO research SaaS that exposes its full workflow as MCP tools. Connect once from Claude Desktop, Claude Code, Cursor, Codex or any MCP host, then ask your agent to set up a project, hand it your article
Search your video library with natural language and retrieve relevant moments through MCP.

Search and compare furnished apartments, studios and rooms in Berlin across multiple housing providers. FlatHunt supports filtering by budget, location, move-in date, rental duration, property type, size, amenities and r

Every SERP, every extractor. One MCP: search, page fetch, cited research, transcripts, product prices and permit records for AI agents, with the source URL on every result.
コメント