Lanhu Design MCP logo

Lanhu Design MCP

Reads Lanhu designs, analyzes platform-specific UI structure, and exports detailed assets for agent-driven interface reconstruction.

Install Lanhu Design MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "lanhu-design-mcp": {
      "command": "uvx",
      "args": [
        "lanhu-design-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 8 tools correctly ().

Overview

The lanhu-design-mcp MCP server reads Lanhu design projects and exposes their designs, UI structure, and downloadable assets to MCP clients. It analyzes layouts with units adjusted for Android, iOS, web, or WeChat Mini Programs, and can return complete UI reconstruction context. Authentication uses a dedicated local Chrome Profile on macOS rather than cookies or environment variables. Reach for it when an agent needs to turn Lanhu design specifications into platform-specific implementation data and local asset files.

Use cases

  • List designs in a Lanhu project
  • Analyze layouts with platform-specific units
  • Download fine-grained design assets
  • Export UI reconstruction context for an agent

Key features

  • Lanhu project and design listing
  • Android dp, iOS pt, web px, and WeChat rpx analysis
  • Fine-grained Sketch, Figma, and Photoshop assets
  • Combined agent UI reconstruction context
  • Managed Chrome Profile authentication

Tools8

What Lanhu Design MCP lets your agent do. Expand a tool for its parameters.

Verified live~603 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 83d

What it can do

From the 8 tools this server returned when we ran it.

Handles credentials · 1Read-only tools · 8
Network at startup2 connections
Files written at startup11

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · lanhu-design-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed8Callable tools this server registers over MCP.

How Lanhu Design MCP works

What lanhu-design-mcp MCP server does

The lanhu-design-mcp MCP server connects MCP-compatible clients to Lanhu design projects on macOS. It can enumerate the designs in a project, inspect a selected design, and provide structured information for rebuilding an interface. Analysis adjusts measurements to the target platform: Android uses dp, iOS uses pt, web uses px, and WeChat Mini Programs use rpx.

Asset retrieval covers the full design image as well as fine-grained downloadable resources associated with Sketch, Figma, and Photoshop exports. The UI context export combines design analysis and assets into a response intended for agent-assisted interface reconstruction. Resource URLs are signed, so callers should download the files into their local project instead of treating those remote URLs as permanent dependencies.

How it works

The package runs as a local stdio MCP process. MCP clients invoke tools through the configured executable, while the server uses a managed Chrome Profile to authenticate with Lanhu. The first login is interactive: a separate local Chrome window opens, and the completed session is reused by later processes. Normal design queries do not open a visible browser.

The available operations include project design listing, platform-aware design analysis, asset retrieval, and combined UI-context export. Health and authentication status checks report local state without exposing credentials. Logging out removes the managed Profile only after explicit confirmation.

Setup and configuration

Use macOS with Google Chrome installed and Python 3.10 or newer. Install the package with:

Terminal
pip install lanhu-design-mcp

Authenticate before connecting an agent:

bash
lanhu-design-mcp auth login
lanhu-design-mcp auth status

Add the executable as a stdio server in the MCP client configuration. The command path must point to the installed lanhu-design-mcp executable, for example:

config.json
{
  "mcpServers": {
    "lanhu-design-mcp": {
      "type": "stdio",
      "command": "/Users/your-name/.local/bin/lanhu-design-mcp",
      "args": []
    }
  }
}

No cookie environment variable or cookie file is supported. To remove the managed login session, run lanhu-design-mcp auth logout --confirm or invoke the logout tool with confirm=true.

Tools and capabilities

The lanhu-design-mcp MCP server provides these tools:

  • lanhu_health_check checks local configuration without network access.
  • lanhu_get_designs lists all designs in a project.
  • lanhu_analyze_design returns platform-adjusted UI structure for a selected design.
  • lanhu_get_design_assets returns the complete design and fine-grained downloadable assets.
  • lanhu_export_ui_context combines analysis and assets for UI reconstruction.
  • lanhu_auth_login, lanhu_auth_status, and lanhu_auth_logout manage the hosted Chrome authentication session.

Common failures include expired authentication, an unsupported non-macOS platform, missing Playwright or Chrome dependencies, a locked Profile, a cancelled login, or a five-minute login timeout. Re-authenticate, update the package, close competing processes, or retry the interactive login according to the reported status.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Lanhu Design MCP

lanhu-design-mcp is an MCP server that connects AI agents to Lanhu design projects on macOS. Its main tools list designs, analyze UI structure with Android, iOS, web, or WeChat units, retrieve detailed assets, export UI context, and manage authentication through a local Chrome Profile.

Install it with `pip install lanhu-design-mcp` on macOS with Python 3.10 or newer and Google Chrome installed. Then run `lanhu-design-mcp auth login` to complete the initial interactive Lanhu authentication.

Yes, lanhu-design-mcp uses a standard stdio MCP configuration that can be added to Cursor. Configure the installed executable as the server command, with an empty argument list, and authenticate first using the CLI.

No, lanhu-design-mcp does not support cookie environment variables or cookie files. It stores authentication in a managed local Chrome Profile, which is created through the interactive login command and reused by later MCP processes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLanhu Design MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lanhu-design-mcp?style=directory)](https://allmcps.com/mcp/lanhu-design-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/lanhu-design-mcp"><img src="https://allmcps.com/api/badge/lanhu-design-mcp?style=directory" alt="Lanhu Design MCP on AllMCPs" /></a>