MCP server for multi-repository AST-based symbol search and API route discovery
MCP Repo Search Server MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for multi-repository AST-based symbol search and API route discovery.
Unlike grep-style text search, Repo Lens uses ast-grep (written in Rust) to parse code into Abstract Syntax Trees:
The server ships on npm as repo-lens-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Once MCP Repo Search Server is connected, these are the calls the assistant has available:
paths — Ad-hoc directory paths to search (comma-separated, no registration needed)repoFilter — Filter registered repositories by aliasrepolens_find_functions — Find function/method definitions in JS/TS and PHP (supports wildcards like handle*)repolens_find_classes — Find class definitions (also finds PHP traits)repolens_find_types — Find interfaces and type aliases (PHP: interfaces only)repolens_find_api_routes — Map API endpoints across Express, NestJS, Fastify, LaravelYou will need one environment variable: MCP_LOG_LEVEL. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of file and storage access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP Repo Search Server's toolset — paths, repoFilter, repolens_find_functions and 3 more — is a fair guide to whether it matches your workflow. It is maintained by yohannhommet; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| paths | Ad-hoc directory paths to search (comma-separated, no registration needed) |
| repoFilter | Filter registered repositories by alias |
| repolens_find_functions | Find function/method definitions in JS/TS and PHP (supports wildcards like handle*) |
| repolens_find_classes | Find class definitions (also finds PHP traits) |
| repolens_find_types | Find interfaces and type aliases (PHP: interfaces only) |
| repolens_find_api_routes | Map API endpoints across Express, NestJS, Fastify, Laravel |
{
"mcpServers": {
"repo-lens": {
"command": "npx",
"args": ["-y", "repo-lens-mcp", "--config", "/home/user/repolens.yaml"]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| MCP_LOG_LEVEL | Configuration value read at startup. | Optional |
Scoped local file access — read, write, search and reorganise files in directories you explicitly allow.
Search and read your Drive — Docs, Sheets and files become context your assistant can actually use.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Chat with your second brain — search, read and write vault notes through the Local REST API.
Connects AI models to an Obsidian knowledge base for direct access and manipulation of notes and folders.