io.github.harrybin/visuals-mcp

平台与服务

by harrybin

提供交互式可视化的 MCP server,支持 tables、images、trees、lists 与 master-detail 等展示。

什么是 io.github.harrybin/visuals-mcp

提供交互式可视化的 MCP server,支持 tables、images、trees、lists 与 master-detail 等展示。

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

Table Example

Interactive table with sorting, filtering, pagination, and row selection

Chart Example

Interactive chart dashboard with multiple chart types and grid layout

Master-Detail Example

Master-detail view for browsing collections with tables, images, or custom content

List Example

Interactive list with drag-and-drop reordering, checkboxes, and image thumbnails

Tree Example

Interactive tree view with expand/collapse, node selection, and export options

Installation

VSCode Extension (Easiest)

Install directly from the VS Code Marketplace:

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "Visuals MCP"
  4. 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:

bash
npm install -g @harrybin/visuals-mcp
visuals-mcp

GitHub Packages

  1. Authenticate npm with GitHub Packages:
bash
npm config set @harrybin:registry https://npm.pkg.github.com
npm config set //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
  1. Install and run:
bash
npm install -g @harrybin/visuals-mcp
visuals-mcp

Local Development

bash
# Install dependencies
npm install

# Build all UI bundles and the server
npm run build

# Optional: rebuild only the chart UI bundle
npm run build:charts

# Run the server
npm run serve

Chart Tool

Use display_chart to render one or more interactive charts in the MCP client.

Supported chart types:

  • line
  • bar
  • area
  • pie
  • scatter
  • composed

Repository Metrics Dashboard Example

Generate fresh metrics first:

bash
npm run metrics:repo:write

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:

json
{
  "github.copilot.chat.mcpServers": {
    "visuals-mcp": {
			"type": "stdio",
			"command": "node",
			"args": [
				"dist/server.js"
			]
		}
  }
}

For Claude Desktop: See claude_desktop_config.json for example configuration.

License

MIT

Contributing

Contributions welcome! Please open an issue or PR.

Resources

常见问题

io.github.harrybin/visuals-mcp 是什么?

提供交互式可视化的 MCP server,支持 tables、images、trees、lists 与 master-detail 等展示。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描165.3k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描165.3k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.5k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.1k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.9k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.9k

评论