Repository Analyzer MCP Server

Repository Analyzer MCP Server

repo-analyzer-mcp•bydocnr

A Model Context Protocol server offering tools and resources for analyzing code repositories, with specialized support for Nostr, NDK, and NIP repositories.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Analyzes repository code structure, components, dependencies, and recent changes.
  • •Searches repository code with pattern matching and optional file pattern filters.
  • •Retrieves git commit history for the whole repository or a specific file.
  • •Exposes resources for reading file contents and listing directory contents.

BEST FOR

  • •Analyzing Nostr Development Kit repositories for implementation details and migrations.
  • •Reviewing Nostr protocol repositories for NIP event types and language implementations.
  • •Examining general repository architecture, APIs, and implementation patterns.

ABOUT REPO-ANALYZER-MCP

Repository Analyzer MCP Server is cataloged as an MCP server attributed to docnr. A Model Context Protocol server offering tools and resources for analyzing code repositories, with specialized support for Nostr, NDK, and NIP repositories. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Repository Analyzer MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server analyze multiple repositories without restarting?

Yes, analysis tools accept a repoPath parameter that overrides the default repository path.

How does the server decide which directory to access by default?

It uses the current working directory unless a default repository path is configured.

上游原版 README

在 GitHub 查看同一版本原文

README.md · a80bc9ff91bc · 采集于 2026-11-13 10:44:13 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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
  1. 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:

# Analyze structure of a specific repository
analyze-repo --focus=overview --repoType=generic --repoPath=/path/to/specific/repo

# Analyze code in a different repository
analyze-code --focus=structure --path=src/index.js --repoPath=/path/to/another/repo

# Search for patterns in yet another repository
search-code --query="addEventListener" --filePattern="*.js" --repoPath=/path/to/third/repo

All analysis tools (analyze-repo, analyze-code, search-code, git-history, analyze-ndk, analyze-ndk-files, and analyze-nostr-protocol) accept a repoPath parameter which overrides the default path.

Connecting to Claude Desktop

To connect this MCP server to Claude Desktop:

  1. Edit your Claude Desktop config file:
# On macOS
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
# On Windows
# Edit %AppData%\Claude\claude_desktop_config.json
  1. Add the server configuration:
{
  "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.

  1. Save the file and restart Claude Desktop.

Troubleshooting

If Claude Desktop fails to start or the MCP servers don't appear:

  1. Check your configuration file for JSON syntax errors
  2. Ensure all paths are absolute (full) paths and are correct
  3. Make sure there are no trailing commas after the last entry in each object
  4. Check Claude Desktop logs for errors: ~/Library/Logs/Claude/mcp*.log
  5. For additional debugging, you can add "DEBUG": "mcp:*" to the env section of your configuration
  6. Restart Claude Desktop

Available Tools

analyze-code

Analyzes code files with different focus options:

  • structure: Examines the file structure, including line counts, functions, classes, etc.
  • components: Identifies React components, hooks usage, etc.
  • dependencies: Lists imports and dependencies
  • changes: Shows recent git history and changes to the file

Example:

Analyze the code structure of src/index.ts

search-code

Searches the repository for specific patterns, with optional file pattern filtering.

Example:

Search the code for "addEventListener" in .js files

git-history

Retrieves git commit history for the repository or a specific file.

Example:

Show me the git history for README.md, limit to 5 commits

analyze-ndk

Analyzes Nostr Development Kit (NDK) repositories with focus on:

  • implementation: Core implementation details
  • migrations: Version changes and migration guides
  • all: Both implementation and migrations

Example with explicit repository path:

Analyze NDK implementation at /path/to/ndk-repo

analyze-ndk-files

Explores the NDK file structure with focus on:

  • overview: General overview of the repository
  • components: Component architecture
  • api: API structure and design
  • architecture: Overall architecture and patterns
  • all: Comprehensive analysis

Example with explicit repository path:

Analyze NDK files with focus on components at /path/to/ndk-repo

analyze-nostr-protocol

Analyzes Nostr protocol repositories with focus on:

  • events: Event types and structures defined in NIPs
  • implementations: Implementation details across different languages

Example with explicit repository path:

Analyze Nostr Protocol events at /path/to/nips-repo with focus on social context

analyze-repo

Provides a general repository analysis with various focus options:

  • overview: High-level repository information
  • components: Component structure and organization
  • api: API definitions and structure
  • architecture: Overall architectural patterns
  • implementation: Implementation details
  • all: Comprehensive analysis of all aspects

Example:

Analyze the repo with focus on architecture

Resources

The server also provides access to:

  • file://{filePath}: Read file contents from the repository
  • dir://{dirPath}: List directory contents from the repository

Example:

Show me the content of the package.json file

Directory Structure for Specialized Analysis

For the specialized analysis tools to work correctly, repositories should follow certain structures:

NDK Repository Structure

The analyzer looks for one of these structures:

  • A repository with a root package.json that has the name @nostr-dev-kit/ndk
  • A repository with an ndk directory containing a package.json with the name @nostr-dev-kit/ndk

Nostr Protocol Repository Structure

The analyzer looks for one of these structures:

  • A repository with a nips directory containing Markdown files for NIPs
  • A repository with a README mentioning "NIP" and "Nostr Implementation Possibilities"
  • A repository with a package.json that references "nostr" in its name, description, or keywords

Development

To run in development mode:

npm run dev

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Repository Analyzer MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/repo-analyzer-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools