Docsmith MCP
Enables processing of Excel, Word, and PDF documents through reading, writing, and metadata extraction. It leverages a secure Pyodide WebAssembly environment to handle document parsing with support for paginated results.
README
Docsmith MCP
Python-powered document processing MCP — Process Excel, Word, PDF documents with ease using Python.
Features
- Excel: Read/write
.xlsxfiles with sheet support and pagination - Word: Read/write
.docxfiles with paragraph and table support - PDF: Read
.pdffiles with text extraction and pagination - Text Files: Read/write
.txt,.csv,.md,.json,.yaml,.ymlwith pagination support - Flexible Reading Modes: Raw full read or paginated for large files
- Powered by Pyodide: Runs in secure WebAssembly sandbox via code-runner-mcp
Installation
pnpm install
pnpm build
Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"docsmith": {
"command": "node",
"args": ["/path/to/docsmith-mcp/dist/index.js"],
"env": {
"DOC_RAW_FULL_READ": "false",
"DOC_PAGE_SIZE": "100",
"DOC_MAX_FILE_SIZE": "50"
}
}
}
}
Environment Variables
| Variable | Description | Default |
|---|---|---|
DOC_RAW_FULL_READ |
Enable full raw read mode | false |
DOC_PAGE_SIZE |
Default items per page | 100 |
DOC_MAX_FILE_SIZE |
Max file size in MB | 50 |
Tools
read_document
Read document content with automatic format detection.
{
"file_path": "/path/to/document.xlsx",
"mode": "paginated",
"page": 1,
"page_size": 50,
"sheet_name": "Sheet1"
}
write_document
Write document content.
{
"file_path": "/path/to/output.xlsx",
"format": "excel",
"data": [["Header1", "Header2"], ["Value1", "Value2"]]
}
get_document_info
Get document metadata.
{
"file_path": "/path/to/document.pdf"
}
Architecture
docsmith-mcp/
├── python/ # Python handler scripts
│ ├── excel_handler.py
│ ├── word_handler.py
│ └── pdf_handler.py
├── src/
│ ├── index.ts # MCP server
│ └── code-runner.ts # code-runner-mcp client
└── dist/ # Built output
Python scripts are executed via code-runner-mcp in a Pyodide WebAssembly environment.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.