Connect MCP to your AI tool and use Lanhu design data.
Download the MCP ZIP from the download page and extract it to a folder you will keep.
You need Node.js 24, an AI tool that supports local MCP (such as Cursor, Codex or Claude Code), a LanhuMCP account and a Lanhu account that can open your designs.
MCP and Skill do the same job, so install only one. Prefer the other? See the Skill guide.
Send this prompt to an AI tool that can use your files and terminal, and follow its steps. The same prompt is on the download page.
Please install Lanhu MCP and make it available in my AI tool.
AI tool and version: [fill in]
Operating system: [fill in]
Downloaded ZIP or extracted folder: [absolute path]
Use it in: [this project / all my projects]
1. Read https://lanhumcp.com/docs/mcp?lang=en and the instructions in the ZIP. Check my environment and ask only for what you cannot determine.
2. Use the official ZIP and Node.js 24. In the extracted folder run npm ci --omit=dev --ignore-scripts, then npm exec -- playwright install chromium. Keep my other tools and settings. Check the supported commands with --help first.
3. Add Lanhu MCP following my AI tool’s official instructions, with the start command node /absolute/path/dist/cli.js serve. Help me reload the tool if needed.
4. Tell me when to get my API Key from https://lanhumcp.com/account and run node dist/cli.js auth configure in my own terminal. I will use the local hidden prompt and sign in to Lanhu myself. Never ask for my Key, password or Cookie in chat, and never read credential files.
5. Check in my AI tool that Lanhu MCP works and lists my teams. Do not read a design just to test. If anything is unfinished, say so; do not claim success.
6. Tell me where it is installed, the result of the check and what to do next, then wait for me to choose a project and design.To add it by hand, see the guide for your tool: Cursor · Codex · Claude Code · Claude Desktop · VS Code
Copy your API Key from your account and enter it in your own terminal when asked. Then sign in to Lanhu in the browser that opens and wait for it to close. Do not send your Key, password or Cookie to the AI.
Reload your AI tool when asked.
In the extracted folder (the one with package.json), run:
node --version
npm ci --omit=dev --ignore-scripts
npm exec -- playwright install chromium
node dist/cli.js --helpIf the help lists setup, run this yourself to enter the Key and sign in:
node dist/cli.js setupIf there is no setup, run node dist/cli.js auth configure, then node dist/cli.js login. Finally, add Lanhu MCP to your AI tool using the links in step 2.
After reloading, send:
Check whether Lanhu MCP works in this AI tool and list my teams. Do not read any design yet.If the AI lists your teams, it works. An empty list is also fine if you have no team access.
Tell the AI what you need, then pick the team, project and design from its answer:
Use Lanhu MCP to list my teams and let me choose a project and design. Read the chosen design and save it locally. Show me the available images and download only the ones I choose. If I ask you to build the interface, look at my project first, build it from the design, then run it and compare. Tell me where the files are saved.The AI can save the design file, download the images you choose and build the interface in your project. Run it and compare it with the design.
Need help? Send your system, AI tool, version and the error message to [email protected]. Do not send passwords, Keys or private designs.