lanhu-context-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lanhu-context-mcpprovide implementation context for this Lanhu design: https://lanhuapp.com/design/abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
lanhu-context-mcp
Simplified Chinese | English
✨ Organizes Lanhu design drafts into context for AI to generate code and reconstruct pages.
Features
🎨 Supports outputting
HTML+CSSorHTML+Tailwind, allowing you to choose the more suitable format based on your project's tech stack.🖼️ Returns image asset mappings and download commands, reducing the steps of manually processing image assets one by one.
🧱 Includes
Design Tokensand design previews to facilitate downstream models in implementation and visual verification.🧭 Provides implementation guidance for downstream AI, clarifying priorities, adaptation methods, and constraints.
⚙️ Supports configuring
Tailwindoutput, skipping image slicing, unit scaling, and prompt language via CLI arguments and environment variables.
Related MCP server: componentize
Documentation
For full documentation, please visit lanhu.refineup.com.
Quick Start
Environment Requirements
Node.js
^20.19.0 || >=22.12.0
Design Draft Transcoding
Design drafts must have the transcoding feature enabled before being uploaded to Lanhu.
Step 1. Prepare Environment Variables
First, create a .env.local file.
You will need a valid Lanhu login token. Refer to Getting Lanhu Token.
LANHU_TOKEN=your_lanhu_token_hereStep 2. Configure MCP
Write the MCP configuration for the corresponding client below into the appropriate file:
Codex (.codex/config.toml)
[mcp_servers.lanhu-context-mcp]
cwd = "/absolute/path/to/current-project"
command = "npx"
args = ["-y", "lanhu-context-mcp"]Claude Code (.mcp.json) / Cursor (.cursor/mcp.json)
{
"mcpServers": {
"lanhu-context-mcp": {
"command": "npx",
"args": ["-y", "lanhu-context-mcp"]
}
}
}The MCP configuration for Codex is unique; it requires an additional cwd setting, which should be filled with the absolute path of the current project. Since this path usually varies by user, it is generally not recommended to commit .codex/config.toml to Git. It is suggested to add it to your Git ignore and have each developer maintain it locally.
Windows
If the npx configuration above fails to start on Windows, you can use the following syntax instead:
Codex (WSL2)
[mcp_servers.lanhu-context-mcp]
cwd = "/absolute/path/to/current-project"
command = "npx"
args = ["-y", "lanhu-context-mcp"]Codex (Native)
[mcp_servers.lanhu-context-mcp]
cwd = "C:\\absolute\\path\\to\\current-project"
command = "C:\\Program Files\\nodejs\\npx.cmd"
args = ["-y", "lanhu-context-mcp"]
[mcp_servers.lanhu-context-mcp.env]
APPDATA = "C:\\Users\\{your-name}\\AppData\\Roaming"
LOCALAPPDATA = "C:\\Users\\{your-name}\\AppData\\Local"
USERPROFILE = "C:\\Users\\{your-name}"
HOME = "C:\\Users\\{your-name}"
SYSTEMROOT = "C:\\Windows"
COMSPEC = "C:\\Windows\\System32\\cmd.exe"Claude Code (.mcp.json) / Cursor (.cursor/mcp.json)
{
"mcpServers": {
"lanhu-context-mcp": {
"command": "cmd",
"args": ["/c", "npx", "-y", "lanhu-context-mcp"]
}
}
}For Codex native fallback reference:
openai/codex#2555
Step 3. Install Lanhu Helper Google Chrome Extension
After installing Lanhu Helper, you can right-click in Lanhu to copy selected layer links or example prompts directly.
Step 4. Send Lanhu Links and Prompts to AI
请根据这个蓝湖设计稿实现
@https://lanhuapp.com/web/#/item/project/detailDetach?tid={tid}&pid={pid}&project_id={project_id}&image_id={image_id}https://lanhuapp.com/web/#/item/project/detailDetach?tid={tid}&pid={pid}&project_id={project_id}&image_id={image_id}You can write prompts according to your own ideas, but the Lanhu URL must be complete and correct; otherwise, the tool cannot be called properly.
View more detailed documentation
Ecosystem
Lanhu Helper — The companion Lanhu Chrome browser extension, which allows you to right-click in Lanhu to copy selected layer links and example prompts.
License
Copyright (c) 2026-present, REFINIST
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI to directly read and analyze Lanhu design drafts and requirement documents to generate HTML, CSS, and structural analyses. It allows users to extract design slices and process prototype pages directly within AI clients.3849105MIT
- AlicenseNot gradedqualityDmaintenanceConverts design screenshots into reusable Tailwind HTML components via MCP protocol, enabling any AI to extract and export individual UI elements.91MIT
- FlicenseNot gradedqualityDmaintenanceConverts Figma design data into structured semantic analysis JSON and screenshots for AI agents to use in design-to-code workflows.
- FlicenseAqualityBmaintenanceRead-only MCP server that converts Lanhu project/design links into design context consumable by Codex or other AI agents.3
Related MCP Connectors
UI design from prompts, screenshots, and URLs for AI coding agents and theme tokens.
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
Turns any URL into SEO metadata, contacts, tech stack, and AI-ready Markdown, in one call.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/refinist/lanhu-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server