Antigravity File Viewer
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Antigravity File Viewer
简体中文 · English
面向 Google Antigravity 的原生 MCP App + Sidecar 通用文件预览插件,可在 Antigravity 右侧边栏或全页视图中直接预览本地 Word、Excel、PowerPoint、PDF、HTML、ZIP 压缩包与 Markdown 文件。
原生支持 macOS、Linux 和 Windows,基于 Antigravity 官方插件协议构建,无需注入 DLL 或修改宿主程序。
效果展示
Word · | Excel · | PowerPoint · |
|
|
|
点击任意预览图可查看高清大图。
Related MCP server: g-connect
功能特性
Word 预览(
.docx、.dotx):清爽的纸张排版视图,保留标题层级、表格与内嵌图片。Excel / 表格预览(
.xlsx、.xls、.xlsm、.xlsb、.csv、.tsv、.ods):多工作表(Sheet)标签切换、冻结首行与行号、合并单元格渲染、单元格内容查看栏、关键字实时过滤。PowerPoint 预览(
.pptx、.pptm):基于pptx-preview的真实 16:9 幻灯片画布渲染,支持纵向连续与单页翻页切换、形状配色、表格、内嵌图片、图表与演讲者备注。PDF 预览(
.pdf):Sidecar 面板内原生流式 PDF 渲染(支持文字选中、搜索、书签与大文件流畅滚动)。HTML 实时预览(
.html、.htm):支持同目录相对路径 CSS/JS/图片资源加载,内置 预览 / 源码切换 与 桌面 / 平板 / 手机视口切换。ZIP 压缩包浏览(
.zip):展示包内目录树、文件大小与压缩率、实时文件名过滤,支持点击包内文本、代码与图片文件直接预览。Jupyter Notebook 预览(
.ipynb):完整渲染 Markdown 单元格、代码单元格、标准输出/错误堆栈、HTML 表格与内嵌 Matplotlib 图表,支持单元格关键字过滤。音视频播放(
.mp4、.webm、.mov、.m4v、.mp3、.wav、.m4a、.ogg、.flac):支持 HTTPRange分片流式播放(大视频零内存占用、自由拖拽进度)与0.5x–2x倍速切换。图片与矢量图增强(
.svg、.png、.jpg、.webp、.gif、.bmp、.ico):支持透明棋盘 / 浅色 / 深色背景切换、缩放、90° 旋转、像素分辨率显示,以及.svg预览 / 源码切换。Markdown 预览(
.md、.markdown):内置文档渲染视图。自动推送与对话内一键打开:
内置
rules/AGENTS.md规则:当 Agent 在对话中创建、修改或查找本地 Office / PDF / HTML / ZIP 文件时,自动调用open_file_viewer同步到侧边栏。支持
sidecar://file-viewer/viewer/?file=<编码后的绝对路径>一键胶囊链接,点击即可在右侧边栏直接打开对应文件。
内置文件导航:支持路径直达、可折叠本地目录浏览器、最近打开记录,以及直接从访达(Finder)拖拽或选择文件上传预览。
原生主题适配:自动跟随 Antigravity 明暗主题配色,支持缩放控制。
安装方法
环境要求
Node.js 20 及以上
Google Antigravity(支持 MCP App 与 Sidecar 插件)
一键克隆安装
直接克隆到 Antigravity 全局插件目录并构建即可,Antigravity 会自动发现并加载插件:
git clone https://github.com/jayden-dong411/antigravity-file-viewer.git ~/.gemini/config/plugins/file-viewer
cd ~/.gemini/config/plugins/file-viewer
npm install
npm run build使用方式
自动预览与对话内胶囊链接:让 Agent 生成、整理或查看本地
.docx/.xlsx/.pdf/.html/.zip等文件时,会自动推送到 File Viewer 并在回复中提供一键预览胶囊链接。右侧边栏打开(
aux_pane):点击 Antigravity 右侧辅助面板的+按钮,选择 File Viewer。左侧全页打开(
global):点击左侧导航栏中的 File Viewer。手动指定预览:在对话中直接发送文件路径,例如:
"在 File Viewer 中打开 ~/Documents/report.xlsx"。
项目结构
├── plugin.json # Antigravity 插件清单
├── mcp_config.json # MCP 服务配置
├── bin/
│ ├── start.sh # 跨平台 Node.js MCP 启动脚本
│ └── sidecar.sh # Sidecar Web 面板启动脚本
├── sidecars/viewer/
│ └── sidecar.json # Sidecar 侧边栏面板声明
├── rules/AGENTS.md # 自动推送侧边栏与胶囊链接规则
├── skills/office-viewer/ # Agent 技能说明
├── src/
│ ├── server.mjs # MCP 服务端(工具与 ui:// 资源)
│ ├── sidecar-server.mjs # Sidecar 本地 HTTP 预览服务
│ ├── parsers.mjs # Office 文档解析引擎
│ └── app.ts # 双模式交互式前端界面
├── scripts/build.mjs # 单文件 HTML 打包脚本(esbuild)
├── dist/
│ ├── app.html # MCP App 单文件前端产物
│ └── sidecar.html # Sidecar 单文件前端产物
├── screenshots/ # README 预览截图
└── assets/logo.svg # 插件图标本地开发
npm install
npm run build # 打包生成 dist/app.html 与 dist/sidecar.html许可证
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Find, read and reorganize files across Google Drive, OneDrive, SharePoint and Dropbox, with undo.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to process files locally — OCR images, extract text from PDFs and DOCX, and describe images using local vision models, all without sending data to external services.-
- FlicenseNot gradedqualityBmaintenanceEnables agents to read, analyze, and edit Google Docs, Sheets, Drive files, and local folders with previews, rollback, and clarification, while supporting MCP clients, local models, and API-key-based models.-
- FlicenseNot gradedqualityCmaintenanceEnables Google Antigravity agents to quickly inspect and read PDF, Word, Excel, PowerPoint, and text documents, extracting structure and content as token-efficient Markdown.-
- AlicenseAqualityBmaintenanceLets an agent read local documents as Markdown: PDF, Word, PowerPoint, Excel, CSV, HWP/HWPX, OpenDocument, RTF, EPUB, HTML and email. Tables keep their rows and columns, and long files can be read one page, slide or sheet at a time. Offline, read-only, no API key.21,047 PyPI48MIT


