MCP Excel Installation Guide
Less than 1 minute
MCP Excel Installation Guide
1. Install Python Environment
We recommend installing Python 3.9.12 or 3.9.13 using Anaconda.
Option 1: Install Anaconda:
Installation Steps:
- Run the downloaded
Anaconda3-2022.05-Windows-x86_64.exe
. - Follow the installation wizard, keeping default settings recommended.
- Run the downloaded
Option 2: Use Python Portable Package:
- Download link: Python Portable Package python.zip
Installation Steps:
- Simply extract python.zip to use.
2. Download and Configure mcp_excel
- Download mcp_excel:
- Obtain the
mcp_excel_xxx.zip
file (Download Link) and extract it to a suitable directory.
- Obtain the
Note: The installation package already includes Excel and Python programming support.
Modify Configuration File:
- Navigate to the
\lib\X64\
folder in the extracted directory. - Rename
pyxll.cfg.txt
topyxll.cfg
.
- Navigate to the
Configure Python Path:
- Open the
pyxll.cfg
file and locate theexecutable
parameter. - Modify its value to point to your
python.exe
path. For example:executable = C:\ProgramData\Anaconda3\python.exe or executable = C:\ProgramData\python\python.exe
- Open the
3. Load pyxll in Excel
- Open Excel.
- Click File → Options → Add-ins.
- At the bottom, select Excel Add-ins from the "Manage" dropdown and click Go.
- In the new window, click Browse and locate the
pyxll.xll
file in your extractedmcp_excel
directory:- For 32-bit Excel, choose the
Win32
version. - For 64-bit Excel, choose the
X64
version.
- For 32-bit Excel, choose the
- Click OK to complete the loading.
Important Notes
- Ensure the installed Anaconda version matches your system architecture (32-bit or 64-bit).
- If loading fails, verify that the
executable
path inpyxll.cfg
is correct.