Paraview_MCP
ParaView-MCP is an autonomous agent that integrates multimodal large language models with ParaView through the Model Context Protocol, enabling users to create and manipulate scientific visualizations using natural language and visual inputs instead of complex commands or GUI operations. The system features visual feedback capabilities that allow it to observe the viewport and iteratively refine visualizations, making advanced visualization accessible to non-experts while augmenting expert workflows with intelligent automation.
Video Demo
Click the image below to watch the video:
Installation
git clone https://github.com/LLNL/paraview_mcp.git
cd paraview_mcp
conda create -n paraview_mcp python=3.10
conda install conda-forge::paraview
conda install mcp[cli] httpx
Setup for LLM
To set up integration with claude desktop, add the following to claude_desktop_config.json
"mcpServers": {
"ParaView": {
"command": "/path/to/python",
"args": [
"/path/to/paraview_mcp/src/paraview_mcp_server.py"
]
}
}
Running
1. Start paraview server
pvserver --multi-clients
2. Connect to paraview server from paraview GUI (file -> connect)
3. Start claude desktop app
Testing
Unit and Integration Tests
ParaView-MCP includes comprehensive unit and integration tests to ensure reliability.
Prerequisites
- Install test dependencies:
pip install pytest pytest-cov
- Start ParaView server (required for integration tests):
pvserver --multi-clients --server-port=11111
- Connect ParaView GUI to the server:
- Open ParaView GUI
- File -> Connect -> Add Server
- Host: localhost, Port: 11111
- Connect
Running Tests
# Run live integration tests (requires running ParaView server)
pytest tests/test_paraview_manager_live.py -v
# Run with coverage report
pytest tests/test_paraview_manager_live.py --cov=src --cov-report=html
# Run specific test class
pytest tests/test_paraview_manager_live.py::TestParaViewLive -v
# Run specific test method
pytest tests/test_paraview_manager_live.py::TestParaViewLive::test_create_sphere -v
Test Structure
tests/test_paraview_manager_live.py: Live integration tests with ParaView- Tests real ParaView operations
- Verifies end-to-end functionality
- Requires running ParaView server connected on port 11111
Evaluation
Promptfoo Evaluation Framework
For comprehensive feature testing using LLM evaluation:
Setup
- Install promptfoo:
npm install -g promptfoo
- Start ParaView server (if not already running):
pvserver --multi-clients --server-port=11111
Then connect ParaView GUI to the server (File -> Connect -> localhost:11111)
Run Evaluation Tests
# Run evaluation with Claude
promptfoo eval --no-cache -c eval/eval_claude.yaml --verbose
# Run simple action tests
promptfoo eval --no-cache -c eval/eval_claude.yaml -t eval/simple_action_eval.yaml --verbose
# Run basic feature validation
promptfoo eval --no-cache -c eval/eval_claude.yaml -t eval/basic_features_validation.yaml --verbose
The --no-cache flag ensures fresh test runs, and --verbose provides detailed debugging output.
Data Anonymization
To prevent evaluation bias from metadata or file naming patterns, ParaView-MCP includes a tool to anonymize datasets and test files.
Usage
# Anonymize a test file and copy all referenced datasets
python eval/anonymize_dataset.py test.yaml
# Quick mode - only update YAML paths without copying data files
python eval/anonymize_dataset.py test.yaml --quick
# Custom output directory
python eval/anonymize_dataset.py test.yaml -o my_output_dir
# Preview changes without writing files
python eval/anonymize_dataset.py test.yaml --dry-run
# Save mapping for later reference
python eval/anonymize_dataset.py test.yaml -m mapping.json
What Gets Anonymized
- Dataset names:
aneurism→dataset_001 - Descriptive filenames:
aneurism_256x256x256_uint8.raw→data_001.raw - File paths in YAML: All paths updated to point to anonymized versions
- Directory structure: Organized as
output_dir/dataset_XXX/data/
Output
The tool creates:
test_anonymized.yaml- Updated test file with anonymous pathseval/anonymized_datasets/- Directory containing copied, anonymized data filesmapping.json(optional) - Record of all name mappings
Example
Original YAML:
question: "Load ../SciVisAgentBench-tasks/aneurism/data/aneurism_256x256x256_uint8.raw"
Anonymized YAML:
question: "Load eval/anonymized_datasets/dataset_001/data/data_000.raw"
Citing Paraview_MCP
S. Liu, H. Miao, and P.-T. Bremer, “Paraview-MCP: Autonomous Visualization Agents with Direct Tool Use,” in Proc. IEEE VIS 2025 Short Papers, 2025, pp. 00
@inproceedings{liu2025paraview,
title={Paraview-MCP: Autonomous Visualization Agents with Direct Tool Use},
author={Liu, S. and Miao, H. and Bremer, P.-T.},
booktitle={Proc. IEEE VIS 2025 Short Papers},
pages={00},
year={2025},
organization={IEEE}
}
Authors
Paraview_MCP was originally created by Shusen Liu (liu42@llnl.gov) and Haichao Miao (miao1@llnl.gov)
License
Paraview_MCP is distributed under the terms of the BSD-3 license.
LLNL-CODE-2007260
Metadata
Release files for paraview-mcp 0.1.1
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 |
|---|---|---|---|---|
| paraview_mcp-0.1.1.tar.gz | 45.4 kB | Without provenance | Details for paraview_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paraview_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for paraview_mcp-0.1.1-py3-none-any.whl |
Total release size: 87.0 kB
Release files / paraview_mcp-0.1.1.tar.gz
| Download URL | paraview_mcp-0.1.1.tar.gz |
|---|---|
| Size | 45.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb710ffcf55bef9dcb35989bb0243ba44252442b12dcb3cc63e292470e59636b
|
|
BLAKE2b-256 checksum How to use checksums |
b4c677aeda3157a2be5c782c434d1c3ac06b4560f15e0dabb81b7e7e340a9d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Release files / paraview_mcp-0.1.1-py3-none-any.whl
| Download URL | paraview_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 41.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d46fe88fdeb85605c6701c33700e151ae3e9ba178a5c678b6f75ee94e950c0bb
|
|
BLAKE2b-256 checksum How to use checksums |
60c6320f260dfa7758d1f94b886a71078013b4e12cbb5358b661972a2960bdb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for paraview-mcp 0.1.1
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.