react19-mcp
v1.0.4
Published
MCP server for Claude to understand React 19 features and components
Maintainers
Readme
React 19 MCP
A Model Context Protocol (MCP) server designed to help Claude Code and other AI assistants better understand React 19 features, patterns, and best practices.
Features
- Documentation API: Comprehensive information about React 19 features
- Code Examples: Ready-to-use examples of React 19 features in action
- Best Practices: Guidelines for effective use of React 19
- Code Analysis: Parse and analyze React 19 code to provide insights
- Integration Guides: Documentation for using React 19 with popular libraries
Installation
As a Global Package
# Install globally
npm install -g react19-mcp
# Run the HTTP server
react19-mcp
# Run the JSON-RPC MCP server (for Claude)
react19-mcp-jsonAs a Development Project
# Clone the repository
git clone https://github.com/yourusername/react19-mcp.git
# Navigate to the project directory
cd react19-mcp
# Install dependencies
npm install
# Start the HTTP server
npm start
# Start the JSON-RPC MCP server (for Claude)
npm run mcpThe HTTP server will run at http://localhost:3175 by default. The JSON-RPC MCP server will run on port 3175 by default.
Using with Claude
Create a JSON configuration file for Claude:
{
"mcpServers": {
"react19-mcp": {
"command": "npx",
"args": ["-y", "react19-mcp-json"]
}
}
}Upload this configuration to Claude to enable the React 19 MCP.
HTTP API Endpoints
Documentation
GET /api/docs/:topicGet detailed documentation about a React 19 feature.
Examples
GET /api/examples/:featureGet code examples for a specific React 19 feature.
Best Practices
GET /api/best-practices/:topicGet best practices for a specific React 19 topic.
Integrations
GET /api/integrations/:libraryGet integration information for React 19 with popular libraries.
JSON-RPC Methods
getReact19Docs: Get documentation for React 19 featuresgetIntegration: Get integration information for librariesanalyzeReactCode: Analyze React code for features and patternsgenerateComponent: Generate component code for specific UI libraries
React 19 Key Features
- React Server Components: Components that run on the server before bundling
- Actions: Async functions for handling data mutations with automatic pending states
- New Hooks: Including
use,useOptimistic,useActionState, anduseFormStatus - Document Metadata: Native support for
<title>,<meta>, and<link>tags
License
MIT
