MCP server for analyzing & generating docs for React code locally
https://github.com/azer/react-analyzer-mcpStop manually documenting React components. This MCP server analyzes your React/TypeScript files and generates accurate prop documentation automatically—no more hunting through codebases to understand component APIs.
You're deep in a React project with dozens of components. A teammate asks about the UserCard props, or you need to document the design system components, or you're onboarding someone new. You either:
Point it at your React project and get structured component documentation instantly. It parses JSX/TSX files, extracts component signatures, and generates clean markdown tables with prop types, defaults, and optional flags.
Can you analyze the components in my "components" folder?
Returns:
## Button
### Props
| Prop | Type | Optional | Default |
|------|------|----------|---------|
| `variant` | `string` | ✓ | `primary` |
| `size` | `string` | ✓ | `md` |
| `onClick` | `function` | ✓ | |
| `disabled` | `boolean` | ✓ | `false` |
analyze-react: Drop in a single component file, get its complete prop interface analyze-project: Scan entire project folders, get documentation for all components list-projects: See all available projects under your root directory
Design System Documentation: Run analyze-project on your component library folder. Instant prop reference that stays current with your code.
Code Reviews: When reviewing component changes, ask Claude to analyze the modified components. See exactly what props changed without manually diffing interfaces.
Onboarding: New team members can ask "What components are available in the dashboard folder?" and get immediate, accurate answers.
API Design: Before building new components, analyze similar existing ones to maintain consistency in prop naming and patterns.
Clone, install, build, then add to your Claude Desktop config:
{
"react-analyzer-mcp": {
"command": "node",
"args": ["/path/to/react-analyzer-mcp/build/index.js"]
}
}
Update the PROJECT_ROOT in src/index.ts to point to your projects directory.
Always Current: Analyzes actual source code, not stale documentation
Zero Maintenance: No separate docs to update when components change
Complete Coverage: Finds every component and prop automatically
Consistent Format: Standardized output regardless of coding styles
This isn't another tool that requires changing your workflow. It plugs into Claude Desktop via MCP, so you ask questions in natural language and get structured answers. No new interfaces to learn, no build steps to add to your project.
Works with your existing React/TypeScript setup. Doesn't touch your source code or require any annotations. Just point it at folders and get documentation.
The MCP approach means you can combine component analysis with other development tasks in the same Claude conversation—analyze components, then ask for implementation suggestions, all in one workflow.
Perfect for teams who want accurate component documentation without the overhead of maintaining separate docs that nobody updates.