MCP.so
登录

Sleek MCP Server已验证已精选

@Sleek

基本信息

传输方式

Streamable HTTP

认证方式

OAuth

分类

媒体与设计

作者

Sleek

提交者

Reweb

关于 Sleek MCP Server

Design your mobile app UI with AI, then have your coding agent build the real app from it.

#design#mobile-app-design#ui-design#ios#android#figma#react#ai

连接信息

https://sleek.design/api/mcp

接入方式

claude mcp add sleek --transport http https://sleek.design/api/mcp

Sleek MCP Server 工具

12

List the workspace's projects, newest first. Each project holds one app's screens, theme, and design chat. Check here before create_project to avoid duplicates.

Create an empty project. Returns it in data, plus projectUrl. Pass data.id as projectId to design, then call screenshot. Creating a project is instant and uses no credits. Only design runs do. Share projectUrl so your user can watch and edit the designs.

Fetch a project and its projectUrl. Use it to confirm the project exists and share the URL with your user. Use list_components to see its screens.

Permanently delete a project and all its screens. Designs cannot be recovered. Call only after your user confirms the exact project by name. Never delete projects to tidy up on your own initiative.

List a project's screen names and active version numbers without generated HTML. Pass each item's screenId to design. Pass its id as componentId to get_component or in componentIds to screenshot. Use get_component only when you need a screen's code.

Fetch a screen's generated HTML. Returns the screen in data, with the HTML at data.versions[].code. versions holds only the version the screen currently shows. Use allVersions for the full history, which can be large. The returned screenId is the value design takes. Use this for a build handoff, not to check whether a design run worked.

List curated app styles and their preview images. When your user asks for a look such as Airbnb, brutalist, or dark fintech, pass the closest reference's id as referenceId to design. Without a reference, the agent picks a style.

Run Sleek's design agent to create or edit screens from a plain-language brief. Send the whole request as ONE message, such as 'a food delivery app with onboarding, restaurants, dish detail, cart, tracking, and profile'. The agent plans the screens together, so separate calls produce mismatched screens. A run uses workspace credits only when it completes or saves changes. By default this waits for the run to finish. If it returns 'queued' or 'running', poll get_design_run. Only one run can be active per project. On CONFLICT, poll get_design_run until the run settles, then retry. cancel_design_run stops it sooner. If a failed run has data.error.url, relay data.error.message to your user with that link. They have to act before you retry. On completion, share projectUrl with your user and call screenshot.

Poll a run that design returned as 'queued' or 'running'. Wait a few seconds between polls. On 'completed', data.result.operations lists the saved screens and theme changes. Share projectUrl and call screenshot. On 'failed', relay data.error.message to your user, with data.error.url if present. A failed run, including a cancelled one, keeps what it saved in that same list and uses credits only when the list is not empty. Check it before resending the brief.

Ask a design run to stop, for example when the brief was wrong. Returns the run as it stands right after the request. A queued run comes back 'failed' with error code 'cancelled' and never starts. A running run comes back still 'running' and stops at its next step. A run cut short settles as 'failed' with error code 'cancelled', or 'execution_failed' if saving its changes failed. It keeps any screens and theme changes it saved, listed in data.result.operations, and uses credits only when that list is not empty. A run that finishes before it stops settles as 'completed'. A run that had already settled comes back unchanged. The project stays locked until the run settles, so poll get_design_run before starting another run. A run that stopped responding settles as 'failed' with error code 'execution_timeout' 15 minutes after creation.

Render up to four project screens side by side as one inline image, after a design run completes. Returns the image, PNG unless format asks for WebP, and a one-line text note. Rendering uses no credits. Send projectUrl with the image so your user can open and edit the designs.

Find the workspace's projects by name for an @ mention, newest first. Each item is a resource link whose name is the projectId and whose uri is the projectUrl. To browse every project, use list_projects.

概览

什么是 Sleek MCP Server?

Sleek MCP Server 是 AI 移动应用设计工具 Sleek 官方托管的 MCP 服务器。你用自然语言描述一个应用,它就会在聊天中以图片形式返回真实、可编辑的移动应用界面,你的编程代理可以再依据这些界面构建出真正的应用。

服务器运行在 Sleek 的基础设施上,地址为 https://sleek.design/api/mcp,无需安装任何东西,登录通过浏览器中的 OAuth 完成。sleekdotdesign/mcp 仓库只包含清单和文档,没有服务器代码。

如何使用 Sleek MCP Server?

先在 sleek.design 免费注册账户,然后把下面的 URL 添加到客户端,浏览器打开后登录即可。

https://sleek.design/api/mcp

Sleek 建议所有客户端都使用 OAuth。sleek.design/agents/setup 提供的 API 密钥只是无法使用 OAuth 的客户端的最后手段;配置密钥后,客户端也不会再提供浏览器登录。

Claude Code

claude mcp add --transport http sleek https://sleek.design/api/mcp
claude mcp login sleek

也可以在 /mcp 中登录,或者先运行 /plugin marketplace add sleekdotdesign/mcp,再运行 /plugin install sleek@sleek 安装插件。如果必须使用 API 密钥,请把它放在环境变量里,并使用单引号,这样 Claude Code 保存的是变量引用而不是密钥本身:

claude mcp add --transport http sleek https://sleek.design/api/mcp \
  --header 'Authorization: Bearer ${SLEEK_API_KEY}'

Claude Desktop 和 claude.ai

打开 Customize → Connectors,点击 +,选择 Add custom connector,输入 https://sleek.design/api/mcp。Advanced settings 保持为空,点击 Add,然后登录 Sleek 并授权。在 Team 或 Enterprise 方案中,由 Owner 在 Organization settings → Connectors 中添加一次,成员再点击 Connect 即可。

Cursor

在 ~/.cursor/mcp.json 或 .cursor/mcp.json 中添加以下配置。启用服务器时,Cursor 会自动发起 OAuth 登录。

{ "mcpServers": { "sleek": { "url": "https://sleek.design/api/mcp" } } }

VS Code

在 .vscode/mcp.json 中用 url 添加远程服务器,按提示登录:

{ "servers": { "sleek": { "type": "http", "url": "https://sleek.design/api/mcp" } } }

Codex

codex mcp add sleek --url https://sleek.design/api/mcp
codex mcp login sleek

Sleek MCP Server 的主要功能

  • 一次请求就能设计整个应用:设计代理会统筹规划所有界面,让它们共用一套设计系统。
  • 界面以图片形式直接显示在聊天中,无需切换应用就能查看。
  • 可以就地修改单个界面,例如:“把 Add to cart 按钮移到固定的底部栏。”
  • get_component 返回界面生成的 HTML,方便交给编程代理继续开发。
  • 通过项目链接可以导出到 Figma(原生可编辑图层),也可以导出为 HTML 或使用 Tailwind CSS 的 React,所有方案都支持。
  • 可以通过 list_references 选用精选风格参考。
  • 列出、读取和渲染都免费,只有设计运行会消耗积分。

Sleek MCP Server 工具

服务器提供 11 个工具:

  • 项目:list_projects、create_project、get_project;delete_project 会永久删除项目,需要传入 confirm: true,并且应在用户明确说出项目名称后才执行。
  • 界面:list_components 列出项目中的界面,get_component 获取某个界面的 HTML,screenshot 把最多四个界面渲染成一张图片。
  • 设计运行:design 把完整需求作为一条消息接收,可选参数有 screenId、referenceId、imageUrls、idempotencyKey 和 wait;get_design_run 用于轮询运行状态,cancel_design_run 用于停止运行。
  • 风格:list_references 返回可供模仿的精选应用风格。

Sleek MCP Server 的使用场景

  • 一次设计出新应用:“在 Sleek 中设计一个植物商店应用:引导页、带精选植物的首页、植物详情、购物车和个人资料。温暖、简约的风格。”
  • 免费浏览已有作品:“给我看看植物商店项目里的购物车和个人资料界面。”
  • 有针对性地修改:“在植物详情界面上把价格放大。”
  • 选用 dark fintech、brutalist 等参考,套用指定风格。
  • 交给代码实现:让编程代理用 get_component 拉取每个界面的 HTML,构建真正的应用。

Sleek MCP Server 常见问题排查

  • 还没登录,Claude Code 就显示 sleek 已连接:这是正常现象。工具发现不需要登录,认证会在工具运行时检查。
  • API 密钥无效,也没有出现 OAuth 提示:被拒绝的密钥会被当作连接失败处理。请修正密钥,或者删除请求头改用 OAuth。
  • 在浏览器中打开 URL 返回 405:这是设计如此,该端点只接受 POST 请求。
  • design 调用与正在进行的运行冲突:每个项目同时只能有一个运行。请轮询 get_design_run 或调用 cancel_design_run,然后重试。

常见问题

1

Sleek MCP Server 是官方的吗?

是的。这是 Sleek 自己托管的服务器,文档在 sleekdotdesign/mcp 仓库中。

2

Sleek 免费吗?

免费账户会获得一次性试用积分,大约够一次设计运行。长期使用需要 Pro 或更高方案。README 中列出的 Pro 价格为每月 $69,或按年付费 $360/年,每月含 20,000 AI 积分。一个新界面大约消耗 30 积分。

3

需要 API 密钥吗?

不需要。推荐使用浏览器中的 OAuth 登录,API 密钥只适用于无法使用 OAuth 的客户端。

4

为什么要用一条消息描述整个应用?

Sleek 会统筹规划整套界面。分开发送的消息会生成彼此不协调的界面,而且每条都会作为单独的运行计费。

5

支持哪些客户端?

Claude(网页版、桌面版和移动端)、Claude Code、ChatGPT、Codex、Cursor,以及任何支持远程 Streamable HTTP 服务器的 MCP 客户端。

6

如何撤销访问权限?

在客户端中移除连接器,例如在 Claude Code 中运行 `claude mcp logout sleek`。也可以在 Sleek 账户中撤销授权或密钥。

7

Sleek 远程 MCP 服务器是什么?

Sleek 的远程 MCP 服务器是一个托管的 Model Context Protocol 端点,地址是 https://sleek.design/api/mcp,AI 助手无需在本地安装或运行任何东西即可连接。

8

怎么连接 Sleek 的 MCP 服务器?

把端点 https://sleek.design/api/mcp 添加到任意支持 MCP 的客户端,比如 Claude Code、Cursor 或 VS Code。本页的接入代码块可以一步配置好每个客户端。

9

Sleek 的 MCP 服务器需要认证吗?

需要。Sleek 使用 OAuth——第一次连接时,你的 MCP 客户端会打开浏览器窗口登录并授权,之后会复用这个凭证。

10

Sleek 的 MCP 服务器用的是哪种传输方式?

Sleek 暴露的是 Streamable HTTP 端点,这是远程 MCP 服务器普遍使用、主流客户端都支持的传输方式。

评论