Skip to content
mcp/skillhub

Primer MCP Server

by primer

An MCP server that connects AI tools to the Primer Design System

3.9kNode.jsstdio

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/mcp

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

ModelPer 1,000 turnsWith 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 tok

    Search 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 tok

    PREFERRED 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 tok

    Retrieve 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 tok

    Evaluates image alt text against accessibility best practices and context relevance.

  • get_component_accessibility_guidelines105 tok

    Retrieve 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 tok

    Get a specific icon (octicon) by name from Primer

  • get_pattern90 tok

    Get 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 tok

    Retrieve 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 tok

    REQUIRED 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 tok

    Get usage information for how to use a component from Primer

  • get_component_examples68 tok

    Get examples for how to use a component from Primer React

  • get_token_usage_patterns59 tok

    Provides "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 tok

    List 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 tok

    CRITICAL: CALL THIS FIRST. Provides the logic matrix and the list of valid group names. You cannot search accurately without this map.

  • primer_coding_guidelines41 tok

    Get the guidelines when writing code that uses Primer or for UI code that you are creating

  • list_icons36 tok

    List all of the icons (octicons) available from Primer Octicons React

  • get_typography_usage35 tok

    Get the guidelines for how to apply typography to a user interface

  • get_color_usage34 tok

    Get the guidelines for how to apply color to a user interface

  • list_components30 tok

    List all of the components available from Primer React

  • init29 tok

    Setup 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.

  1. Last commit (default branch)

    2026-10-16 · 25d ago · GitHub

  2. Latest release

    2026-10-16 · 25d ago · GitHub · @primer/mcp@1.1.1

  3. Package published

    no data · npm/PyPI

  4. 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.

ServerStarsToolsTokens / turnFreshnessRuns
Primer (this)3,918201,535Activelocal
Figma Developer16,0072898Slowinglocal
Design System11,7743399Activelocal
Magic6,105—not measuredMaintained—
Dembrandt3,722217,496Activelocal
JS Reverse2,979249,133Maintainedlocal
All design MCP servers

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
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.

View all