When using SSE or Streamable HTTP transports, you must configure the following environment variables on the server:
EXCEL_FILES_PATH: The directory where the server reads and writes Excel files. Defaults to ./excel_files.- Important: When using these transports, tool
filepath values must be relative to this directory (e.g., reports/q1.xlsx). Absolute paths and directory traversal are rejected.
FASTMCP_PORT: The port the server listens on. Defaults to 8017.
Examples
Linux/macOS:
EXCEL_FILES_PATH=/path/to/excel_files FASTMCP_PORT=8007 uvx excel-mcp-server streamable-http
Windows PowerShell:
$env:EXCEL_FILES_PATH="E:\MyExcelFiles"
$env:FASTMCP_PORT="8007"
uvx excel-mcp-server streamable-http