Skip to main content
Glama
DC911360

lanhu-mcp-server

by DC911360

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CHROME_PATHNoChrome 路径 (optional, for lanhu_download_design tool, defaults to auto-detect)
LANHU_COOKIEYes蓝湖登录 Cookie (required)
LANHU_TENANT_IDNo租户 ID (optional, needed for listing projects)
LANHU_PROJECT_IDNo默认项目 ID (optional, if not provided must be specified per call)
LANHU_AUTHORIZATIONNoAuthorization Token (optional, needed for some endpoints)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
lanhu_get_design_documentA

获取设计稿的完整精确结构化数据。返回图层树(绝对坐标@1x、全量样式fill/border/shadow/typography)、Design Tokens。供 iOS/Android/Flutter/Web/H5 代码生成器使用。

lanhu_list_projectsB

列出蓝湖团队下的所有项目/文件夹,返回 ID 和名称。parentId=0 表示根目录。

lanhu_get_designsA

获取项目下的设计稿列表。使用项目的 UUID(sourceId)作为 projectId。

lanhu_get_design_detailB

获取设计稿详情,包含尺寸、预览图 URL、版本信息、json_url(标注数据地址)。

lanhu_get_annotationsB

获取设计稿的标注数据(图层树),包含每个元素的尺寸、位置、颜色、字体等精确参数。

lanhu_get_previewB

获取设计稿的预览图 URL。

lanhu_get_tokensB

从设计稿标注数据中提取 Design Tokens(颜色变量等)。

lanhu_get_sectorsB

获取项目的分区(分组)信息,了解设计稿的组织结构。

lanhu_set_projectA

从蓝湖项目 URL 中提取并设置默认 projectId。之后所有工具调用无需再传 projectId。支持格式:完整 URL 或直接粘贴 projectId UUID。

lanhu_get_dds_schemaA

获取蓝湖 DDS 语义化 UI 组件树。返回经过 AI 识别的 UI 组件结构(NavBar/Avatar/Input/ImageText 等),包含 row/col 布局和精确样式。用于 300% 精确还原设计稿。

lanhu_generate_codeB

基于蓝湖 DDS 语义化数据生成前端代码。支持 Vue 3 SFC (.vue) 和 HTML 输出。

lanhu_download_designA

一键下载蓝湖设计稿:通过 Puppeteer 从 DDS 页面提取官方生成的 HTML/CSS 代码 + 下载所有 CDN 切图并替换为本地路径。输出 index.html / index.css / flexible.js / common.css + img/。

lanhu_download_coverB

下载设计稿封面图(完整设计截图)到本地目录。

lanhu_download_imageC

下载任意图片 URL 到本地目录。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DC911360/lanhu-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server