local-workbook-mcp
Verified Safeby McFuzzySquirrel
Overview
Enable conversational AI interaction with local Excel workbooks using natural language queries, without transmitting data to external services.
Installation
dotnet run --project src/ExcelMcp.Server -- --workbook "D:/Data/sample.xlsx"Environment Variables
- LLM_BASE_URL
- LLM_MODEL_ID
- LLM_API_KEY
- EXCEL_MCP_WORKBOOK
- EXCEL_MCP_SERVER
- ASPNETCORE_ENVIRONMENT
- ASPNETCORE_URLS
Security Notes
The project is explicitly designed with 'Privacy-First Local Operation' as a core principle, ensuring Excel data never leaves the local machine. It leverages Semantic Kernel's plugin architecture, where predefined tools wrap MCP server functions, limiting arbitrary code execution by the LLM. Error messages are sanitized (e.g., 'Sheet not found' instead of revealing full path/name) to prevent sensitive data exposure, with full details logged locally for troubleshooting. Input validation is present (e.g., JSON schema for pivot analysis). There are no apparent hardcoded critical secrets in the provided code snippets (API keys are noted as 'not-used' or 'not-needed-for-local' for local LLMs). The main risks would be potential vulnerabilities in underlying libraries like ClosedXML or the local LLM itself, or subtle command injection vectors if user inputs are mishandled before reaching the MCP server, though the design aims to mitigate these through controlled tool calls and sanitization.
Similar Servers
excel-mcp-server
This server allows AI agents to manipulate Excel files (create, read, update, format, chart, pivot, validate) without requiring Microsoft Excel to be installed.
powerbi-modeling-mcp
Connects AI agents to Power BI semantic models to enable natural language interaction for building, modifying, and managing data models.
spreadsheet-mcp
Analyze and edit spreadsheet files programmatically, designed for token-efficient interaction by LLM agents, focusing on structured data access, modification, formula analysis, and optional VBA inspection.
mcp-server-excel
Automate Microsoft Excel operations through natural language commands for AI assistants or via a command-line interface, including Power Query, DAX measures, VBA macros, PivotTables, Charts, Ranges, and Worksheets.