miro-mcp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUsing Miro with Claude Code
结合Claude Code使用Miro
What is Miro MCP?
什么是Miro MCP?
Miro MCP (Model Context Protocol) enables Claude to interact directly with Miro boards. Create diagrams, documents, and tables; read board content; and extract structured documentation from visual designs.
Miro MCP(Model Context Protocol,模型上下文协议)允许Claude直接与Miro看板进行交互。你可以创建图表、文档和表格,读取看板内容,并从视觉设计中提取结构化文档。
Available Tools
可用工具
Content Creation
内容创建
- - Get the DSL format specification before creating diagrams
diagram_get_dsl - - Generate diagrams from DSL text descriptions
diagram_create - - Create markdown documents on boards
doc_create - - Create tables with text and select columns
table_create - - Add or update table rows
table_sync_rows
- - 创建图表前获取DSL格式规范
diagram_get_dsl - - 根据DSL文本描述生成图表
diagram_create - - 在看板上创建Markdown文档
doc_create - - 创建包含文本和下拉选择列的表格
table_create - - 添加或更新表格行
table_sync_rows
Content Reading
内容读取
- - List items on a board with filtering by type or container
board_list_items - - Discover high-level board contents (frames, documents, prototypes, tables, diagrams)
context_explore - - Extract detailed text context from specific board items
context_get - - Read table data with column-based filtering
table_list_rows - - Get image content from boards
image_get_data - - Get download URL for an image
image_get_url
- - 按类型或容器筛选,列出看板上的项目
board_list_items - - 查看看板的高层级内容(框架、文档、原型、表格、图表)
context_explore - - 从特定看板项目中提取详细文本上下文
context_get - - 按列值筛选读取表格数据
table_list_rows - - 获取看板上的图片内容
image_get_data - - 获取图片的下载链接
image_get_url
Document Editing
文档编辑
- - Read document content and version
doc_get - - Edit document using find-and-replace
doc_update
- - 读取文档内容和版本信息
doc_get - - 通过查找替换编辑文档
doc_update
Board URLs and IDs
看板链接与ID
Miro tools accept board URLs directly. Extract board_id and item_id automatically from URLs like:
- - Board URL
https://miro.com/app/board/uXjVK123abc=/ - - URL with item focus
https://miro.com/app/board/uXjVK123abc=/?moveToWidget=3458764612345
When a URL includes or parameters, the item_id is extracted automatically.
moveToWidgetfocusWidgetMiro工具可直接接受看板链接。会自动从以下格式的链接中提取board_id和item_id:
- - 看板链接
https://miro.com/app/board/uXjVK123abc=/ - - 带项目焦点的链接
https://miro.com/app/board/uXjVK123abc=/?moveToWidget=3458764612345
当链接包含或参数时,item_id会被自动提取。
moveToWidgetfocusWidgetCreating Diagrams
创建图表
Use to create visual diagrams from text descriptions.
diagram_create使用根据文本描述创建可视化图表。
diagram_createSupported Diagram Types
支持的图表类型
- flowchart - Process flows, workflows, decision trees
- mindmap - Hierarchical ideas, brainstorming
- uml_class - Class structures, inheritance relationships
- uml_sequence - Interactions between components over time
- entity_relationship - Database schemas, data models
- flowchart - 流程流、工作流、决策树
- mindmap - 层级化想法、头脑风暴图
- uml_class - 类结构、继承关系图
- uml_sequence - 组件间时序交互图
- entity_relationship - 数据库 schema、数据模型图
Description Formats
描述格式
Natural language works well:
User registration flow: start -> enter email -> validate email ->
send verification -> user confirms -> create account -> redirect to dashboardMermaid notation for precise control:
flowchart TD
A[Start] --> B{Valid Email?}
B -->|Yes| C[Send Verification]
B -->|No| D[Show Error]
C --> E[Wait for Confirm]
E --> F[Create Account]自然语言描述即可:
用户注册流程: 开始 -> 输入邮箱 -> 验证邮箱 ->
发送验证邮件 -> 用户确认 -> 创建账户 -> 跳转到仪表盘使用Mermaid语法可实现精准控制:
flowchart TD
A[开始] --> B{邮箱有效?}
B -->|是| C[发送验证邮件]
B -->|否| D[显示错误]
C --> E[等待用户确认]
E --> F[创建账户]Positioning Items on the Board
看板上的项目定位
Board coordinates use a Cartesian system with center at . Positive X goes right, positive Y goes down.
(0, 0)Spacing recommendations:
- Diagrams: 2000-3000 units apart
- Documents: 500-1000 units apart
- Tables: 1500-2000 units apart
看板坐标采用笛卡尔坐标系,原点为。X轴正方向向右,Y轴正方向向下。
(0, 0)间距建议:
- 图表:间距2000-3000单位
- 文档:间距500-1000单位
- 表格:间距1500-2000单位
Placing in Frames
放入框架中
Set to a frame ID to place content inside that frame.
parent_id将设置为框架ID,即可将内容放入该框架内。
parent_idCreating Documents
创建文档
Use to create Google Docs-style documents on boards.
doc_create使用在看板上创建类Google Docs风格的文档。
doc_createSupported Markdown
支持的Markdown语法
- Headings: through
# H1###### H6 - Bold:
**text** - Italic:
*text* - Unordered lists:
- item - Ordered lists:
1. item - Links:
[text](url)
- 标题:至
# H1###### H6 - 粗体:
**文本** - 斜体:
*文本* - 无序列表:
- 项目 - 有序列表:
1. 项目 - 链接:
[文本](链接地址)
Example Document
文档示例
markdown
undefinedmarkdown
undefinedSprint Planning - Week 12
第12周迭代规划
Goals
目标
- Complete user authentication module
- Fix critical bugs from QA
- 完成用户认证模块
- 修复QA提出的关键Bug
Team Assignments
团队分配
- Alice - Auth backend
- Bob - Frontend integration
- Carol - Bug fixes
- Alice - 认证后端开发
- Bob - 前端集成
- Carol - Bug修复
Resources
参考资源
undefinedWorking with Tables
表格操作
Creating Tables
创建表格
Use to create tables with typed columns. Supports two column types: text for free-form entry and select for dropdowns with predefined color-coded options.
table_create使用创建带类型列的表格。支持两种列类型:text用于自由输入,select用于带预定义颜色编码选项的下拉菜单。
table_createAdding and Updating Rows
添加与更新行
Use to add or update table data. Set to match existing rows for upsert behavior — matching rows are updated, non-matching rows are inserted as new.
table_sync_rowskey_column使用添加或更新表格数据。设置来匹配现有行以实现更新插入行为——匹配的行会被更新,不匹配的行会作为新行插入。
table_sync_rowskey_columnReading Table Data
读取表格数据
Use to read table contents. Filter by column value using format.
table_list_rowsColumnName=Value使用读取表格内容。可使用的格式按列值筛选。
table_list_rows列名=值Extracting Board Content
提取看板内容
Discovering Board Contents
查看看板整体内容
Use to get a high-level view of what's on a board — returns frames, documents, prototypes, tables, and diagrams with their URLs and titles.
context_explore使用获取看板的高层级概览——返回框架、文档、原型、表格和图表的链接与标题。
context_exploreGetting Item Details
获取项目详情
Use to extract detailed content from specific items:
context_get| Item Type | Returns |
|---|---|
| Documents | HTML markup of the document content |
| Prototype screens | HTML markup representing the UI/layout |
| Prototype containers | AI-generated map of all screens with navigation flow |
| Frames | AI-generated summary of frame contents |
| Tables | Formatted table data |
| Diagrams | AI-generated description and analysis |
使用提取特定项目的详细内容:
context_get| 项目类型 | 返回内容 |
|---|---|
| 文档 | 文档内容的HTML标记 |
| 原型页面 | 代表UI/布局的HTML标记 |
| 原型容器 | AI生成的全页面导航流程图 |
| 框架 | AI生成的框架内容摘要 |
| 表格 | 格式化的表格数据 |
| 图表 | AI生成的图表描述与分析 |
Workflow
操作流程
- Call to discover board contents
context_explore - Identify items of interest from the results
- Call with specific item URLs (with moveToWidget parameter)
context_get
- 调用查看看板内容
context_explore - 从结果中确定感兴趣的项目
- 使用带moveToWidget参数的项目链接调用
context_get
Browsing Board Items
浏览看板项目
Use to explore board contents. Filter by item type (frame, sticky_note, card, shape, text, image, document, embed) or by container to list items within a specific frame.
board_list_items使用浏览看板内容。可按项目类型(框架、便签、卡片、形状、文本、图片、文档、嵌入内容)筛选,或按容器筛选列出特定框架内的项目。
board_list_itemsBest Practices
最佳实践
For Diagrams
图表相关
- Be specific about elements and relationships
- Specify flow direction (top-down, left-right)
- Include decision points and conditions
- Let AI auto-detect diagram type or specify explicitly
- 明确说明元素和关系
- 指定流向(自上而下、自左向右)
- 包含决策点和条件
- 可让AI自动检测图表类型,或明确指定
For Documents
文档相关
- Structure with clear headings
- Keep content focused and scannable
- Use lists for multiple items
- Include links to related resources
- 用清晰的标题构建结构
- 内容聚焦且易于扫描
- 用列表呈现多个项目
- 包含相关资源的链接
For Tables
表格相关
- Choose meaningful column names
- Use select columns for status/priority fields
- Define clear, distinct option colors
- Use key_column for idempotent updates
- 选择有意义的列名
- 状态/优先级字段使用select列
- 定义清晰、区分度高的选项颜色
- 使用key_column实现幂等更新
For Context Extraction
上下文提取相关
- Start with to discover board contents
context_explore - Focus on specific frames when boards are large
- Use with item URLs for detailed content
context_get
- 先调用查看看板内容
context_explore - 看板较大时,聚焦于特定框架
- 使用带项目链接的获取详细内容
context_get
Quick Reference
快速参考
| Task | Tool |
|---|---|
| Get diagram DSL spec | |
| Create diagram | |
| Create document | |
| Read document | |
| Edit document | |
| Create table | |
| Add/update table rows | |
| Read table data | |
| Discover board contents | |
| Extract item details | |
| List board items | |
| Get image data | |
| Get image URL | |
| 任务 | 工具 |
|---|---|
| 获取图表DSL规范 | |
| 创建图表 | |
| 创建文档 | |
| 读取文档 | |
| 编辑文档 | |
| 创建表格 | |
| 添加/更新表格行 | |
| 读取表格数据 | |
| 查看看板内容 | |
| 提取项目详情 | |
| 列出看板项目 | |
| 获取图片数据 | |
| 获取图片链接 | |