Color Palette Generator MCP App
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., "@Color Palette Generator MCP AppGenerate a complementary palette for #3498db"
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.
Color Palette Generator MCP App
AIチャット内にインタラクティブなカラーパレット生成UIを埋め込むMCP Appです。
セットアップ
pnpm installRelated MCP server: MCP Color Picker
起動方法
# UIビルド + サーバー起動
pnpm startサーバーが http://localhost:3001/mcp で起動します。
開発モード(ホットリロード)
pnpm devClaude Desktopへの接続
~/Library/Application Support/Claude/claude_desktop_config.json に以下を追加します。
{
"mcpServers": {
"color-palette": {
"command": "/opt/homebrew/bin/npx",
"args": ["tsx", "/path/to/mcp-apps/main.ts", "--stdio"]
}
}
}設定後、Claude Desktopを再起動してください。
HTTP経由で接続する場合
pnpm serveで起動後、http://localhost:3001/mcp に接続します。
動作確認(curl)
# initializeリクエスト
curl -X POST http://localhost:3001/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}'
# パレット生成
curl -X POST http://localhost:3001/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"generate-palette","arguments":{"baseColor":"#3498db","paletteType":"analogous"}}}'ツール
ツール名 | 説明 |
| ベースカラーからパレットを生成(complementary, analogous, triadic, monochromatic, split-complementary) |
| 2色間のWCAGコントラスト比を計算 |
新しいMCP Appプロジェクトを作る
このプロジェクトの構成をベースに、新しいMCP Appをスキャフォールドするスキルを用意しています。
Claude Code上で以下を実行してください。
/skill dev_init-mcp-app my-new-appサーバー・クライアント・Viteバンドル・デュアルトランスポート(stdio + HTTP)の雛形が一括生成されます。
技術スタック
@modelcontextprotocol/ext-apps 1.0.1
@modelcontextprotocol/sdk 1.26.0
zod 4.x
Vite + vite-plugin-singlefile
TypeScript
This server cannot be deployed
Maintenance
Related MCP Connectors
WCAG color contrast checks, nearest accessible color, CSS color conversion and palette pair checks.
41Turn AI-designed colour palettes into Coolours links, with colour names, CSS and contrast checks
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
311Verified color tokens for AI coding agents: one brand hex in, WCAG/APCA-measured themes out.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive toolkit for color conversion, manipulation, and accessibility analysis supporting formats like OkLCH and WCAG compliance. It enables AI agents to manage design systems by generating harmonious palettes, transforming color spaces, and performing contrast checks.2MIT
- AlicenseNot gradedqualityDmaintenanceAn interactive color picker that renders as a UI inside MCP-compatible hosts like VS Code GitHub Copilot and Claude.1Apache 2.0
- AlicenseAqualityDmaintenanceEnables color conversion between HEX/RGB/HSL/HSV/CMYK, palette generation, WCAG contrast checking, color mixing/adjustment, and CSS gradient creation for AI agents.524 npmMIT
- AlicenseAqualityDmaintenanceProvides WCAG 2.1 color contrast checking tools, including contrast ratio computation, compliance evaluation, and accessible color suggestions for AI assistants.319 npmApache 2.0