
Primer MCP Server
An MCP server that connects AI tools to the Primer Design System
context tax
~1,535 tok/turn20 tools
security
100/100
cold start
906 ms
freshness
Active25d ago
Our reading of Primer, from the data
Primer is a design MCP server from primer.
Its 20 tools add about 1,535 tokens to every model turn, in line with the design median of 1,847 tokens across 129 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 25 days ago (2026-10-16). For comparison, 69% of design servers are active or maintained.
With 3,918 GitHub stars it ranks #4 of 696 design servers we index.
It runs locally on your machine over stdio.
Install Primer MCP server
Install in Claude Code
claude mcp add primer-primer -- npx -y @primer/mcpInstall in Cursor
{
"mcpServers": {
"primer-primer": {
"command": "npx",
"args": [
"-y",
"@primer/mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"primer-primer": {
"command": "npx",
"args": [
"-y",
"@primer/mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"primer-primer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@primer/mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"primer-primer": {
"command": "npx",
"args": [
"-y",
"@primer/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @primer/mcp
Context tax
Connecting this server adds ~1,535 tokens of tool definitions to every model turn (moderate, 20 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $6.14 | $0.307 |
| Claude Sonnet 5.5 | $3.07 | $0.307 |
| Claude Haiku 5.5 | $0.153 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (20)
find_tokens225 tokSearch for specific tokens. Tip: If you only provide a 'group' and leave 'query' empty, it returns all tokens in that category. Avoid property-by-property searching. COLOR RESOLUTION: If a user asks for "pink" or "blue", do not search for the color name. Use the semantic intent: blue->accent, red->danger, green->success. Always check both "emphasis" and "muted" variants for background colors. After identifying tokens and writing CSS, you MUST validate the result using lint_css.
get_token_group_bundle125 tokPREFERRED FOR COMPONENTS. Fetch all tokens for complex UI (e.g., Dialogs, Cards) in one call by providing an array of groups like ['overlay', 'shadow']. Use this instead of multiple find_tokens calls to save context.
get_component_batch118 tokRetrieve official documentation and usage details for 2 to 10 React components from the @primer/react package in one call. Use get_component for exactly one component.
review_alt_text117 tokEvaluates image alt text against accessibility best practices and context relevance.
get_component_accessibility_guidelines105 tokRetrieve accessibility guidelines and best practices for a specific component from the @primer/react package by its name. Use this tool to get official accessibility recommendations, usage tips, and requirements to ensure your UI components are inclusive and meet accessibility standards.
get_icon96 tokGet a specific icon (octicon) by name from Primer
get_pattern90 tokGet a specific pattern by name. Scenario patterns describe specific user tasks. Prefer a scenario pattern when one fits the task, and fall back to the more generic UI patterns otherwise.
get_component85 tokRetrieve official documentation and usage details for exactly one React component from the @primer/react package. Use get_component_batch for 2 to 10 components.
lint_css72 tokREQUIRED FINAL STEP. Use this to validate your CSS. You cannot complete a task involving CSS without a successful run of this tool.
get_component_usage_guidelines70 tokGet usage information for how to use a component from Primer
get_component_examples68 tokGet examples for how to use a component from Primer React
get_token_usage_patterns59 tokProvides "Golden Example" CSS for core patterns: Button (Interactions) and Stack (Layout). Use this to understand how to apply the Logic Matrix, Motion, and Spacing scales.
list_patterns58 tokList all of the patterns available from Primer React. Scenario patterns describe specific user tasks. Prefer a scenario pattern when one fits the task, and fall back to the more generic UI patterns otherwise.
get_design_token_specs49 tokCRITICAL: CALL THIS FIRST. Provides the logic matrix and the list of valid group names. You cannot search accurately without this map.
primer_coding_guidelines41 tokGet the guidelines when writing code that uses Primer or for UI code that you are creating
list_icons36 tokList all of the icons (octicons) available from Primer Octicons React
get_typography_usage35 tokGet the guidelines for how to apply typography to a user interface
get_color_usage34 tokGet the guidelines for how to apply color to a user interface
list_components30 tokList all of the components available from Primer React
init29 tokSetup or create a project that includes Primer React
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 25d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-16 · 25d ago · GitHub
Latest release
2026-10-16 · 25d ago · GitHub · @primer/mcp@1.1.1
Package published
no data · npm/PyPI
Registry entry updated
no data · official registry
How it compares in Design
Against the most-starred design servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Primer (this) | 3,918 | 20 | 1,535 | Active | local |
| Figma Developer | 16,007 | 2 | 898 | Slowing | local |
| Design System | 11,774 | 3 | 399 | Active | local |
| Magic | 6,105 | — | not measured | Maintained | — |
| Dembrandt | 3,722 | 21 | 7,496 | Active | local |
| JS Reverse | 2,979 | 24 | 9,133 | Maintained | local |
FAQ
›How do I install the Primer MCP server in Claude Code?
Run: claude mcp add primer-primer -- npx -y @primer/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Primer require an API key?
No required environment variables are declared in its published metadata.
›Can I use Primer as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Primer in the official MCP registry?
No. It was indexed from npm.
›How many tokens does Primer add to my context?
Its tool definitions total about 1,535 tokens, resent on every turn.
Sources and method
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Primer
Other design MCP servers.