Repository Analyzer MCP Server logo

Repository Analyzer MCP Server

by DocNR

The Repository Analyzer MCP Server provides tools for analyzing code repositories, particularly those related to Nostr projects. It allows users to examine code structure, dependencies, git history, and more.

View on GitHub

Last updated: N/A

What is Repository Analyzer MCP Server?

A Model Context Protocol (MCP) server designed to analyze code repositories, with a focus on Nostr-related projects. It provides tools to understand code structure, dependencies, and history.

How to use Repository Analyzer MCP Server?

First, clone the repository and install dependencies using npm install, then build the project with npm run build. Configure the server path in your Claude Desktop config file, specifying the path to the built index.js file and the default repository path. You can override the default path by using the repoPath parameter in commands.

Key features of Repository Analyzer MCP Server

  • Analyze code structure, components, and dependencies

  • Search code with pattern matching

  • View git history for files or the entire repository

  • Analyze NDK (Nostr Development Kit) repositories

  • Analyze Nostr Protocol implementations and NIPs

  • Access file content and directory listings

Use cases of Repository Analyzer MCP Server

  • Understanding the architecture of a Nostr-related project

  • Identifying dependencies in a large codebase

  • Tracking changes to specific files over time

  • Analyzing the implementation of a Nostr Improvement Proposal (NIP)

  • Searching for specific code patterns across multiple repositories

FAQ from Repository Analyzer MCP Server

How do I specify the repository path?

You can set the DEFAULT_REPO_PATH environment variable in the Claude config, or override it with the repoPath parameter in your commands.

How do I connect this server to Claude Desktop?

Edit your Claude Desktop config file and add the server configuration, specifying the command, arguments, transport, and environment variables.

What if Claude Desktop fails to start or the MCP servers don't appear?

Check your configuration file for JSON syntax errors, ensure all paths are absolute and correct, and check Claude Desktop logs for errors.

What types of repositories does the analyzer support?

The analyzer supports generic repositories, NDK repositories, and Nostr protocol repositories. Special analysis tools are available for NDK and Nostr protocol repositories.

What are the available analysis tools?

The available tools include analyze-code, search-code, git-history, analyze-ndk, analyze-ndk-files, analyze-nostr-protocol, and analyze-repo.