Universal Preview
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 Universal Preview(万能文件预览器)
一个专为 Google Antigravity 打造的侧边栏本地全能文件预览与轻量就地编辑插件(基于 MCP Apps 规范)。无需上传任何文件到云端,全部解析与编辑均在本地完成,并自动跟随 Antigravity 深色 / 浅色主题。
界面预览
Related MCP server: Antigravity Office & PDF Preview
核心特性
原生文件查看器接管(MCP App
fileentrypoint):注册接管.docx/.doc/.rtf/.xlsx/.xls/.xlsm/.csv/.tsv/.pptx/.ppt/.zip/.sqlite/.db/.md/.txt与音视频,支持通过resources/read与com.google.antigravity/resources/write直接打开并保存。Word 文档极速预览 + 保留排版改字:
.docx默认毫秒级渲染;支持一键切换 「🖨️ Office 原样排版」(Windows 下静默调用本机 Microsoft Word 导出缓存 PDF,无锁文件残留)。内置 「✏️ 改字编辑」:按段落/表格提取文本块,精准原地替换修改片段,100% 保留原有字体、加粗、页眉页脚、表格和图片排版,保存前自动备份。
文本 / Markdown / CSV / 代码就地编辑:
工具栏点 「✏️ 编辑」,支持
Ctrl+S保存、Tab缩进、未保存提示、一键撤销;Markdown 额外支持 「◫ 实时对照」 分屏渲染。
多格式本地支持:
Excel / 表格:多 Sheet 切换、搜索筛选、点击单元格查看完整内容。
PowerPoint:调用本机 PowerPoint 原样幻灯片预览,
.pptx支持切换文本大纲模式。PDF:内置 PDF.js Canvas 高清逐页缩放渲染。
ZIP 压缩包 & SQLite 数据库:ZIP 支持展开目录并点选内部文件穿透预览;SQLite 支持切换数据表与分页浏览。
图片 / SVG & 音视频:图片缩放与透明网格底切换,音视频原生播放。
多种打开方式:Antigravity 左侧栏全屏入口、右侧边栏
+菜单、目录浏览、本地文件拖入、以及 「📋 粘贴打开」 读取剪贴板路径/链接。
安装方式
方式一:本地直接部署
克隆仓库并安装运行时依赖(预编译好的界面已包含在
dist/app.html,无需额外构建):
git clone https://github.com/king-from-sky/antigravity-universal-preview.git
cd antigravity-universal-preview
npm install --omit=dev安装为 Antigravity 插件(或将整个目录复制到 Antigravity 插件目录,目录名保持为
universal-preview):命令行安装:
agy plugin install .Windows 手动路径:
%USERPROFILE%\.gemini\config\plugins\universal-previewmacOS / Linux 手动路径:
~/.gemini/config/plugins/universal-preview
在 Antigravity 的「个性化定制 → 已安装插件」中确认 万能文件预览器 (Universal Preview) 已启用即可(从下一轮对话或重启后自动生效)。
方式二:从源码重新构建前端界面
如果你修改了 ui/app.ts 或 ui/styles.css:
npm install
npm run build
npm test目录结构
antigravity-universal-preview/
├── plugin.json # Antigravity 插件元数据
├── mcp_config.json # MCP Server 启动配置
├── rules/AGENTS.md # 与 AI 对话联动的内置规则
├── assets/
│ ├── logo.svg # 插件图标
│ └── screenshots/ # README 真实界面截图
├── server.mjs # Node.js MCP Server & 本地文件解析/Office COM/无损改字引擎
├── ui/
│ ├── app.ts # MCP App 前端逻辑
│ └── styles.css # 自适应 Antigravity 主题样式
├── dist/app.html # 单文件打包后的 MCP App UI(可直接运行)
├── build.mjs # esbuild 单文件打包脚本
└── smoke_test.mjs # MCP 协议与无损编辑冒烟测试环境要求
Node.js >= 22.13.0(使用内置
node:sqlite查看数据库)Windows + Microsoft Office(仅当需要
.doc/.ppt/.pptx或.docx原样分页排版时需要;其他格式纯跨平台离线可用)
License
MIT
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
Local-first browser Office suite with OAuth 2.1 Remote MCP and human-reviewed edit proposals.
Online office suite for AI agents: edit docs, sheets, slides and PDFs in browser or via MCP.
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.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables previewing local Word, Excel, PowerPoint, PDF, HTML, ZIP, Jupyter Notebook, media, images/SVG, and Markdown files directly in Google Antigravity's sidebar or full-page view, with automatic agent-driven opening and file navigation.MIT
- AlicenseBqualityBmaintenanceEnables Google Antigravity users to preview Word, Excel, PowerPoint, and PDF files locally in the conversation’s right-hand panel without downloading or uploading documents, and lets AI agents open previews via the preview_office_file tool.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables native right-sidebar and file-tab previews for PDF, Word, Excel, CSV, and PowerPoint documents in Google Antigravity, including AI-assisted opening and document-center browsing.MIT
- AlicenseNot gradedqualityBmaintenanceEnables previewing and losslessly quick-editing 55+ local formats—including Office/WPS/Visio documents, HEIC/TIFF/PSD images, Stata/SPSS/Parquet/SQLite data, EPUBs, archives, and fonts—inside Google Antigravity without sending files off the machine.1MIT