Skip to main content
Glama

react-analyzer-mcp

by azer

react-analyzer-mcp

Analyze & generate docs for React code using the Model Context Protocol. Based on react-analyzer library.

What it does

This tool analyzes React component files (JSX/TSX) and extracts information about components and their props.

Available Tools

  • analyze-react: Analyzes a single React component from source code
  • analyze-project: Generates documentation for all React components in a project folder
  • list-projects: Lists all projects under the root folder

Installation

# Clone the repository git clone https://github.com/azer/react-analyzer-mcp.git cd react-analyzer-mcp # Install dependencies npm install # Update PROJECT_ROOT in the index.ts file. vim src/index.ts # Build npm run build

Using with Claude

  1. Enable MCP server in the Claude Desktop config:
{ "react-analyzer-mcp": { "command": "node", "args": [ "/Users/azer/code/sandbox/react-analyzer-mcp/build/index.js" ] } }
  1. Connect Claude to your MCP server using the Claude Shell.
  2. Use the tools directly in Claude conversations:
Analyze my project's React components in the "ui" folder.

Or:

What React components do I have in my project?

Examples

Analyzing a project folder:

Input:

Can you analyze the components in my "foobar" folder?

Output:

# Components ## Button ### Props | Prop | Type | Optional | Default | |------|------|----------|---------| | `variant` | `string` | ✓ | `primary` | | `size` | `string` | ✓ | `md` | | `onClick` | `function` | ✓ | | ...

License

MIT

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

  • analyze your react projects locally

  • consistent output w/ AST parsing + AI

  • create markdown docs, llm.txt for your react code at once

  1. What it does
    1. Available Tools
      1. Installation
        1. Using with Claude
          1. Examples
            1. Analyzing a project folder:
          2. License

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Analyzes codebases using Repomix and LLMs to provide structured code reviews with specific issues and recommendations, supporting multiple LLM providers including OpenAI, Anthropic, and Gemini.
              Last updated -
              2
              26
            • A
              security
              A
              license
              A
              quality
              Provides tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations with advanced filtering capabilities.
              Last updated -
              6
              24
              1
              MIT License
            • -
              security
              A
              license
              -
              quality
              Provides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.
              Last updated -
              1
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              Enables AI assistants to understand and navigate codebases through structural analysis. Provides code mapping, symbol search, and impact analysis using ast-grep for accurate parsing of Python, JavaScript, TypeScript, and Go projects.
              Last updated -
              3
              29
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/azer/react-analyzer-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server