Agent♥︎Age
Catalog

io.github.blantian/lanhu-design-mcp

Official

by blantian · Python

Read Lanhu design specs and export fine-grained UI assets with platform-adjusted units

This MCP server for macOS reads Lanhu design projects and exports fine-grained UI assets. It can list all design images, analyze a design draft to return a platform-adjusted UI structure, and export multi-density slicing resources and complete context for UI restoration.

🛠️ Key Features

  • Read Lanhu design projects and list all design images
  • Analyze design drafts and return platform-adjusted UI structure (Android dp / iOS pt / Web px / 微信 rpx)
  • Export full design images plus detailed sliced assets for Sketch, Figma, and Photoshop, including multi-resolution addresses
  • Export a complete “Agent UI restoration” context including assets and analysis
  • Host a managed Chrome Profile to auto-login (no manual cookie copying)

🚀 Use Cases

  • Extract UI resources from Lanhu design specs for cross-platform implementations
  • Retrieve platform-specific layout structure and fine-grained assets from multiple design tool sources
  • Reuse an authenticated browsing session for normal design tool calls

⚡ Developer Benefits

  • Platform-adjusted units across Android, iOS, Web, and 微信 (dp/pt/px/rpx)
  • Multi倍率 (multi-density) asset addressing for exported slices
  • Faster repeated usage via session reuse in a managed Chrome Profile

⚠️ Limitations

  • Requires macOS
  • Requires Google Chrome installed
  • Requires Python 3.10+

Related servers

More in Media & Design