sony-pmca
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Reverse Engineering Sony Digital Cameras
Fork of ma1co/Sony-PMCA-RE that adds a local MCP server (
pmca-mcp.py) and JSON output topmca-console. See Local MCP server on Windows.
This tool interfaces with Sony digital cameras through USB. It allows to tweak settings, dump firmware, and in some cases install custom Android apps.
Installation
There are two binaries:
pmca-console: The main command line application
pmca-gui: A graphical user interface with a limited set of features
Windows
The application should work fine on Windows using the operating system's mass storage and MTP USB drivers.
Download the latest stable release of the upstream project.
macOS
macOS binaries are also distributed, but less tested than the Windows equivalents. Getting the USB drivers to work may require some fiddling. To communicate with cameras in mass storage mode, Sony's Camera Driver has to be installed. Make sure to close all applications which could access USB drivers, including Photos, Dropbox and Google Drive.
The latest release binaries can be found in the release section.
Linux
The application uses Python 3 and should work fine on Linux using libusb drivers.
Clone or download this repository, then run the following commands:
pip install -r requirements.txt # to install the dependencies
./pmca-console.py # for the command line application
./pmca-gui.py # for the gui applicationRelated MCP server: hikvision-mcp
Usage
Local MCP server on Windows
From the project folder, set up the Python environment with uv.
uv venv --python 3.12
uv pip install -r requirements-mcp.txt
.\.venv\Scripts\python.exe .\pmca-console.py info
.\.venv\Scripts\python.exe .\pmca-console.py info --jsonConnect a single powered-on camera in MTP or Mass Storage mode and close the PMCA GUI before running the diagnostic. Auto mode uses the Windows drivers and adds libusb when its backend is available. The -d native option selects the Windows drivers only.
For an MCP client configured in TOML, use the following configuration with the absolute paths of your installation.
[mcp_servers.sony-pmca]
command = 'C:\projects\sony-pmca-re\.venv\Scripts\python.exe'
args = ['C:\projects\sony-pmca-re\pmca-mcp.py']MCP tool | Parameters | Action |
| optional | Identifies the USB camera and reads its firmware version. |
|
| Validates the manifest and installs a local APK through PlayMemories. |
|
| Reads the package name, version and minimum SDK. |
| None | Fetches the community PlayMemories app catalog from GitHub. |
|
| Extracts the FDAT payload from a Sony update file already on the PC. |
|
| Asks the camera to check an update file without flashing. Returns the versions, the serial number and the file SHA-256. |
|
| Applies the Sony file to the checked camera and submits the update finalization. |
|
| Converts a file with |
|
| Lists the properties of a local |
Use absolute paths with the MCP. Operations that create a file require an output path that does not exist yet. FDAT extraction runs offline, and the MCP exposes no maintenance shell command.
Installation requires a PlayMemories-compatible camera. If it times out, check the camera's Applications menu before running the command again.
To update the firmware, use the Sony DAT file for your model. Call check_firmware with the camera in MTP or Mass Storage mode, then pass the returned serial number and SHA-256 to update_firmware. Keep the camera powered and connected, leave the MCP client open and follow the instructions on the camera screen. After it reboots, check the installed version with camera_info. The update_submitted status means PMCA sent the firmware and requested its finalization.
The console equivalents for installation and extraction are available with the following commands.
.\.venv\Scripts\python.exe .\pmca-console.py install --json -f 'C:\path\app.apk'
.\.venv\Scripts\python.exe .\pmca-console.py dump-firmware 'C:\path\firmware.dat' 'C:\path\firmware.fdat'PMCA commands
There are three main modes of interfacing with a camera:
App Installer
If the camera supports PlayMemories Camera Apps (PMCA), it is possible to install custom Android apps using this tool. A list of supported cameras can be found here.
It is recommended to install the OpenMemories: Tweak app. This app allows to tweak settings and to start telnet and adb servers to execute code on the system.
Other apps are available. A list can be found here.
There are two ways to install apps:
pmca-gui: In the Install app tab, select an app from the list and click Install selected app.
pmca-console: Run
pmca-console install -ito interactively select an app to install.
Firmware Updater
Sony cameras can boot from a secondary partition for firmware updates. Using a custom firmware file, we can execute code in this mode. Note that the camera firmware itself remains untouched. The firmware update process is only used to execute custom code.
This mode does not require any special drivers, the operating system's mass storage USB driver is enough.
A list of supported camera models can be found here. Devices based on the CXD90045 and CXD90057 architectures are not compatible, since their firmware is cryptographically signed.
There are two ways to use this:
pmca-gui: In the Tweaks tab, click Start tweaking (updater mode). You can then use the checkboxes to configure your camera's settings.
pmca-console: Run
pmca-console updatershell. There are commands available to dump the firmware, execute Linux commands, and to tweak settings.
Note that this requires rebooting the camera to firmware update mode. You will be guided through this process.
Service Mode
Sony cameras have a USB mode called senser mode, which is used during servicing for calibration and other things. It can also be used to execute code on the running system.
Service mode has the best camera compatibility, but requires custom USB drivers.
It is currently only supported in the command line application:
pmca-console: Run
pmca-console serviceshell. There are commands available to dump the firmware and to execute Linux commands.
Windows Drivers
To use service mode on Windows, custom drivers have to be installed using Zadig:
Make sure the camera is connected in mass storage mode.
In Zadig, check Options -> List All Devices, select the camera, select libusb-win32 and click Replace Driver.
Run
pmca-console serviceshellto make the camera switch modes.Once the camera has switched, repeat the above step to install a driver for service mode.
You should now be able to use
pmca-console serviceshell.
To be able to use the camera normally again, the libusb drivers have to be uninstalled in device manager.
Is it safe?
This is an experiment in a very early stage. All information has been found through reverse engineering. Even though everything worked fine for our developers, it could cause harm to your hardware. If you break your camera, you get to keep both pieces. We won't take any responsibility.
What about custom apps?
It is possible to develop custom Android apps for supported cameras. Keep in mind that they should be compatible with Android 2.3.7. Debug and release certificates are accepted by the camera. See PMCADemo for a demo app.
There are a few special Sony APIs which allow you to take advantage of the features of your camera. They can be used through OpenMemories: Framework.
Special thanks
Without the work done by the people at nex-hack, this wouldn't have been possible. Thanks a lot!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
An authenticated remote MCP server for user-owned devices and one-shot capability invocation.
Manage brainCloud apps, cloud code, hooks and servers; API lookups to help generate client code.
List, read, edit, and deploy your GenMB AI-generated apps from any MCP client.
Hosted remote MCP for protected account access, permissions, activity history and supported undo.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables control of Hikvision industrial cameras via MCP, including enumeration, image capture, parameter adjustment, and firmware upgrade.-
- AlicenseNot gradedqualityDmaintenanceEnables safely inspecting and configuring Hikvision cameras via a local MCP server, with permission enforcement, read-only diagnostics, and supervised mutation flows.2MIT
- FlicenseNot gradedqualityAmaintenanceEnables users to run security-focused operations such as network scanning, binary and symbol analysis, string extraction, live/pcap traffic inspection, and sandboxed command execution through an MCP client.-
- AlicenseNot gradedqualityBmaintenanceLets a coding agent use a paired phone as a camera over MCP, capturing JPEG stills and controlling front/back lenses, zoom, torch, focus, exposure, and white balance after a one-time secure pairing.5MIT