Repository Analyzer MCP Server
About
A Model Context Protocol (MCP) server for analyzing code repositories with special tools for the Nostr protocol and NDK.
Explore
- 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)
1. Clone this repository
2. Install dependencies:
npm install
3. Build the project:
npm run build
2. Add the server configuration:
json
{
"mcpServers": {
"repo-analyzer": {
"command": "node",
"args": [
"/absolute/path/to/repo-analyzer-mcp/dist/index.js"
],
"transport": "stdio",
"env": {
"NODE_ENV": "production",
"DEFAULT_REPO_PATH": "/path/to/default/repository"
}
}
}
}
``
Replace
/absolute/path/to/repo-analyzer-mcp with the actual full path to where you installed this tool, and /path/to/default/repository` with the path to the repository you want to analyze by default.
3. Save the file and restart Claude Desktop.
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.



