nuance-mcp
A library for interfacing with transmission electron microscopes (TEM) via MCP (Model Context Protocol).
Installation
pip install nuance-mcp
Supported Hardware
The package provides adapters for multiple microscope vendors:
- JEOL: Full support for JEOL JEM-2100F, 2100, 2200FS, 3200FB, 3200, 3400FB, 3400FS, etc.
- Gatan: Bridge adapter for GMS-EELS and DM (Detector Manager) operations
- Hitachi: Adapter for Hitachi 2100, 2200, 2700, 2800, 2100II, 2200II, 2100UP, etc.
Usage Examples
JEOL Adapter
from nuance_mcp.adapters.jeol import adapter
mcp = FastMCP("JEOL Adapter")
mcp.add_resource("microscope_state", adapter.get_microscope_state())
Gatan Bridge Adapter
from nuance_mcp.adapters.gatan import adapter
mcp = FastMCP("Gatan Adapter")
mcp.add_resource("eels_data", adapter.get_eels_data())
Hitachi Adapter
from nuance_mcp.adapters.hitachi import adapter
mcp = FastMCP("Hitachi Adapter")
mcp.add_resource("stem_image", adapter.acquire_stem())
Features
- Multi-vendor support: Works with JEOL, Gatan, and Hitachi systems
- Image acquisition: TEM, STEM, 4D-STEM imaging
- Spectrum acquisition: EELS data collection
- Diffraction: SAD/HRTEM patterns
- Detector control: CCD, direct detection cameras
- Image processing: Filters, FFT analysis, spot mapping, DPC
- Stage control: X/Y positioning, tilting series
- Live processing: Job submission and monitoring
Supported Capabilities
The following capabilities are supported by JEOL adapters:
- TEM/STEM: Conventional and annular dark field imaging
- EELS/EDS: Spectroscopy data acquisition
- FFT/DPC: Fourier transform and differential phase contrast processing
- Image filters: Radial profiles, spot mapping
- Live jobs: Asynchronous data processing
Academic Citation
If you use this work or its concepts in your research, please cite our associated preprint:
Title: Schema-Bound LLM Control of Scientific Instrumentation through Model Context Protocol Skills
Authors: Roberto dos Reis, Vinayak P. Dravid
(arXiv ID and URL pending)
@misc{dosReis2026SchemaBound,
title={Schema-Bound LLM Control of Scientific Instrumentation through Model Context Protocol Skills},
author={Roberto dos Reis and Vinayak P. Dravid},
year={2026},
eprint={PENDING},
archivePrefix={arXiv}
}
Intellectual Property Disclosure
This software, schemas, and the associated methodologies for agentic control of scientific instrumentation using the Model Context Protocol (MCP) were developed in whole or in part at Northwestern University.
This work is the subject of the following Northwestern University Invention Disclosure:
- Disclosure Title: Universal Control Protocol for Scientific Instrumentation Using Extended Model Context Protocol
- Invention ID: Disc-ID-25-05-22-002
- Tech ID: 2025-136
- Inventors: Roberto Moreno Souza dos Reis, Vinayak P. Dravid
Commercialization, licensing inquiries, and related intellectual property matters should be directed to the Innovation and New Ventures Office (INVO) at Northwestern University.
License
MIT
Metadata
Release files for nuance-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nuance_mcp-0.2.0.tar.gz | 43.2 kB | Without provenance | Details for nuance_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nuance_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nuance_mcp-0.2.0-py3-none-any.whl |
Total release size: 91.1 kB
Release files / nuance_mcp-0.2.0.tar.gz
| Download URL | nuance_mcp-0.2.0.tar.gz |
|---|---|
| Size | 43.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bed537e5b4bf1fc30d4fa737f0ec404bce2175727bb90326aba0678c10c95993
|
|
BLAKE2b-256 checksum How to use checksums |
1689ada0fdfddb24d0db8f6900fff64593581e47bcb609937df9125ec9fc5261
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Release files / nuance_mcp-0.2.0-py3-none-any.whl
| Download URL | nuance_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 47.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cffd8bef453c59cdecf0b5733d7d24606544242e2791a6b02808670585b1efc
|
|
BLAKE2b-256 checksum How to use checksums |
7fa8f3019333785ed370ac90ea150a429ff84522c0edce2023fe942608b1e382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Security for nuance-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.