MCP server

Coding agents write #3366ff and 12px straight into components, because they do not know your design tokens. The dsgraph MCP server gives them the tokens: before writing a value, the agent asks which token holds it and uses the token instead. It can also read any token, list them, and compare two versions of a token package before an upgrade.

It runs on your computer, next to the agent, and only reads. It understands DTCG files (with themes), token JSON with value and type, and CSS custom properties, from a folder in your project, an npm package or a GitHub repository.

Set it up

Pick where your tokens are and which agent you use, then paste what appears below into the place it names.

Tokens
The folder with your token files: DTCG, a resolver, token JSON or CSS.
Agent

Run in the project folder. Add --scope project to share it with your team through .mcp.json in the repository.

claude mcp add dsgraph -- npx -y @dsgraph/mcp ./tokens
Needs Node.js 20 or newer. Runs on your machine and only reads.

Then start a new chat: the agent sees six new tools, all named after what they do. If your tokens are in several places, add the server once per place under different names, for example dsgraph-brand and dsgraph-product.

Ask your agent

You do not need to call the tools by name. Ask the way you would ask a colleague:

Tools

Tool What it answers
find_token Which token holds this color, size, duration or font weight. Exact matches first (for a text color, text tokens; for a background, background ones); otherwise the closest values, colors by how different they look and sizes in pixels
get_token One token: its value in every theme, the tokens it takes its value from and the ones that use it
search_tokens Tokens by part of the name or by type, with their values
describe_tokens An overview: how many tokens of each type, the themes, the main groups
check_styles Code the agent just wrote (CSS, SCSS, JSX/TSX with Tailwind classes or style objects, Vue, Svelte), or a file of your project: how much of it is on tokens, colors and sizes written by hand, with the token to use instead, and variables that are deprecated or do not exist
compare_versions What changed between two versions, what breaks and which version the release needs, the same report as Token Diff. With your code folder, it also lists the places in your code that break or look different
check_tokens Broken references, loops, old syntax, names that collide

Good to know

Source and details: packages/dsgraph-mcp.

Specsure

Tools for design systems. Token Diff shows what changed between two versions of your tokens, what breaks and which version to release.

Soon Figma plugin: check variables and styles against your tokens, inside Figma.

Made by Adam Reznik© 2026 Adam Reznik · dsgraph 0.6.3Package and design-system names belong to their owners. Specsure is not affiliated with them.