PaletteCraft MCP
Generates light and dark design tokens from one color, with measured contrast checks
PaletteCraft MCP is an open-source MCP server for accessibility. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add palettecraft-mcp -- npx -y palettecraft-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"palettecraft-mcp": {
"command": "npx",
"args": [
"-y",
"palettecraft-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"palettecraft-mcp": {
"command": "npx",
"args": [
"-y",
"palettecraft-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"palettecraft-mcp": {
"command": "npx",
"args": [
"-y",
"palettecraft-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"palettecraft-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"palettecraft-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add palettecraft-mcp -- npx -y palettecraft-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.palettecraft-mcp]
command = "npx"
args = ["-y", "palettecraft-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"palettecraft-mcp": {
"command": "npx",
"args": [
"-y",
"palettecraft-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Or run: gemini mcp add -s user palettecraft-mcp npx -- -y palettecraft-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "palettecraft-mcp": { "command": "npx", "args": [ "-y", "palettecraft-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About PaletteCraft MCP
PaletteCraft takes a seed hex color and a mood, then produces coordinated light and dark semantic palettes covering text, surfaces, buttons, status colors, outlines and focus. Every generated theme comes with a set of contrast checks, each reporting a rounded and an unrounded ratio along with a pass or fail flag.
It runs as a local stdio server for MCP clients such as Codex. The tools compute everything on the machine, with no hosted service, API key or network calls. Output can be exported as JSON, CSS custom properties, Tailwind CSS v4 theme declarations, or Flutter Material color roles.
The project suits frontend and mobile developers who want a starting token set for an app and a quick way to verify that foreground and background pairs meet WCAG-style thresholds before building screens.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 2 tools reads data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- generate_palette
- Generates light and dark semantic palettes from a seed color, mood and export format.
- check_contrastName suggests: reads
- Checks the contrast ratio of a foreground and background pair against a threshold and suggests an adjustment when it fails.
What it does
- Paired light and dark themes
- Creates 14 semantic colors for each theme from a single seed color and a chosen mood.
- Measured contrast checks
- Tests each foreground and background pair and reports ratio, threshold and pass status.
- Contrast adjustment
- Suggests a lightness-adjusted foreground when a pair fails the requested threshold.
- Multiple export formats
- Outputs JSON, CSS custom properties, Tailwind CSS v4 and Flutter Material color roles.
- Local computation
- Runs entirely on the user's machine without accounts, API keys or telemetry.
Good for
- Generate a starting design token set for a new web app from a brand color
- Check whether text and button colors meet contrast thresholds in light and dark modes
- Export theme tokens into a Tailwind v4 project
- Create a Flutter ThemeData with light and dark color schemes
- Let an AI coding agent produce and verify colors during UI work
Pricing
Open source
MIT licensed, free to use
PaletteCraft MCP FAQ
Which export formats are supported?
JSON, CSS custom properties, Tailwind CSS v4 and Flutter Material color roles are available. Tailwind support targets v4, not v3.
Does PaletteCraft MCP send data over the network?
No. The project states that its tools perform local computation with no hosted service, model, telemetry or network request.
Does a passing result certify WCAG conformance?
No. It checks listed opaque static color pairs only and does not certify a UI as WCAG conformant.
How do I install PaletteCraft MCP?
It can be run with npx for the pinned 0.1.0 release or built from the repository, then registered with an MCP client such as Codex.
Is PaletteCraft MCP free?
Yes. PaletteCraft MCP is open source, so you can use and self-host it for free.
How do I add PaletteCraft MCP to Claude Code?
Run this command in your terminal: claude mcp add palettecraft-mcp -- npx -y palettecraft-mcp
What are the best alternatives to PaletteCraft MCP?
The closest alternatives to PaletteCraft MCP are PaletteGet, Color Palette and Accessible Color Palette & WCAG Contrast Checker.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.