React Patterns MCP Server
Provides tools and resources for exploring and comparing React design and rendering patterns, including HOC, Hooks, Compound, Container/Presentational, Render Props, CSR, SSR, SSG, ISR, Progressive Hydration, Streaming SSR, RSC, and Selective Hydration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@React Patterns MCP ServerCompare SSR and CSR patterns"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
React Patterns MCP Server v2
A comprehensive MCP (Model Context Protocol) server that teaches and applies React architecture, design patterns, and best practices ā covering everything from patterns.dev/react.
Built in TypeScript / Node.js for use with Claude Code.
Features
Category | Tools |
Pattern Reference | All patterns.dev/react patterns with full details, comparisons, recommendations |
Code Analyzer | Detect anti-patterns and suggest refactors in existing React code |
Template Engine | Ready-to-use TypeScript code templates per pattern |
Scaffold | Generate project skeleton based on architecture + patterns |
Architecture Doc | ADR generator that recommends patterns for your project |
Live Docs | Fetch docs.react.dev + React version-aware API guidance |
Mobile | Tailwind responsive patterns + React Native layouts |
Memory | Persist project state between sessions |
Task Planner | Break goals into parallelisable subtasks for Claude subagents |
Token Optimizer | Compress outputs, manage response cache |
Related MCP server: PatternFly MCP Server
Covered Patterns
šØ Design Patterns
ID | Pattern |
| Higher-Order Component (HOC) |
| Hooks Pattern |
| Compound Pattern |
| Container / Presentational |
| Render Props |
| Observer / Pub-Sub (Zustand) |
| Provider (React Context) |
| Prototype / Object Pool |
| Module / Feature Slice |
| Singleton (API clients, stores) |
āļø Rendering Patterns
ID | Pattern |
| CSR (Vite SPA, dashboards) |
| SSR (Next.js per-request) |
| SSG (Next.js build-time) |
| ISR (stale-while-revalidate) |
| Progressive Hydration |
| Streaming SSR |
| RSC (Next.js App Router) |
| Selective Hydration (React 18) |
ā” Performance Patterns
ID | Pattern |
| Dynamic Import / Code Splitting |
| Import on Visibility (IntersectionObserver) |
| Import on Interaction (defer until click/hover) |
| Route-Based Code Splitting |
| Bundle Splitting / Vendor Chunking |
| Tree Shaking (dead-code elimination) |
| Preload Critical Resources |
| Prefetch Next-Page Resources |
| PRPL Pattern (PWA loading strategy) |
Tool Reference
Tool | Description |
| All patterns grouped by category |
| Performance patterns only |
| Full detail + code example for a pattern |
| Side-by-side comparison of 2ā5 patterns |
| Describe a problem, get pattern recommendations |
| Call this first ā shows architecture options |
| Generate project skeleton |
| Detect anti-patterns in React code |
| Ready-to-use TypeScript code template |
| ADR ā which patterns and why for your project |
| Live fetch from docs.react.dev with version guidance |
| Persist and recall project context across sessions |
| Break a goal into parallelisable subtasks |
| Compress verbose responses to save tokens |
Installation
Prerequisites
Node.js 20+
npm or pnpm
Setup
git clone https://github.com/1beyza/react-patterns-mcp.git
cd react-patterns-mcp
npm install
npm run buildAdd to Claude Code
In your project's .claude/mcp.json (or global ~/.claude/mcp.json):
{
"mcpServers": {
"react-patterns": {
"command": "node",
"args": ["/absolute/path/to/react-patterns-mcp/dist/index.js"]
}
}
}Or run directly for testing:
npm run dev # tsx (no build needed)Usage Workflows
New Project
1. create_task_plan ā break the goal into subtasks
2. generate_architecture_doc ā get pattern recommendations + ADR
3. scaffold_project ā generate directory structure + setup commands
4. get_code_template ā get starter code for each essential pattern
5. save_memory ā persist architecture choicesExisting Project Improvement
1. analyze_code ā detect issues and pattern opportunities
2. compare_patterns ā compare alternatives
3. suggest_refactor ā get a refactor plan toward a target pattern
4. get_code_template ā get the target pattern's starter codeQuick Pattern Lookup
list_all_patterns ā browse everything
get_pattern <id> ā full details + code example
find_pattern_for_use_case ā describe your problem, get recommendationsArchitecture
react-patterns-mcp/
āāā src/
ā āāā index.ts # MCP server entry ā registers all tools
ā āāā tools/ # Tool layer ā MCP tool handlers
ā ā āāā index.ts # Barrel export
ā ā āāā pattern-tools.ts # Pattern query / compare / recommend
ā ā āāā scaffold-tools.ts # Project scaffolding
ā ā āāā analyzer-tools.ts # Code analysis + refactor suggestions
ā ā āāā template-tools.ts # Code template retrieval
ā ā āāā architecture-tools.ts # ADR generation
ā ā āāā docs-tools.ts # Live React docs + version guidance
ā ā āāā mobile-tools.ts # Mobile / responsive patterns
ā ā āāā memory-tools.ts # Project state persistence
ā ā āāā task-planner-tools.ts # Subtask decomposition
ā ā āāā token-optimizer-tools.ts # Output compression + cache
ā āāā data/ # Data layer ā pure data, no MCP logic
ā ā āāā patterns.ts # All design & rendering pattern definitions
ā ā āāā templates.ts # Code templates per pattern
ā ā āāā mobile-patterns.ts # Mobile responsiveness patterns
ā āāā utils/ # Utility layer ā shared functions
ā āāā validator.ts # Zod schemas for all tool inputs
ā āāā formatter.ts # Markdown output formatting
ā āāā cache.ts # TTL response cache
ā āāā file-io.ts # Memory persistence (JSON files)
āāā memory/ # Runtime project memory (gitignored)
āāā dist/ # Compiled JavaScript output
āāā package.json
āāā tsconfig.json
āāā README.mdLayer rules:
data/ā pure data objects, no side effectsutils/ā pure functions and shared helpers, no MCP awarenesstools/ā MCP tool handlers; validate with Zod, call data/utils, return stringsindex.tsā MCP protocol binding only; no business logic
All MCP Tools
Tool | Description |
| List all patterns with summaries |
| List design patterns only |
| List rendering patterns only |
| Full details + code example for a pattern |
| Side-by-side comparison of 2ā5 patterns |
| Describe your problem ā get recommendations |
| Patterns related to a given pattern |
| Quick pros/cons for a pattern |
| Generate full project scaffold |
| Detect anti-patterns in React code |
| Refactor plan toward a target pattern |
| Get ready TypeScript code for a pattern |
| List all available code templates |
| ADR with pattern recommendations |
| Live docs.react.dev content |
| Version-specific API guidance |
| Mobile/responsive pattern details |
| Tailwind responsive design guide |
| Persist project state to disk |
| Retrieve saved project state |
| Delete project memory |
| List all projects with saved state |
| Break a goal into parallelisable subtasks |
| Reduce token cost of verbose output |
| View response cache statistics |
| Clear all response caches |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides professional UI/UX design expertise and frontend development tools for analyzing interfaces, generating design systems, and creating modern components with accessibility and best practices built-in. Supports React, Vue, Angular and other frameworks with seamless Claude Code CLI integration.Last updated422MIT

PatternFly MCP Serverofficial
AlicenseAqualityAmaintenanceProvides access to PatternFly React documentation, development rules, and component schemas through MCP tools, enabling AI assistants to help developers build applications with PatternFly components following best practices.Last updated21,3433MIT- Alicense-qualityAmaintenanceNative Claude Code integration for @annondeveloper/ui-kit ā a zero-dependency React component library with 147 components, 3 weight tiers, physics-based animations, and OKLCH color system. Gives Claude deep awareness of the library's components, design patterns, and conventions. Includes 5 skills for component discovery, code generation, design system reference, tier selection, and accessibilityLast updated46MIT
- Alicense-qualityDmaintenanceProvides design pattern templates and anti-pattern guidance to AI coding agents for correct pattern implementation.Last updatedMIT
Related MCP Connectors
Verified React chart generation: select, validate, repair, render, and inspect charts through MCP.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/1beyza/react-patterns-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server