About MCP
MCP is an MCP server published by primer in the Content category: an implementation of GitHub's Primer Design System using React. Conduid read 20 tools from its source: find_tokens, get_color_usage, get_component, get_component_accessibility_guidelines, get_component_batch, get_component_examples and 14 more. It is published to npm as @primer/mcp and starts with npx.
The repository has 3.9K stars and 737 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is @primer/react@38.47.0 (23 Nov 2026): Minor Changes 8688 92a1fca Thanks @rickyzhangca. It follows @primer/react@38.46.0 (13 Nov 2026), and the 5 most recent releases go back to @primer/mcp@1.1.2 (23 Oct 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include component-library, design-system, primer and react.
Install
claude mcp add mcp-7cf3 -- npx -y @primer/mcpnpx -y @primer/mcpgit clone https://github.com/primer/reactTools (20)
find_tokensSearch 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.| Parameter | Type | Description |
|---|---|---|
| group | string | Filter by group (e.g., "fgColor", "border") |
| limit | number | Maximum results to return to stay within context limits |
| query | string | Search keywords (e.g., "danger border", "success background") |
get_color_usageGet the guidelines for how to apply color to a user interfaceget_componentRetrieve official documentation and usage details for exactly one React component from the @primer/react package. Use get_component_batch for 2 to 10 components.| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the component to retrieve |
get_component_accessibility_guidelinesRetrieve 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.| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the component to retrieve |
get_component_batchRetrieve 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.| Parameter | Type | Description |
|---|---|---|
| names * | array | Component names to retrieve (e.g. ["ActionMenu", "Button", "Pagination"]) |
get_component_examplesGet examples for how to use a component from Primer React| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the component to retrieve |
get_component_usage_guidelinesGet usage information for how to use a component from Primer| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the component to retrieve |
get_design_token_specsCRITICAL: CALL THIS FIRST. Provides the logic matrix and the list of valid group names. You cannot search accurately without this map.get_iconGet a specific icon (octicon) by name from Primer| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the icon to retrieve |
| size | string | The size of the icon to retrieve, e.g. "16" |
get_patternGet 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.| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the pattern to retrieve |
get_token_group_bundlePREFERRED 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.| Parameter | Type | Description |
|---|---|---|
| groups * | array | Array of group names (e.g., ["overlay", "shadow", "focus"]) |
get_token_usage_patternsProvides "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.get_typography_usageGet the guidelines for how to apply typography to a user interfaceinitSetup or create a project that includes Primer Reactlint_cssREQUIRED FINAL STEP. Use this to validate your CSS. You cannot complete a task involving CSS without a successful run of this tool.| Parameter | Type | Description |
|---|---|---|
| css * | string |
list_componentsList all of the components available from Primer Reactlist_iconsList all of the icons (octicons) available from Primer Octicons Reactlist_patternsList 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.primer_coding_guidelinesGet the guidelines when writing code that uses Primer or for UI code that you are creatingreview_alt_textEvaluates image alt text against accessibility best practices and context relevance.| Parameter | Type | Description |
|---|---|---|
| alt * | string | The alt text of the image being evaluated |
| image * | string | The image URL or file path being evaluated |
| surroundingText * | string | Text surrounding the image, relevant to the image. |
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 224 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 224 words, fetched 6 days ago. The original in the repository is authoritative.
Read full README