Visuals MCP Server
An MCP server that provides interactive visualizations including tables, charts, image previews, master-detail views, tree views, and customizable lists for AI agents.
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
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:
npm install -g @harrybin/visuals-mcp
visuals-mcp
GitHub Packages
- Authenticate npm with GitHub Packages:
npm config set @harrybin:registry https://npm.pkg.github.com
npm config set //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
- Install and run:
npm install -g @harrybin/visuals-mcp
visuals-mcp
Local Development
# 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:
linebarareapiescattercomposed
Repository Metrics Dashboard Example
Generate fresh metrics first:
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:
{
"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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。