MCP Excel Reader
MCP Excel Reader
A Model Context Protocol (MCP) server for reading Excel files with automatic chunking and pagination support. Built with SheetJS and TypeScript, this tool helps you handle large Excel files efficiently by automatically breaking them into manageable chunks.
<a href="https://glama.ai/mcp/servers/jr2ggpdk3a"><img width="380" height="200" src="https://glama.ai/mcp/servers/jr2ggpdk3a/badge" alt="Excel Reader MCP server" /></a>
Features
- 📊 Read Excel files (.xlsx, .xls) with automatic size limits
- 🔄 Automatic chunking for large datasets
- 📑 Sheet selection and row pagination
- 📅 Proper date handling
- ⚡ Optimized for large files
- 🛡️ Error handling and validation
Installation
Installing via Smithery
To install Excel Reader for Claude Desktop automatically via Smithery:
As an MCP Server
- Install globally:
- Add to your MCP settings file (usually at
~/.config/claude/settings.json
or equivalent):
For Development
- Clone the repository:
- Install dependencies:
- Build the project:
Usage
Usage
The Excel Reader provides a single tool read_excel
with the following parameters:
Basic Usage
When used with Claude or another MCP-compatible AI:
The AI will use the tool to read the file, automatically handling chunking for large files.
Features
- Automatic Chunking
- Automatically splits large files into manageable chunks
- Default chunk size of 100KB
- Provides metadata for pagination
- Sheet Selection
- Read specific sheets by name
- Defaults to first sheet if not specified
- Row Pagination
- Control which rows to read with startRow and maxRows
- Get next chunk information for continuous reading
- Error Handling
- Validates file existence and format
- Provides clear error messages
- Handles malformed Excel files gracefully
Extending with SheetJS Features
The Excel Reader is built on SheetJS and can be extended with its powerful features:
Available Extensions
- Formula HandlingCopy
- Cell FormattingCopy
- Data ValidationCopy
- Sheet Features
- Merged Cells:
worksheet['!merges']
- Hidden Rows/Columns:
worksheet['!rows']
,worksheet['!cols']
- Sheet Protection:
worksheet['!protect']
- Merged Cells:
For more features and detailed documentation, visit the SheetJS Documentation.
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with SheetJS
- Part of the Model Context Protocol ecosystem
You must be authenticated.
Provides efficient handling of large Excel files through automatic chunking and pagination, using MCP to enable seamless file reading and management features such as sheet selection and error handling.