MCP Repo Search Server

by yohannhommet

Not rated
GitHub

About

MCP server that gives LLMs structural code intelligence across multiple repos

Details

Author
yohannhommet
Categories
Developer Tools, Search, Knowledge Base

1. Search Any Directory (No Configuration)

"Find all functions starting with 'handle' in my backend"

repolens_find_functions(paths: "/home/user/projects/backend", name: "handle*")

"Find the Express route that handles POST requests to /login"

repolens_find_api_routes(repoFilter: "backend", method: "POST", pathPattern: "/login")

"Where is the UserService class defined?"

repolens_find_classes(name: "UserService")

MCP server that gives LLMs structural code intelligence across multiple repos

Cross-repository code intelligence for developers.

Search functions, classes, and API routes across all your local JS/TS and PHP repositories without switching context.

The problem:You're working in your frontend repo and need to find a backend API endpoint. Or you're debugging and need to find where a function is defined across your monorepo. With Claude Code, you can search the current repository, but what about your other local projects?

The solution:Repo Lens lets you declare your repositories once in a YAML config file — or search any directory ad-hoc — and search across all of them simultaneously using AST-based structural search. Find the exact function signature, class definition, or API route you need without leaving your current context.

- Frontend + Backend development:Search backend API routes while working in your frontend repo
- PHP + JS/TS projects:Find PHP classes, traits, and interfaces alongside TypeScript types
- Microservices architecture:Find function definitions across multiple services
- Monorepo navigation:Search across packages without switching directories
- Code exploration:Understand how different projects in your ecosystem connect

Unlike grep-style text search, Repo Lens usesast-grep(written in Rust) to parse code into Abstract Syntax Trees:

- Structural accuracy:Distinguish betweenclass Userandconst User
- Export awareness:Find only exported functions, or include private ones
- Signature extraction:Get full function signatures, not just names

Search any directory instantly with thepathsparameter — no configuration required:

- Pass directory paths directly to any search tool
- Declare persistent repos inrepolens.yamlwith aliases for repeated use
- Mix both: registered repos + ad-hoc paths in the same query

Declare your repositories once and search them all at once:

- Static YAML config — declare once, search always
- Filter by repository alias or search all
- Results include repository context

Map all API endpoints across Express, NestJS, Fastify, and Laravel projects. Find that/users/:idendpoint in seconds.

Add this to yourclaude_desktop_config.json(or VS Code MCP settings):

{ "mcpServers": { "repo-lens": { "command": "npx", "args": ["-y", "repo-lens-mcp", "--config", "/home/user/repolens.yaml"] } } }

Restart Claude, and you're ready to go.

git clone https://github.com/YohannHommet/repo-lens-mcp.git cd repo-lens-mcp pnpm install pnpm build pnpm dev

Create a YAML config file declaring your repositories:

# repolens.yaml repositories: - path: ~/projects/backend-api alias: backend - path: ~/projects/frontend-app alias: frontend - path: ~/projects/shared-lib

~is expanded to your home directory automatically.
- --config <path>CLI argument (explicit — fails if file not found)
- Default:~/.config/repo-lens-mcp/repolens.yaml(graceful — returns empty if not found, ad-hoc paths still work)

{ "env": { "MCP_LOG_LEVEL": "debug" } }

AST-based structural search powered by ast-grep. SupportsJavaScript/TypeScriptandPHP(classes, traits, interfaces, enums, functions, methods, constants):

- paths— Ad-hoc directory paths to search (comma-separated, no registration needed)
- repoFilter— Filter registered repositories by alias

1. Search Any Directory (No Configuration)

"Find all functions starting with 'handle' in my backend"

repolens_find_functions(paths: "/home/user/projects/backend", name: "handle*")

"Find the Express route that handles POST requests to /login"

repolens_find_api_routes(repoFilter: "backend", method: "POST", pathPattern: "/login")

"Where is the UserService class defined?"

repolens_find_classes(name: "UserService")

What About Text Search / File Operations?

Repo Lens focuses onmulti-repository AST-based search. For text search and file operations within your current repository, use Claude Code's built-in tools (Grep, Read, Glob) which are optimized for single-repo use.

This separation keeps Repo Lens fast and focused on what it does best: cross-repository structural code intelligence.

This software is free to use. If you modify and distribute it (or run it as a network service), you must share your source code under the same license.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Semantic code search for AI agents without indexing your codebase or storing any data. Fast and accurate.

Create and read feature flags, review experiments, generate flag types, search docs, and interact with GrowthBook's feature flagging and experimentation platform.

Word search, crossword, and sudoku generator MCP server with printable PDF worksheets, themed word banks, and verifiable LLM evals. Local-first, from the makers of puzzletide.com.

Official MCP server for Stimulsoft Reports & Dashboards documentation. Semantic search across FAQ, Programming Manual, Server/User Manual, and Server/Cloud API for .NET, WPF, Avalonia, WEB, Blazor, Angular, React, JS, PHP, Java, and Python platforms.

Searching and access your AI coding sessions from Claude Code, Gemini CLI, opencode, and OpenAI Codex.

Search Apple's Developer Documentation with smart search and wildcard support.

MCP server that exposes ast-grep (sg) as two tools for structural code search.

Search everything your terminal ever printed. Local MCP server over per-command recorded output: full-text search, exit codes, diffs, secret redaction. Built and maintained by an AI agent (Soren Achebe).

Let AI agents search, register, and manage domains via API

Search, compare, and get docs for 210+ APIs ranked by CLI and agent relevance

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.