Logo de Zeplin MCP server: AI-assisted UI development

Zeplin MCP server: AI-assisted UI development

Organisation
zeplin

MCP server for Zeplin - used for screen and component code generation đŸ’»

Éditeurzeplin
DépÎtmcp-server
LangueTypeScript
Forks
3
Étoiles
11
Outils disponibles
4
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils Ă  vos workflows IA

    Zeplin MCP server: AI-assisted UI development propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 4 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prĂȘte Ă  copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularitĂ© open source

    11 étoiles et 3 forks sur le dépÎt associé.

Zeplin MCP server: AI-assisted UI development

Connect AI agents like Cursor, Windsurf, and VS Code (w/ Copilot) to Zeplin. Using the MCP server, AI agents can tap into:

  • Component and screen specs: Detailed specs and assets for both components and entire screens — helping agents generate UI code that closely matches the designs.
  • Documentation: Annotations added to screens that provide extra context, like how things should behave or tips for implementation — letting the agent go beyond static visuals and build real interactions.
  • Design tokens: Colors, typography, spacing, and other design variables used across the project, so your agent can reuse existing tokens where possible.

Table of contents

Prerequisites

  • Node.js (v20 or later)
  • A Zeplin account.
  • A Zeplin personal access token. You can generate one from your Zeplin profile, under "Developer" > "Personal access tokens".

Installation

One-click installation

For Cursor users:

Install MCP Server

For VS Code users:

Install with NPX in VS Code

Manual installation

To start using the MCP server, you first need to configure your client (e.g. Cursor, VS Code, Windsurf, Claude Code). Most clients have an option to add a new MCP server. When prompted, enter the following command:

bash
npx @zeplin/mcp-server@latest

In addition, you also need to provide your Zeplin access token using the ZEPLIN_ACCESS_TOKEN environment variable.

For example, if you’re using Cursor, here’s how your MCP settings should look like:

jsonc
{
  "mcpServers": {
    "zeplin": {
      "command": "npx",
      "args": ["@zeplin/mcp-server@latest"],
      "env": {
        "ZEPLIN_ACCESS_TOKEN": "<YOUR_ZEPLIN_PERSONAL_ACCESS_TOKEN>" // Replace with your actual token
      }
    }
  }
}

Development

The project includes several npm scripts to help with development:

bash
# Run TypeScript compiler in watch mode for development
npm run dev

# Build the project for production
npm run build

# Run ESLint on source files
npm run lint

# Automatically fix ESLint issues where possible
npm run lint:fix

# Test the MCP server locally with the inspector tool
npm run inspect

To run npm run inspect, create an .env file first in the root directory:

bash
ZEPLIN_ACCESS_TOKEN=<YOUR_ZEPLIN_PERSONAL_ACCESS_TOKEN>

Code style and linting

This project uses ESLint to enforce code quality and consistency. The configuration is in eslint.config.js. Key style guidelines include:

  • 2 space indentation
  • Double quotes for strings
  • Semicolons required
  • No trailing spaces
  • Organized imports

When contributing to this project, please ensure your code follows these guidelines by running npm run lint:fix before submitting changes.

Crafting effective prompts

The quality and specificity of your prompts significantly impact the AI’s ability to generate accurate and useful code. These are not mandatory but will definitely increase the output quality.

Example prompt 1: Minor changes/additions

When you need to implement a small update or addition to an existing screen or component based on a new Zeplin design version.

The latest design for the following screen includes a new addition: a Checkbox component has been added to the MenuItem component, here is the short url of the screen <zeplin short url of the screen, e.g., https://zpl.io/abc123X>. Focus on the MenuItem component.

The Checkbox component can be found under the path/to/your/checkbox/component directory.
The relevant screen file is located at path/to/your/screen/file.tsx.
The MenuItem component, which needs to be modified, is located at path/to/your/menuitem/component.
Please implement this new addition.

Why this is effective:

  • Contextualizes the change: Clearly states what’s new.
  • Provides the Zeplin link: Allows the MCP server to fetch the latest design data.
  • Gives file paths: Helps the AI locate existing code to modify.
  • Specifies components involved: Narrows down the scope of work.

Example prompt 2: Larger designs (Component-first)

For implementing larger screens or features, it’s often best to build individual components first and then assemble them.

Implement this component: <zeplin short url of the first component, e.g., https://zpl.io/def456Y>. Use Zeplin for design specifications.

(AI generates the first component...)

Implement this other component: <zeplin short url of the second component, e.g., https://zpl.io/ghi789Z>. Use Zeplin for design specifications.

(AI generates the second component...)

...

Now, using the components you just implemented (and any other existing components), implement the following screen: <zeplin short url of the screen, e.g., https://zpl.io/jkl012A>. Use Zeplin for the screen layout and any direct elements.

Why this is effective:

  • Breaks down complexity: Tackles smaller, manageable pieces first.
  • Iterative approach: Allows for review and correction at each step.
  • Builds on previous work: The AI can use the components it just created.
  • Clear Zeplin references: Ensures each piece is based on the correct design.

Strategies to deal with context window limitations

When dealing with complex Zeplin screens or components with many variants and layers, the amount of design data fetched can sometimes be extensive. This can potentially exceed the context window limitations of the AI model you are using, leading to truncated information or less effective code generation. Here are several strategies to manage the amount of information sent to the model:

  1. Limit screen variants (includeVariants: false):

    • How it works: When using the get_screen tool, the model can be instructed to fetch only the specific screen version linked in the URL, rather than all its variants (e.g., different states, sizes, themes). This is done by setting the includeVariants parameter to false during the tool call.
    • When to use: If your prompt is focused on a single specific version of a screen, or if the variants are not immediately relevant to the task at hand. This significantly reduces the amount of data related to variant properties and their respective layer structures.
    • Example prompt: “Implement the login form from this screen: https://zpl.io/abc123X. I only need the specific version linked, not all its variants.” The AI agent, when calling get_screen, should then ideally use includeVariants: false.
  2. Focus on specific layers/components (targetLayerName or targeted prompts):

    • How it works (using targetLayerName): The get_screen tool has a targetLayerName parameter. If the model can identify a specific layer name from your prompt (e.g., "the 'Submit Button'"), it can use this parameter. The server will then return data primarily for that layer and its children, rather than the entire screen's layer tree.
    • How it works (targeted prompts): Even without explicitly using targetLayerName in the tool call, very specific prompts can guide the model to internally prioritize or summarize information related to the mentioned element.
    • When to use: When your task involves a specific part of a larger screen, like a single button, an icon, or a text block.
    • Example prompt: “Focus on the 'UserProfileHeader' component within this screen: https://zpl.io/screenXYZ. I need to implement its layout and text styles.” If the AI uses get_screen, it could populate targetLayerName: "UserProfileHeader".
  3. Iterative, component-first implementation:

    • How it works: As detailed in Example prompt 2: Larger designs (Component-first), break down the implementation of a complex screen into smaller, component-sized tasks.
    • When to use: For any non-trivial screen. This approach naturally limits the scope of each get_component or get_screen call to a manageable size.
    • Benefit: Each request to the Zeplin MCP server will fetch a smaller, more focused dataset, making it easier to stay within context limits and allowing the model to concentrate on one piece at a time.

Installation

TypingMind
Prérequis :

Node.js 18+

{
  "mcpServers": {
    "zeplin-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@zeplin/mcp-server"
      ]
    }
  }
}

Outils disponibles

  • get_component

    Fetches detailed design specifications for a specific Zeplin component, including its properties, variants, layers, and associated design tokens. Use this when you need to understand the structure and styling of a single, reusable UI element from Zeplin.

  • get_screen

    Fetches detailed design data for a specific screen from Zeplin. This includes screen variants, layer information (structure, position, styling), annotations, and project-level design tokens. Use this to understand screen layout, content, and interactions for development or review.

  • download_layer_asset

    Downloads a specific visual asset (e.g., SVG icon, PNG image) for a given layer from Zeplin and saves it to a local path. Use this tool when an asset referenced in the design (obtained from get_screen or get_component) is missing from the codebase and needs to be fetched directly from Zeplin.

  • get_design_tokens

    Download design tokens for a project or styleguide

Utilisez le serveur MCP Zeplin MCP server: AI-assisted UI development avec plusieurs modĂšles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Zeplin MCP server: AI-assisted UI development connectĂ©, vous pouvez donc l’utiliser avec diffĂ©rents modĂšles IA dans TypingMind sans avoir Ă  le configurer sĂ©parĂ©ment pour chaque modĂšle. Cette intĂ©gration MCP s’exĂ©cute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramĂštres MCP

Dans TypingMind, accédez à « ParamÚtres », puis à « ParamÚtres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icîne Paramùtres.
  3. Accédez aux paramÚtres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sĂ©lectionnĂ©e
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exĂ©cutez-la dans Terminal. Laissez le processus en cours d’exĂ©cution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenĂȘtre de Terminal ouverte et le processus en cours d’exĂ©cution pendant que vous utilisez les outils MCP.
3

Ajoutez Zeplin MCP server: AI-assisted UI development en tant que serveur

Lorsque l’état du connecteur affiche « PrĂȘt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « PrĂȘt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Zeplin MCP server: AI-assisted UI development.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vĂ©rifier que le connecteur est toujours prĂȘt.
ParamĂštres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "zeplin-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@zeplin/mcp-server"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modÚles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Zeplin MCP server: AI-assisted UI development, puis sélectionnez un modÚle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Zeplin MCP server: AI-assisted UI development.
  3. Démarrez une discussion et choisissez le modÚle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les Ă  un agent IA.
  5. Passez à un autre modÚle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activĂ©s avec un modĂšle d’IA sĂ©lectionnĂ©
Pouvez-vous utiliser Zeplin MCP server: AI-assisted UI development pour m’aider dans cette tñche ?
Zeplin MCP server: AI-assisted UI development
Bien sĂ»r. J’ai tout lu.
Voici ce que j’ai trouvĂ© avec Zeplin MCP server: AI-assisted UI development.

Foire aux questions

À quoi sert le serveur MCP Zeplin MCP server: AI-assisted UI development ?

Zeplin MCP server: AI-assisted UI development est un serveur MCP qui permet aux applications IA compatibles d’accĂ©der Ă  des outils et Ă  des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Zeplin MCP server: AI-assisted UI development avec plusieurs modĂšles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Zeplin MCP server: AI-assisted UI development avec diffĂ©rents modĂšles IA comme Claude, ChatGPT, Gemini ou d’autres modĂšles configurĂ©s dans TypingMind, sans avoir Ă  configurer le serveur MCP sĂ©parĂ©ment pour chaque modĂšle.

Pourquoi utiliser le connecteur MCP Zeplin MCP server: AI-assisted UI development avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle rĂ©unit plusieurs modĂšles IA, prompts, plugins, agents IA, clĂ©s API et outils MCP dans un seul espace de travail. Une fois Zeplin MCP server: AI-assisted UI development connectĂ©, vous pouvez utiliser ses outils MCP avec vos modĂšles prĂ©fĂ©rĂ©s tout en gardant vos discussions bien organisĂ©es dans TypingMind.

Comment connecter le serveur MCP Zeplin MCP server: AI-assisted UI development Ă  TypingMind ?

Zeplin MCP server: AI-assisted UI development fonctionne via le connecteur MCP local de TypingMind. C’est l’option idĂ©ale lorsque le serveur MCP doit accĂ©der Ă  des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privĂ©es sur votre ordinateur.

Quels outils le serveur MCP Zeplin MCP server: AI-assisted UI development propose-t-il dans TypingMind ?

Zeplin MCP server: AI-assisted UI development propose 4 outils MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer Ă  des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Zeplin MCP server: AI-assisted UI development ?

Non. TypingMind privilĂ©gie le fonctionnement local et vous permet de garder le contrĂŽle de vos fournisseurs de modĂšles, clĂ©s API, prompts et paramĂštres MCP. Si Zeplin MCP server: AI-assisted UI development nĂ©cessite une authentification, ajoutez les en-tĂȘtes, les paramĂštres OAuth ou la configuration locale requis pour ce serveur MCP lors de la crĂ©ation de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dÚs maintenant

Abonnez-vous Ă  notre newsletter pour ĂȘtre informĂ© des nouvelles fonctionnalitĂ©s et des prochains cadeaux Ă  gagner 👇