- Excel MCP Server
Excel MCP Server
Content
FastExcel MCP Server
Java server implementing Model Context Protocol (MCP) for Excel operations with standardized header-to-column relationships.
Features
- Read Excel file (XLSX, XLS, CSV) headers and data rows.
- Validate input paths against configured workspaces.
- Support for multiple sheets and custom header rows.
- Retrieve total number of data rows (excluding headers).
- Built-in performance caching for faster repeated access.
Note: The server will only allow operations within directories specified via env: MCP_WORKSPACES.
API
Tools
-
get_total_rows_number (with cache support)
- Get the total number of data rows (excluding the header row) in an Excel file.
- Inputs:
excelPath(string): Absolute or relative path to the Excel file.headRowNumber(integer): Row number (1-based index) where the header is located.sheetName(string, optional): Name of the sheet to read. Defaults to the first sheet if empty.
- Returns the total count of data rows as an integer.
-
get_sheet_names (with cache support)
- Retrieve all sheet names and their indices from an Excel file.
- Inputs:
excelPath(string): Absolute or relative path to the Excel file.
- Returns a list of json objects containing sheet number and sheet name.
-
read_head_spec (with cache support)
- Parse and return the header information from an Excel file.
- Inputs:
excelPath(string): Absolute or relative path to the Excel file.headRowNumber(integer): Row number (1-based index) where the header is located.sheetName(string, optional): Name of the sheet to read. Defaults to the first sheet if empty.
- Returns a sorted list of json objects containing column index and header titles.
-
read_rows_spec (with cache support)
- Parse and return the data rows from an Excel file with header association.
- Inputs:
excelPath(string): Absolute or relative path to the Excel file.headRowNumber(integer): Row number (1-based index) where the header is located.readRowNumbers(integer, optional): Number of data rows to read (excludes header). If null, reads all rows.sheetName(string, optional): Name of the sheet to read. Defaults to the first sheet if empty.
- Returns a list of json containing row data linked to their headers.
-
cache_clear
- Clear all cached Excel file data from memory.
- Returns true when cache is cleared successfully.
-
test_cache_available
- Test if the specified Excel file is available in cache.
- Inputs:
excelPath(string): Absolute or relative path to the Excel file.
- Returns a json object indicating cache status and file MD5 hash:
cached: boolean indicating if file is cachedresult: string containing file MD5 hash information
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
Java
{
"mcpServers": {
"fastexcel-mcp-server": {
"command": "java",
"args": [
"-jar",
"<YOUR_PATH>/fastexcel-mcp-server-0.0.1-SNAPSHOT.jar"
],
"env": {
"MCP_WORKSPACES": "<YOUR_MULTIPLE_WORKSPACES_SEPARATED_BY_COMMAS>",
"CACHE_INITIAL_CAPACITY": "[OPTIONAL] <MINIMUM_TOTAL_SIZE_FOR_THE_INTERNAL_DATA_STRUCTURES> <DEFAULT: 100>",
"CACHE_MAXIMUM_SIZE": "[OPTIONAL] <MAXIMUM_NUMBER_OF_ENTRIES_THE_CACHE_MAY_CONTAIN> <DEFAULT: 1000>",
"CACHE_EXPIRE_AFTER_WRITE": "[OPTIONAL] <LENGTH_OF_TIME_AFTER_AN_ENTRY_IS_CREATED_THAT_IT_SHOULD_BE_AUTOMATICALLY_REMOVED> <DEFAULT: 35s>"
}
}
}
}
Build
Required
- JDK 17+ GraalVM
- Maven 3.9.6+
Java build:
mvn clean package -DskipTests=true
License
This MCP server is licensed under the Apache License 2.0. For more details, please see the LICENSE file in the project repository.
If you need further customization or integration details, let me know!
Server Config
{
"mcpServers": {
"fastexcel-mcp-server": {
"command": "java",
"args": [
"-jar",
"<YOUR_PATH>/fastexcel-mcp-server-0.0.1-SNAPSHOT.jar"
],
"env": {
"MCP_WORKSPACES": "<YOUR_MULTIPLE_WORKSPACES_SEPARATED_BY_COMMAS>",
"CACHE_INITIAL_CAPACITY": "[OPTIONAL] <MINIMUM_TOTAL_SIZE_FOR_THE_INTERNAL_DATA_STRUCTURES> <DEFAULT: 100>",
"CACHE_MAXIMUM_SIZE": "[OPTIONAL] <MAXIMUM_NUMBER_OF_ENTRIES_THE_CACHE_MAY_CONTAIN> <DEFAULT: 1000>",
"CACHE_EXPIRE_AFTER_WRITE": "[OPTIONAL] <LENGTH_OF_TIME_AFTER_AN_ENTRY_IS_CREATED_THAT_IT_SHOULD_BE_AUTOMATICALLY_REMOVED> <DEFAULT: 35s>"
}
}
}
}Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop