Swatchbook MCP
MCP server by unpunnyfuns Verified · npm:@unpunnyfuns
Swatchbook MCP is the Model Context Protocol server in the swatchbook monorepo, made for AI agents working with DTCG design tokens. It is published as @unpunnyfuns/swatchbook-mcp.
Install Swatchbook MCP
Built from the published package, never by AI.
claude mcp add swatchbook-mcp -- npx -y @unpunnyfuns/swatchbook-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"swatchbook-mcp": {
"args": [
"-y",
"@unpunnyfuns/swatchbook-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"swatchbook-mcp": {
"args": [
"-y",
"@unpunnyfuns/swatchbook-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"swatchbook-mcp": {
"args": [
"-y",
"@unpunnyfuns/swatchbook-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add swatchbook-mcp -- npx -y @unpunnyfuns/swatchbook-mcp{
"mcpServers": {
"swatchbook-mcp": {
"args": [
"-y",
"@unpunnyfuns/swatchbook-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add swatchbook-mcp npx -y @unpunnyfuns/swatchbook-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the swatchbook-mcp block.
About
Swatchbook is a Storybook addon and set of MDX doc blocks for visualising DTCG design tokens. It is built on Terrazzo's parser, and the production build runs Terrazzo's CLI against the same DTCG source that swatchbook reads inside Storybook. The monorepo includes a sub-package, @unpunnyfuns/swatchbook-mcp, described as a Model Context Protocol server for AI agents. Each sub-package is publishable on its own.
The source describes the MCP server only at a high level, so its specific tools and capabilities are not listed here. The wider project is aimed at teams that use DTCG tokens with Storybook and want those tokens visible in their docs and stories. The project is released under the MIT license by unpunnyfuns, and it is developed as a pnpm and Turborepo workspace.
Written from the project's README and checked against it.
Try asking
- Use the Swatchbook MCP server to look at the design tokens in my DTCG project.
- Ask Swatchbook MCP which tokens my DTCG source defines.
- Have an AI agent read my DTCG token project through the Swatchbook MCP server.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Exposing DTCG design tokens to AI agents
- Reading token projects in an AI assistant
- Working with Storybook design token docs
Alternatives to Swatchbook MCP
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Swatchbook MCP: common questions
What does swatchbook build on?
Swatchbook is built on Terrazzo's parser. The source says the production build runs Terrazzo's CLI against the same DTCG source that swatchbook reads.
Which token standard does swatchbook support?
The source links to the DTCG specification (version 2025.10) and describes swatchbook as a tool for visualising DTCG design tokens.
Where is the MCP server in the swatchbook repository?
The MCP server is the @unpunnyfuns/swatchbook-mcp package, located in the packages/mcp folder of the monorepo.
How do I install Swatchbook MCP?
In Claude Code run claude mcp add swatchbook-mcp -- npx -y @unpunnyfuns/swatchbook-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Swatchbook MCP the official server?
Swatchbook MCP is published by npm:@unpunnyfuns from its verified domain in the official MCP Registry.
Is Swatchbook MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Swatchbook MCP safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Swatchbook MCP?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Swatchbook MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
