mcp-toolkit
9 MCP servers for React + TypeScript development automation — component scaffolding, dependency auditing, WCAG accessibility checking, test generation, TypeScript enforcement, and monorepo management. 134 tests, CI on Node 20+22.
README
mcp-toolkit
MCP servers for React + TypeScript development automation. Works with Claude Desktop, Cline, Cursor — and as plain CLI scripts — one protocol, zero duplication.
What's here
tools/ 9 MCP server packages — each independently buildable and runnable
server/ Express bridge (port 3002) — proxies calls from the UI to MCP servers
client/ React 19 showcase SPA — tool catalog, workflow demos, animated flowcharts
Tools
All 9 tools are production-ready: built, tested, and CI-verified on Node 20 + 22.
| Tool | What it does | MCP tools exposed |
|---|---|---|
component-factory |
Scaffold React components from 41 shadcn/ui templates — with tests + Storybook | 6 |
code-modernizer |
AST-based JS/JSX → TypeScript conversion, PropTypes → interfaces | 1 |
quality-pipeline |
5-stage audit (tests · types · perf · a11y · design tokens) graded A–F | 2 |
json-viewer |
Generate an interactive HTML JSON viewer — collapsible, searchable, dark/light | 3 |
dep-auditor |
Unused deps, duplicate versions, circular imports, bundle impact analysis | 4 |
accessibility-checker |
WCAG 2.1 audit — alt text, label associations, ARIA roles, keyboard navigation | 3 |
generate-tests |
Analyze a TypeScript/React source file and generate a Vitest test suite | 2 |
typescript-enforcer |
Scan for any types, unsafe casts, missing modifiers — 7 rules, scored 0–10 |
4 |
monorepo-manager |
Workspace listing, dependency graph, health check, shared dep finder | 6 |
Roadmap
| Tool | Description | Status |
|---|---|---|
render-analyzer |
React render profiling — detect unnecessary renders, missing memo | 📋 Planned |
storybook-generator |
Auto-generate Storybook stories for existing components | 📋 Planned |
legacy-analyzer |
Tech debt detection — anti-patterns, duplication, refactor plans | 📋 Planned |
test-gap-analyzer |
Find unimplemented functions, uncovered branches, missing edge cases | 📋 Planned |
performance-audit |
Bundle size analysis, memory leaks, slow component detection | 📋 Planned |
lighthouse-runner |
Web Vitals / Lighthouse audit via CLI | 📋 Planned |
component-reviewer |
Audit TypeScript errors, test coverage gaps, a11y issues | 📋 Planned |
component-fixer |
Auto-fix broken imports, missing dependencies, export corrections | 📋 Planned |
Want to implement one of these? See CONTRIBUTING.md.
Automation workflows
1 · Code Modernization
legacy-analyzer → code-modernizer → typescript-enforcer → generate-tests
Migrate a JS codebase to strict TypeScript with auto-generated test coverage.
2 · Dependency Health
dep-auditor [unused] → dep-auditor [duplicates] → dep-auditor [bundle-impact] → monorepo-manager
Audit and clean up a monorepo's dependency graph end-to-end.
3 · Component Pipeline
component-factory → accessibility-checker → quality-pipeline
Generate a production-ready component and verify it before shipping.
4 · Quality Audit
accessibility-checker → typescript-enforcer → quality-pipeline
Full code quality check — WCAG compliance, type safety score, overall grade.
How MCP works
Claude Desktop / Cline / Cursor
│
│ JSON-RPC over stdio
▼
MCP Server (e.g. typescript-enforcer)
│
▼
Tool handlers (your code)
Each server in this repo extends McpServerBase from tools/shared/ — an abstract class that handles transport, routing, and error formatting. Adding a new tool is ~50 lines.
import { McpServerBase } from '@mcp-showcase/shared';
class MyTool extends McpServerBase {
constructor() {
super({ name: 'my-tool', version: '1.0.0' });
}
protected registerTools(): void {
this.addTool('do_thing', 'Does a thing', {
type: 'object',
properties: { path: { type: 'string', description: 'Target path' } },
required: ['path'],
}, async (args) => {
const { path } = args as { path: string };
return this.success({ result: `Processed ${path}` });
});
}
}
new MyTool().run();
Run locally
git clone https://github.com/Nishant-Chaudhary5338/mcp-toolkit.git
cd mcp-toolkit
npm install
npm run build
npm test # 134 tests across all 9 tools
npm run dev # server on :3002, client on :5173
Add to Claude Desktop
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"component-factory": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/component-factory/build/index.js"]
},
"code-modernizer": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/code-modernizer/build/index.js"]
},
"quality-pipeline": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/quality-pipeline/build/index.js"]
},
"json-viewer": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/json-viewer/build/index.js"]
},
"dep-auditor": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/dep-auditor/build/index.js"]
},
"accessibility-checker": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/accessibility-checker/build/index.js"]
},
"generate-tests": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/generate-tests/build/index.js"]
},
"typescript-enforcer": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/typescript-enforcer/build/index.js"]
},
"monorepo-manager": {
"command": "node",
"args": ["/path/to/mcp-toolkit/tools/monorepo-manager/build/index.js"]
}
}
}
Use as a CLI / in CI
# Scan a file for TypeScript issues
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scan_file","arguments":{"path":"src/App.tsx"}}}' \
| node tools/typescript-enforcer/build/index.js
# Run a full WCAG audit
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_accessibility","arguments":{"path":"src/components"}}}' \
| node tools/accessibility-checker/build/index.js
Testing
Each tool has a dedicated test file covering its core logic directly — no MCP transport required.
npm test # all tools
npm run test -w tools/typescript-enforcer # single tool
| Tool | Tests |
|---|---|
| json-viewer | 16 |
| quality-pipeline | 8 |
| component-factory | 6 |
| code-modernizer | 8 |
| dep-auditor | 15 |
| accessibility-checker | 15 |
| generate-tests | 14 |
| typescript-enforcer | 22 |
| monorepo-manager | 30 |
CI runs on every push and PR against Node 20 and 22.
Architecture
tools/
shared/ McpServerBase, ToolRegistry, shared types
component-factory/ 41 shadcn/ui templates
code-modernizer/ AST-based TS conversion
quality-pipeline/ 5-stage grading system
json-viewer/ HTML generation
dep-auditor/ Dependency graph analysis
accessibility-checker/ WCAG rule engine (9 rules)
generate-tests/ Source analyzer + test generator
typescript-enforcer/ 7-rule type safety scanner
monorepo-manager/ Workspace operations
server/ Express bridge — spawns tools as child processes
client/ React 19 SPA — tool catalog and live demos
Contributing
See CONTRIBUTING.md — how to scaffold a new tool, write tests, and open a PR.
Stack
TypeScript strict · Node.js · MCP SDK 1.12 · Vitest · React 19 · Vite · Tailwind CSS · Express
Built by
Nishant Chaudhary — Senior Frontend Engineer
nishantchaudhary.dev@gmail.com
Also see: dashcraft · react-present · ai-builder
MIT License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。