MCP Server for AI Assistants
The ACTIVE-PRO MCP Server lets AI assistants — including Claude — control the ACTIVE-PRO application directly. Once connected, you can ask the AI to start captures, search decoded data, export AI Snapshots, control outputs, and run complete test sequences in plain English.
The server is a small Python script that sits between the AI assistant and the existing Automation API on port 37800. No changes to the ACTIVE-PRO application are required.
Download: active_pro_mcp.zip
The zip contains two files:
server.py— the MCP serverrequirements.txt— the single Python dependency
What Is MCP?
MCP stands for Model Context Protocol — an open standard developed by Anthropic that lets AI assistants connect to external tools and services. Think of it as a plug-in system for AI: instead of just answering questions from memory, the AI can reach out to real applications and control them.
When you set up the ACTIVE-PRO MCP server, Claude gains a set of tools it can call — start_capture, search, export_ai_snapshot, and others. When you ask Claude to "run a 10-second capture and search for any ERROR messages," it doesn't generate instructions for you to follow manually; it actually calls those tools itself and reports back what it found.
You need Claude Desktop to use MCP servers. Claude Desktop is Anthropic's native application for Windows and Mac. The browser version of Claude at claude.ai does not support local MCP servers. Claude Desktop is free to download and includes the same AI as the web version.
Overview of the Setup Process
There are five things to do, in order:
- Install Claude Desktop
- Install Python
- Install the MCP Python package
- Extract the ACTIVE-PRO MCP server files
- Tell Claude Desktop where to find the server
Total time: about 10–15 minutes.
Step 1 — Install Claude Desktop
If you already have Claude Desktop installed and signed in, skip to Step 2.
- Go to claude.com/download
- Click Download for Windows (or the macOS version if you are on a Mac)
- Run the installer and follow the prompts — accept the defaults
- Launch Claude Desktop from the Start menu
- Sign in with your Anthropic account (the same account you use at claude.ai, or create a free one if you don't have one yet)
Important: Always download Claude Desktop directly from claude.com/download. Do not use third-party download sites or the Microsoft Store version — they may not support MCP.
You can confirm Claude Desktop is working by opening it and having a quick conversation. It works exactly like the web version.
Step 2 — Install Python
The MCP server is a Python script, so Python must be installed on your PC.
- Go to python.org/downloads
- Click the large Download Python button — you want version 3.10 or above (the site shows the current latest, which is fine)
- Run the installer
- On the very first screen of the installer, check the box that says "Add Python to PATH" — this is the most common mistake people make. If you miss it, Python installs but won't be usable from the command line.
To confirm Python installed correctly: Open a Command Prompt (press the Windows key, type
cmd, press Enter) and type:python --versionYou should see a response like
Python 3.12.3. If you see an error like'python' is not recognized as an internal or external command, Python is not on your PATH — uninstall it and reinstall with the "Add Python to PATH" checkbox checked.
Step 3 — Install the MCP Package
The server needs one Python package. Install it with a single command.
- Open Command Prompt or PowerShell (press the Windows key, type
cmd, press Enter) - Type the following exactly and press Enter:
pip install mcp
You will see progress output as it downloads and installs. When it finishes and returns you to a prompt (>), it is done. The whole thing takes about 10–30 seconds depending on your connection.
If you see "pip is not recognized": Try this alternative command instead:
python -m pip install mcpIf that also fails, Python's PATH setup did not complete — reinstall Python with the "Add to PATH" box checked.
If you see a permissions error on Windows: Close the Command Prompt, then right-click Command Prompt in the Start menu and choose Run as administrator. Try the
pip install mcpcommand again.
Step 4 — Extract the MCP Server Files
- Download active_pro_mcp.zip from the link above
- Extract (unzip) the contents to a permanent location on your PC — somewhere you won't accidentally move or delete. A good path is:
C:\ActivePro\mcp\
After extracting, confirm these two files exist at that location:
C:\ActivePro\mcp\server.py
C:\ActivePro\mcp\requirements.txt
Leave these files in place permanently. Claude Desktop launches
server.pyas a background process each time it starts. If you move the file later, Claude Desktop will fail silently and the hammer icon won't appear. If you ever move the files, update the configuration path described in Step 5.
Step 5 — Configure Claude Desktop
Claude Desktop reads a JSON configuration file to find out which MCP servers to connect to. You need to add an entry for the ACTIVE-PRO server.
Finding the Configuration File
The configuration file lives at:
%APPDATA%\Claude\claude_desktop_config.json
The quickest way to get there:
- Press Windows key + R to open the Run dialog
- Type
%APPDATA%\Claudeand press Enter - Windows Explorer opens the Claude application data folder
Look for a file called claude_desktop_config.json.
If the file does not exist yet: That is normal for a fresh installation. Create it: right-click in the Explorer window, choose New > Text Document, and name it claude_desktop_config.json. Make sure the file name ends in .json and not .json.txt.
Tip: If you cannot see file extensions in Windows Explorer, click the View tab in Explorer's ribbon and check File name extensions. This lets you confirm the extension is correct.
Alternatively, you can open the config directly from within Claude Desktop: go to Settings (gear icon) > Developer > Edit Config. This opens the file in your default text editor.
Writing the Configuration
Open claude_desktop_config.json in any text editor — Notepad works fine. The complete file contents should look exactly like this:
{
"mcpServers": {
"active-pro": {
"command": "python",
"args": [
"C:\\ActivePro\\mcp\\server.py"
]
}
}
}
Critical details:
- Use double backslashes (
\\) in the Windows path. A single backslash is a special character in JSON and will cause a silent failure. SoC:\ActivePro\mcp\server.pybecomesC:\\ActivePro\\mcp\\server.pyin the config. - If you extracted
server.pyto a different folder, replace the path with your actual path — still using double backslashes. - The file must be valid JSON. The most common mistakes are: a missing comma between entries, a trailing comma after the last entry, mismatched
{and}braces, or an unclosed"quote. Any of these will cause Claude to silently ignore the file.
If you already have other MCP servers listed in the file, don't replace the whole file — add the "active-pro" entry inside the existing "mcpServers" block:
{
"mcpServers": {
"some-other-server": {
"command": "node",
"args": ["C:\\path\\to\\other\\server.js"]
},
"active-pro": {
"command": "python",
"args": [
"C:\\ActivePro\\mcp\\server.py"
]
}
}
}
Note the comma after the closing } of some-other-server — that comma is required when entries are not the last one in the block.
Save the file.
Step 6 — Restart Claude Desktop and Verify
Fully quit Claude Desktop — this is important. Simply closing the window often leaves Claude running in the background (you can see it in the system tray at the bottom-right of the taskbar). To actually quit:
- Right-click the Claude icon in the system tray and choose Quit, or
- Go to File > Exit in the Claude Desktop menu bar
Then relaunch Claude Desktop from the Start menu and open a new conversation.
Look for the hammer icon (🔨) in the bottom-left of the chat input bar. This icon means Claude has MCP tools available. If it is there, setup is complete.
Click the hammer icon to expand the tool list. You should see the ACTIVE-PRO tools — start_capture, stop_capture, search, and the rest. If they are listed, everything is working.
If the hammer icon does not appear, see the Troubleshooting section at the bottom of this page.
Step 7 — Your First Commands
Before asking Claude to control the ACTIVE-PRO:
- Make sure the ACTIVE-PRO application is open and running (version 3.8 or above)
- Connect your hardware device if you plan to take captures
Start with a simple verification:
"Are you connected to the ACTIVE-PRO? Is a device plugged in?"
Claude will call the is_connected tool and report back. If it says yes, you are ready to go. If it says no, check that the ACTIVE-PRO application is running.
Example Prompts to Try
Basic capture:
"Start a 5-second capture, wait for it to finish, then tell me how many bytes were captured."
Search for problems:
"Run a 10-second capture. When it's done, search for any message containing ERROR. If you find one, tell me the timestamp and save the capture to C:/captures/debug.active."
Stimulus and capture:
"Set A1 to a ramp waveform from 0 to 3.3V, capture for 3 seconds, then zoom to show all captured data and save a screenshot to C:/docs/ramp_test.png."
Full AI analysis loop:
"Start a 5-second capture. When it finishes, export an AI Snapshot for the full time range to C:/temp/snap.aft. Open that file and tell me what you observe about the firmware output."
Automated pass/fail test:
"Run a 10-second capture. If the word ERROR appears anywhere in the decoded output, save the capture to C:/failures/ with today's date in the filename and explain what happened. Otherwise just report pass."
Behind the scenes, Claude is calling the same Automation API commands described in the Automation API chapter — it just decides which commands to call, in what order, based on your instructions.
Multiple ACTIVE-PRO Instances
When more than one ACTIVE-PRO instance is running simultaneously, each uses a different port (37800, 37801, 37802, …). Every MCP tool accepts an optional device parameter (1–8, default 1) that selects which instance to target.
Example: "Start a capture on device 2" tells Claude to target the instance listening on port 37801.
Available Tools
The MCP server exposes the full Automation API as individual typed tools. All commands from the Automation API are available.
| Category | Tools |
|---|---|
| Connection and status | hello, is_connected, is_capturing, get_devices_attached, select_device |
| Capture control | start_capture, stop_capture, new_capture, get_capture_size, get_capture_time |
| Signal reading | get_logic, get_analog |
| Digital output | set_digital_output_mode, set_digital_pwm |
| Analog output | set_analog_output_mode, set_analog_dc_level, set_a1_waveform |
| Cursor control | set_cursor, get_cursor |
| View and navigation | zoom_all, zoom_from, search |
| Panels and display | show_tab, set_device_visibility, set_theme |
| Notes | clear_note, append_note, get_note |
| Analysis Context | set_analysis_context, get_analysis_context |
| File operations | open_capture, save_capture, save_between_cursors, open_configuration, save_configuration, export_between_cursors, export_ai_snapshot, save_screenshot |
| Application | exit_app, send_raw_command |
macOS Differences
The steps above are written for Windows. On macOS the differences are:
Python: Open Terminal and type python3 --version. If it prints 3.10 or above, you are set. Otherwise download from python.org.
Install the dependency:
pip3 install mcp
Server file location: Extract to somewhere like /Users/yourname/ActivePro/mcp/ — use forward slashes.
Config file location:
~/Library/Application Support/Claude/claude_desktop_config.json
To open that folder in Finder: press Cmd+Shift+G, paste the path above, press Enter.
Config file content on Mac — use python3 and forward slashes:
{
"mcpServers": {
"active-pro": {
"command": "python3",
"args": [
"/Users/yourname/ActivePro/mcp/server.py"
]
}
}
}
Use whichever command (python or python3) works in your Terminal.
Troubleshooting
The hammer icon does not appear after restarting Claude Desktop
Work through these checks in order:
1. Verify the JSON is valid.
Open claude_desktop_config.json in a text editor and look for: mismatched {} braces, missing commas between entries, a trailing comma after the last entry, or unmatched " quotes. A single character mistake silently prevents the config from loading.
To check automatically: copy the entire file contents and paste into an online JSON validator such as jsonlint.com. It highlights errors with the line number.
2. Verify the path to server.py is correct.
Open Command Prompt and type exactly what you have in the config (as a single command):
python C:\ActivePro\mcp\server.py
If you see No such file or directory or any path error, the path in your config is wrong. Find the actual location of server.py and update the config.
3. Verify Python is on your PATH.
Type python --version in Command Prompt. If it fails, Python is not accessible to Claude Desktop. Reinstall Python and check "Add to PATH."
4. Confirm Claude Desktop was fully quit and restarted.
On Windows, closing the window often leaves Claude in the system tray. Right-click the system tray icon and choose Quit, then relaunch.
5. Read the Claude Desktop logs.
Claude Desktop writes MCP error details to log files:
- Windows:
%APPDATA%\Claude\logs\ - macOS:
~/Library/Logs/Claude/
Open the most recent log file and search for active-pro or error. The message will usually pinpoint the problem.
"Cannot connect to ACTIVE-PRO on port 37800"
The ACTIVE-PRO application is not running, or the installed version is below 3.8. Start the ACTIVE-PRO application first, then ask Claude to try again.
Commands time out
The default timeout is 15 seconds. stop_capture on very long captures with heavy decoding can take longer — this is expected. The server waits for the ACTIVE-PRO application to finish processing before returning. If timeouts happen consistently, try shorter capture durations or reducing the number of active channels.
Claude says it doesn't have any ACTIVE-PRO tools
You are either using the browser version at claude.ai (which does not support local MCP servers), or Claude Desktop did not successfully load the config. Confirm the hammer icon appears in Claude Desktop's chat input bar, and that you started a new conversation after restarting.
pip install mcp fails
Try:
python -m pip install mcp
On macOS:
pip3 install mcp
On Windows, if you see a permissions error, open Command Prompt as Administrator (right-click it in the Start menu > Run as administrator) and try again.
Quick-Start Checklist
Use this before asking Claude to control the ACTIVE-PRO for the first time:
- Claude Desktop installed from claude.com/download and signed in
- Python 3.10 or above installed —
python --versionworks in Command Prompt pip install mcpcompleted without errorsserver.pyextracted to a permanent folder (e.g.C:\ActivePro\mcp\)claude_desktop_config.jsonsaved with correct path and double backslashes- Claude Desktop fully quit (not just window closed) and relaunched
- Hammer icon (🔨) visible in the Claude Desktop chat input bar
- ACTIVE-PRO application running (version 3.8 or above)
- Hardware device connected (if doing captures)