OfficeCLI MCP Serverless for Gemini Spark
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OfficeCLI MCP Serverless for Gemini SparkCreate a Word doc with a table and heading for Q3 sales report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OfficeCLI MCP Serverless for Gemini Spark
Stateless & Serverless Model Context Protocol (MCP) server yang membungkus OfficeCLI untuk membuat dan mengedit dokumen Microsoft Word (.docx) langsung melalui instruksi AI di Gemini Spark Custom App.
🚀 Fitur Utama
Stateless & Serverless Ready: Didesain khusus untuk runtime Vercel Functions (
/tmpscratch space, auto-cleanup).Batch Pipeline Execution: Menjalankan kumpulan perintah OfficeCLI secara berurutan dalam satu turn request.
Base64 Data URL Output: Menghasilkan file Word langsung dalam format Base64 Data URL tanpa perlu external storage (S3/Blob).
Auto Binary Provisioning: Otomatis mengunduh atau menyiapkan executable
officecliLinux x86_64 di environment serverless.
Related MCP server: office-mcp-server
🛠️ Tool MCP yang Tersedia
generate_office_document
Mengeksekusi batch perintah OfficeCLI untuk membuat atau mengubah dokumen .docx.
Parameter Input:
filename(string, required): Nama file output (contoh:Laporan_Proyek.docx).commands(string[], required): Daftar perintah OfficeCLI yang dieksekusi berurutan.[ "create output.docx", "add output.docx / --type paragraph --prop \"text=Laporan Evaluasi Kuartal 3\"", "add output.docx / --type table --prop rows=3 --prop cols=3" ]initial_file_base64(string, optional): Base64 string dokumen awal jika ingin melakukan edit pada template existing.
📦 Menghubungkan ke Gemini Spark Custom App
Deploy ke Vercel:
pnpm install vercel deploy --prodSalin URL hasil deploy Vercel Anda, misalnya:
https://officecli-mcp.vercel.app/api/indexTambahkan ke Gemini Spark:
Buka pengaturan Gemini Spark Custom App / Custom Tools / MCP Servers.
Masukkan Server URL:
https://officecli-mcp.vercel.app/api/index(Transport: SSE / HTTP Remote MCP).Simpan dan mulai perintahkan Gemini:
"Buatkan saya dokumen Word tentang laporan bisnis lengkap dengan tabel metrik!"
💻 Development & Testing Lokal
# Install dependencies
pnpm install
# Menjalankan unit tests
pnpm test
# Menjalankan MCP server di mode stdio
pnpm devThis server cannot be deployed
Maintenance
Related MCP Connectors
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
DocBase MCP server for AI agents
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnterprise-grade document editing and management server that enables AI-powered operations on Microsoft Word DOCX files, including creating, editing, formatting, and exporting documents through both MCP protocol and RESTful API.3MIT
- FlicenseBqualityDmaintenanceMCP server for Office document automation, enabling AI assistants to create, read, and clone Word/Excel/PPT templates while preserving formatting.41-
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.932 npmMIT
- FlicenseAqualityCmaintenanceMCP server for rendering, parsing, converting, and editing Office documents (Excel, PowerPoint, Word) from a structured JSON spec, using LibreOffice WASM for conversion and preview.51-