react-best-practices
Click on "Deploy 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-best-practices find critical async rules for eliminating waterfalls"
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 Best Practices MCP Server
MCP (Model Context Protocol) 서버로 Vercel의 React/Next.js 성능 최적화 가이드를 제공합니다. 이 서버를 통해 AI 에이전트가 React/Next.js 코드를 작성하거나 리뷰할 때 Vercel의 베스트 프랙티스를 참조할 수 있습니다.
기능
이 MCP 서버는 다음과 같은 기능을 제공합니다:
규칙 목록 조회: 모든 React/Next.js 베스트 프랙티스 규칙을 카테고리, 영향도, 태그로 필터링하여 조회
규칙 상세 조회: 특정 규칙의 상세 정보와 코드 예제 확인
규칙 검색: 키워드로 규칙 검색
카테고리 목록: 8개 카테고리(Waterfalls, Bundle Size, Server Performance 등) 조회
메타데이터 조회: 가이드의 메타데이터 확인
Related MCP server: RulesetMCP
설치
git clone <repository-url>
cd react-best-practices-mcp-server
npm install
npm run build실행
개발 모드
npm run dev프로덕션 모드
npm startMCP 클라이언트 설정
MCP 클라이언트(예: Claude Desktop, Cursor)의 설정 파일에 추가:
Claude Desktop
설정 파일 위치:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"react-best-practices": {
"command": "node",
"args": ["/absolute/path/to/react-best-practices-mcp-server/dist/index.js"],
"cwd": "/absolute/path/to/react-best-practices-mcp-server"
}
}
}Cursor
.cursor/mcp.json 파일을 생성하거나 편집:
{
"mcpServers": {
"react-best-practices": {
"command": "node",
"args": ["/absolute/path/to/react-best-practices-mcp-server/dist/index.js"],
"cwd": "/absolute/path/to/react-best-practices-mcp-server"
}
}
}참고: 자세한 설정 방법은 MCP_CONFIG.md를 참고하세요.
사용 가능한 도구
1. list_rules
모든 규칙을 목록으로 조회합니다. 카테고리, 영향도, 태그로 필터링 가능합니다.
매개변수:
category(선택): 카테고리 필터 (async, bundle, server, client, rerender, rendering, js, advanced)impact(선택): 영향도 필터 (CRITICAL, HIGH, MEDIUM-HIGH, MEDIUM, LOW-MEDIUM, LOW)tags(선택): 태그 배열 필터
예시:
{
"name": "list_rules",
"arguments": {
"category": "async",
"impact": "CRITICAL"
}
}2. get_rule
특정 규칙의 상세 정보를 조회합니다.
매개변수:
ruleId(필수): 규칙 ID (예: "async-parallel", "bundle-barrel-imports")
예시:
{
"name": "get_rule",
"arguments": {
"ruleId": "async-parallel"
}
}3. search_rules
키워드로 규칙을 검색합니다.
매개변수:
query(필수): 검색 쿼리limit(선택): 최대 결과 수 (기본값: 10)
예시:
{
"name": "search_rules",
"arguments": {
"query": "waterfall",
"limit": 5
}
}4. list_categories
모든 카테고리 목록과 각 카테고리의 규칙 수를 조회합니다.
예시:
{
"name": "list_categories"
}5. get_metadata
React Best Practices 가이드의 메타데이터를 조회합니다.
예시:
{
"name": "get_metadata"
}카테고리
Eliminating Waterfalls (async) - CRITICAL
순차적인 await로 인한 성능 저하를 제거
Bundle Size Optimization (bundle) - CRITICAL
초기 번들 크기 최적화
Server-Side Performance (server) - HIGH
서버 사이드 렌더링 및 데이터 페칭 최적화
Client-Side Data Fetching (client) - MEDIUM-HIGH
클라이언트 데이터 페칭 패턴 최적화
Re-render Optimization (rerender) - MEDIUM
불필요한 리렌더링 최소화
Rendering Performance (rendering) - MEDIUM
렌더링 성능 최적화
JavaScript Performance (js) - LOW-MEDIUM
JavaScript 마이크로 최적화
Advanced Patterns (advanced) - LOW
고급 패턴 및 특수 케이스
기여하기
이슈 리포트나 풀 리퀘스트를 환영합니다!
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
라이센스
이 프로젝트는 MIT 라이센스 하에 배포됩니다. 자세한 내용은 LICENSE 파일을 참고하세요.
저자
Vercel Engineering
관련 링크
Available Tools
5 toolsget_metadataC
Get metadata about the React Best Practices guide.
Inputs: no named parameters.
get_ruleA
Get detailed information about a specific rule by ID or filename.
Inputs: ruleId (required).
list_categoriesA
List all rule categories with their impact levels and descriptions.
Inputs: no named parameters.
list_rulesA
List all React/Next.js best practice rules. Can filter by category, impact level, or tags.
Inputs: tags, impact, category.
search_rulesA
Search rules by keyword. Searches in titles, content, tags, and categories.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct role: search_rules does keyword lookup while list_rules enumerates with filters, and get_rule retrieves full detail by ID. The search_rules/list_rules boundary is the only mild overlap, but descriptions clarify the difference.
All five tools follow a clean verb_noun pattern (search_rules, list_categories, get_metadata, list_rules, get_rule) with the verbs matching the action precisely. No style mixing or vague verbs.
Five tools is a tight, well-scoped set for a read-only best-practices knowledge base, with each tool earning its place (search, enumerate, detail, categories, metadata).
As a read-only guide, the surface covers keyword search, filtered listing, category overview, per-rule detail, and collection metadata — all the access paths an agent needs with no dead ends. No write operations are expected for this domain.
Maintenance
Related MCP Connectors
AI Agent Source Registry. 288K+ curated sources for agentic search and discovery.
Real-time package and vulnerability data (Python, npm, Cargo, Go, and more) for AI coding agents.
Read-only canon of design and copy rules for AI agents to audit generated UI, served as resources.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI agents with access to a comprehensive database of 200+ Next.js documentation URLs for intelligent document selection and retrieval. Enables Claude and other AI assistants to analyze user queries and recommend the most relevant Next.js documentation pages.113MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with queryable, version-controlled project rules and coding standards. Enables validation, rule-based guidance, and task summaries to keep AI work aligned with your project's conventions without repeating context.2MIT
- AlicenseBqualityBmaintenanceEnables AI coding agents to retrieve real-user performance metrics and 28-day field trends, run Lighthouse lab audits, and access remediation playbooks for LCP, INP, and CLS.727 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables searching a verified catalog of 30 AI-agent tools, retrieving full records for individual tools, and comparing them side by side on specs and entry pricing. Also lists catalog categories and exposes coverage and update metadata.MIT