React Analyzer MCP
Analyze React code locally and generate docs or llm.txt for a whole project at once.
Que pouvez-vous faire avec React Analyzer MCP ?
- 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
Les étapes d'installation sont dans la documentation ci-dessous. Documentation
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
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
- Enable MCP server in the Claude Desktop config:
{
"react-analyzer-mcp": {
"command": "node",
"args": [
"/Users/azer/code/sandbox/react-analyzer-mcp/build/index.js"
]
}
}
- Connect Claude to your MCP server using the Claude Shell.
- 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
Questions fréquentes
Qu'est-ce que React Analyzer MCP ?
Analyze React code locally and generate docs or llm.txt for a whole project at once.
Comment installer React Analyzer MCP ?
Suivez les étapes d'installation de sa documentation, affichée sur cette page et dans son dépôt.
React Analyzer MCP est-il open source ?
Son code est public sur GitHub, mais le dépôt ne déclare pas de licence standard.
Qui maintient React Analyzer MCP ?
Il est publié par azer. AI.tn le référence sans le maintenir ni le recommander.
Issu des listes communautaires awesome-mcp-servers et du dépôt GitHub du projet. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.