
Visuals MCP
io.github.harrybin由 GitHub 账号 harrybin 发布v1.6.0更新于 Oct 24, 2026
MCP server for interactive visualizations: tables, images, trees, lists, master-detail
概览
本地 MCP 服务器,在 MCP 客户端中渲染交互式可视化:表格、图表、图片、树形、列表和主从视图。
- 可以做什么
- 渲染可交互数据表格,支持排序、筛选、分页、列显隐、行选择以及 CSV/PDF 导出
- 绘制折线、柱状、面积、饼图、散点和组合图表,可同屏多图,支持图例、提示框和双 Y 轴
- 以卡片形式展示图片,含标题、说明、尺寸和文件大小,来源可为 URL、data URI 或本地路径
- 用主从布局浏览集合,用可展开的树形视图展示层级数据
- 展示格式化列表,支持拖拽排序、复选框、缩略图以及复制和导出
- 将表格、图表、树和选择状态回传给模型
- 适用场景
- 当助手的回答用表格、图表、图片画廊、树形或可排序列表呈现比纯文本更易读,且客户端支持 MCP Apps 类界面渲染时适用。主要面向 VS Code 与 GitHub Copilot Chat,其他 MCP 客户端可通过 npm 包接入。
- 运行要求
- 以本地 stdio 进程运行;可全局安装 npm 包 @harrybin/visuals-mcp,或在客户端中从 npm 添加,也可使用 VS Code 扩展。npm 方式需要 Node.js。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Visuals MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP Visuals Server
An MCP (Model Context Protocol) server that provides interactive visualizations for AI agents. Display data in rich, interactive formats including tables with TanStack Table, charts with Recharts, image previews with metadata, master-detail views for browsing collections, tree views for hierarchical data, and customizable lists with drag-and-drop reordering.
Quick Install
[Install with VS Code] °°° [Install with VS Code Insiders]
Features
Table Visualization
- Interactive Table Display: Full-featured data table with TanStack Table v8
- Sorting: Click column headers to sort ascending/descending
- Filtering: Per-column text filters with apply button
- Pagination: Customizable page sizes (5, 10, 20, 50, 100 rows)
- Column Visibility: Toggle which columns are displayed
- Row Selection: Select individual rows or all rows
- Export: Copy as CSV/TSV or export to PDF
- Agent Integration: Table state (selections, filters, sorting) automatically sent back to the LLM via
updateModelContext - Theme Integration: Respects VS Code theme colors and fonts
- Responsive: Works on different screen sizes
- Generic Data Support: Accepts any column structure and data types
Chart Visualization
- Interactive Charts: Render line, bar, area, pie, scatter, and composed charts
- Multiple Charts Per View: Show several charts together in vertical, horizontal, or grid layouts
- Flexible Series Configuration: Configure named series, custom colors, stacked bars/areas, and mixed composed charts
- Rich Chart Features: Optional legends, tooltips, grid lines, and dual Y-axes
- Export Options: Copy chart payloads as JSON or CSV directly from the UI
- Agent Awareness: Active chart selection and hover state can be reported back to the host app
- Theme Integration: Respects VS Code theme colors and fonts
- Responsive: Adapts to narrow panels and wider layouts
Image Preview
- Rich Image Cards: Display images with title, caption, and metadata
- Metadata Display: Show filename, dimensions, and file size
- Flexible Sources: Support URLs and data URIs
- Local File Support: Automatically converts local file paths to data URIs
- Theme Integration: Respects VS Code theme colors and fonts
Master-Detail View
- Flexible Layout: Display a list of items with detailed content panel
- Multiple Content Types: Detail panel supports tables, images, or custom text/HTML
- Reusable Components: Leverages existing table and image visualizations
- Configurable Layout: Choose horizontal (side-by-side) or vertical (stacked) orientation
- State Management: Selection state automatically sent back to LLM
- Rich Master List: Display items with icons, labels, and descriptions
- Theme Integration: Consistent theming across all components
Tree View
- Hierarchical Data Display: Interactive tree structure for nested data
- Expand/Collapse: Click to expand or collapse nodes
- Node Selection: Select individual nodes to highlight them
- Metadata Support: Display optional metadata for each node
- Icons: Add custom icons/emojis to nodes
- Bulk Operations: Expand all or collapse all nodes at once
- Export Options: Copy tree to clipboard, export as HTML, or save as image (PNG)
- Agent Integration: Tree state (expanded nodes, selection) sent back to the LLM
- Theme Integration: Respects VS Code theme colors and fonts
- Use Cases: File systems, org charts, nested categories, JSON/XML structures
List Visualization
- Interactive Lists: Display any type of list with rich formatting
- Drag-and-Drop Reordering: Easily reorder items by dragging
- Checkboxes: Optional checkboxes for task lists and selections
- Image Thumbnails: Show images alongside list items
- Compact Mode: Toggle between comfortable and compact layouts
- Export Options: Copy as plain text, CSV, or JSON
- Individual Item Copy: Quick copy button for each item
- Subtext Support: Secondary text/description for each item
- Metadata: Attach custom metadata to items
- Theme Integration: Respects VS Code theme colors and fonts
Screenshots
Interactive table with sorting, filtering, pagination, and row selection
Interactive chart dashboard with multiple chart types and grid layout
Master-detail view for browsing collections with tables, images, or custom content
Interactive list with drag-and-drop reordering, checkboxes, and image thumbnails
Interactive tree view with expand/collapse, node selection, and export options
Installation
VSCode Extension (Easiest)
Install directly from the VS Code Marketplace:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Visuals MCP"
- Click Install
The extension will automatically register the MCP server with VS Code and GitHub Copilot Chat.
npmjs (Recommended for other MCP Clients)
In VSCode github Copilot Chat
- click on the tools icon (Configure tools...)
- click on "Add MCP Server"
- click on "Install from npm"
- enter
@harrybin/visuals-mcp - press enter / click "Install"
Using command line:
GitHub Packages
- Authenticate npm with GitHub Packages:
- Install and run:
Local Development
Chart Tool
Use display_chart to render one or more interactive charts in the MCP client.
Supported chart types:
linebarareapiescattercomposed
Repository Metrics Dashboard Example
Generate fresh metrics first:
This writes a snapshot to doc/repo-metrics.json.
Then render a dashboard that uses all chart types (line, bar, area, pie, scatter, composed):
For release-quality docs, always regenerate doc/repo-metrics.json right before updating README examples.
1. Configure MCP Server
For VS Code: This workspace includes MCP configuration in .vscode/settings.json.
To add globally, update your VS Code settings:
For Claude Desktop: See claude_desktop_config.json for example configuration.
License
MIT
Contributing
Contributions welcome! Please open an issue or PR.
Resources
来源:README.md,提交 db17eed
工具
0版本历史
1- v1.6.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。