| 1 | # React MCP Server (experimental) |
| 2 | |
| 3 | An experimental MCP Server for React. |
| 4 | |
| 5 | ## Development |
| 6 | |
| 7 | First, add this file if you're using Claude Desktop: `code ~/Library/Application\ Support/Claude/claude_desktop_config.json`. Copy the absolute path from `which node` and from `react/compiler/react-mcp-server/dist/index.js` and paste, for example: |
| 8 | |
| 9 | ```json |
| 10 | { |
| 11 | "mcpServers": { |
| 12 | "react": { |
| 13 | "command": "/Users/<username>/.asdf/shims/node", |
| 14 | "args": [ |
| 15 | "/Users/<username>/code/react/compiler/packages/react-mcp-server/dist/index.js" |
| 16 | ] |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | ``` |
| 21 | |
| 22 | Next, run `yarn workspace react-mcp-server watch` from the `react/compiler` directory and make changes as needed. You will need to restart Claude everytime you want to try your changes. |