MCP server for Word, Excel, and PDF
## Document Operations MCP Server: File Processing The **Document Operations MCP Server** provides comprehensive document processing capabilities in Google Antigravity, enabling developers to read, convert, and manipulate various document formats through AI-assisted file operations. ### Why Document Operations MCP? - **Multi-Format Support**: PDF, DOCX, XLSX, PPTX, and more - **Text Extraction**: Extract text content from any document - **Format Conversion**: Convert between document formats - **Metadata Access**: Read and modify document metadata - **Batch Processing**: Process multiple documents efficiently ### Key Features #### 1. Document Reading and Extraction ```javascript // Extract text from PDF const pdfContent = await docs.extractText({ filePath: "/path/to/document.pdf", options: { preserveLayout: true, extractImages: false } }); // Read Word document const docxContent = await docs.readDocument({ filePath: "/path/to/document.docx", format: "markdown" // Convert to markdown }); // Extract from spreadsheet const excelData = await docs.readSpreadsheet({ filePath: "/path/to/data.xlsx", sheet: "Sheet1", range: "A1:Z100" }); ``` #### 2. Conversion and Processing ```javascript // Convert document format await docs.convert({ inputPath: "/path/to/document.docx", outputPath: "/path/to/document.pdf", options: { quality: "high", preserveHyperlinks: true } }); // Merge PDF documents await docs.mergePdfs({ inputPaths: ["doc1.pdf", "doc2.pdf", "doc3.pdf"], outputPath: "merged.pdf" }); // Get document metadata const metadata = await docs.getMetadata({ filePath: "/path/to/document.pdf" }); console.log("Author:", metadata.author); console.log("Created:", metadata.createdDate); ``` ### Configuration ```json { "mcpServers": { "document-operations": { "command": "npx", "args": ["-y", "@anthropic/mcp-document-ops"], "env": { "TEMP_DIR": "/tmp/doc-processing", "MAX_FILE_SIZE": "100MB" } } } } ``` ### Use Cases **Report Generation**: Extract data from spreadsheets and generate formatted reports. **Content Migration**: Convert legacy documents to modern formats. **Data Extraction**: Pull structured data from PDFs and documents for processing. The Document Operations MCP Server brings powerful document processing to your workflow.
{
"mcpServers": {
"document-operations": {
"mcpServers": {
"document-operations": {
"args": [
"document-operations-mcp"
],
"command": "uvx"
}
}
}
}
}