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
Basic information
一个MCP Server,帮助LLM查找相关代码在文件中的位置,支持返回完整的函数定义。
Add this server to your MCP-compatible client using the configuration below.
{
"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.
A professional tool for searching Patsnap’s global patent and literature databases using natural language, semantic, or keyword queries. It supports precise filtering and retrieves bibliographic data in Markdown format.

Search Europe's road freight carriers from your AI assistant: find carriers by route, equipment and certificates among 15,700+ checked carriers in 32 countries, in 14 languages. Read-only, no account needed for searching

If it's here, it's on their board. Search live verified jobs from employer career pages.
Hosted 3GPP MCP server: cited search across Rel-15 through Rel-20 TS/TR specs, recent TDocs, company proposals and meeting decisions. OAuth 2.1; no local index required.

Search 500,000+ active jobs worldwide, discover employers and explore remote, part-time and flexible work. Read full postings and open original application links for free. OAuth with scoped permissions; optional confirme
Comments