Repository Analyzer MCP Server
About
A Model Context Protocol (MCP) server for analyzing code repositories with special tools for the Nostr protocol and NDK.
Details
- Author
- DocNR
- GitHub stars
- 3
- Downloads
- 426
- Categories
- Developer Tools
Jump to
- Analyze code structure, components, dependencies, and changes
- Search repository code with pattern matching and file filtering
- View git history for entire repo or specific files
- Special tools for NDK (Nostr Development Kit) repos
- Special tools for Nostr Protocol implementations and NIPs
- Access file contents and directory listings via resources
Install the project, build it with npm run build, then configure the server in Claude Desktop's claude_desktop_config.json under mcpServers. Set the DEFAULT_REPO_PATH environment variable to specify a default repository, or override it per command with the repoPath parameter.
Repository Analyzer MCP Server
A Model Context Protocol (MCP) server that provides tools for analyzing code repositories, with a special focus on Nostr-related projects.
Features
- Analyze code structure, components, dependencies, and recent changes
- Search through repository code with pattern matching
- View git history for the entire repository or specific files
- Access file content and directory listings
- Special tools for analyzing NDK (Nostr Development Kit) repositories
- Analyze Nostr Protocol implementations and NIPs (Nostr Implementation Possibilities)
Installation
1. Clone this repository
2. Install dependencies:
npm install
3. Build the project:
npm run build
Usage
Setting the Repository Path
The MCP server handles file paths in the following ways:
Default Access Behavior
1. Default access: By default, the server will access the current working directory (cwd) if no path is specified.
2. Configure specific directories: To specify what directories Claude can access, set the DEFAULT_REPO_PATH environment variable in the Claude config.
3. Per-command overrides: Users can override the default path with the repoPath parameter in their commands, like:
analyze-code --focus=structure --repoPath=/another/directory
4. Client permissions: Remember that Claude for Desktop will ask for permission before executing tools that access your filesystem.
Analyzing Multiple Repositories
You can analyze multiple repositories without restarting the server by specifying the repository path directly in your commands:
```
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





