openmc-validator-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openmc-validator-mcpValidate the materials for my fusion blanket model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openmc-validator-mcp
An MCP (Model Context Protocol) server that provides pre-flight validation and post-processing tools for OpenMC Monte Carlo transport simulations. Catch common authoring mistakes before the job hits the HPC queue — eliminate the costly "submit → queue → fail → fix → resubmit" loop.
Features
The server exposes 14 tools across four categories:
Validators (5) — Catch mistakes at authoring time
Tool | What it checks |
| Nuclide name typos, negative density, ao/wo fraction mixing, L2 round-trip |
| Unclosed surface references, unknown universes/cells, DAGMC path validity |
| Batch/population sanity, source definition completeness, D-T energy check |
| Energy bin ordering, mesh axis validity, score whitelist |
| End-to-end model validation; optional |
Cross-Checks (3) — Spot interface mismatches
Tool | What it checks |
| Nuclide + temperature availability in |
| Energy filter upper edge vs. source max energy (e.g. 14.1 MeV) |
| Tally cell filters vs. geometry cells, mesh extent boundaries |
Converters (2) — Bridge OpenMC to downstream codes
Tool | What it does |
| OpenMC energy tally → FISPACT-II ARBI spectrum file |
|
|
Template & Material Catalog (4) — Browse pre-built OpenMC templates
Tool | What it does |
| List all available OpenMC model templates by category |
| Retrieve a specific template with all files (geometry, materials, settings) |
| List all pre-defined material definitions across templates |
| Look up a specific material by name, get nuclide composition |
Requires OPENMC_TEMPLATES_DIR environment variable pointing to an
openmc-templates repository.
Error Code System
40+ structured error codes across 7 domains (MAT-*, SET-*, TAL-*, GEO-*,
XS-*, EFC-*, TFC-*, MOD-*, ENV-*), each with severity, trigger
description, and suggested fix. See docs/error-codes.md.
Related MCP server: obo-mcp
Installation
Requires Python ≥ 3.10.
# Basic install (L1 validation only, no OpenMC API required)
pip install openmc-validator
# Editable install for development
pip install -e ".[dev]"For L2 validation (material round-trip through OpenMC API, geometry-debug):
# OpenMC is only available via conda-forge
conda create -n openmc-env -c conda-forge python=3.11 openmc
conda activate openmc-env
pip install -e ".[dev]"Without OpenMC, L2-dependent checks degrade gracefully with ENV-W001 warnings.
Quick Start
As an MCP Server
Add to your VS Code mcp.json:
{
"servers": {
"openmc-validator": {
"command": "openmc-validator",
"args": []
}
}
}See examples/mcp-config.json for a complete
example with OPENMC_CROSS_SECTIONS env.
Programmatic Use
from openmc_validator.validators.materials import validate_materials
from openmc_validator.schemas import MaterialSpec, NuclideSpec
spec = MaterialSpec(
name="Water",
density=1.0,
density_units="g/cm3",
nuclides=[
NuclideSpec(name="H1", fraction=2.0, fraction_type="ao"),
NuclideSpec(name="O16", fraction=1.0, fraction_type="ao"),
],
)
report = validate_materials([spec])
print(report.passed, report.issues)Documentation
Document | Description |
Full API reference for all 14 tools | |
Index of all validation error/warning codes | |
Version history | |
Using the server with AI coding agents |
Project Layout
src/openmc_validator/
schemas/ # pydantic input/output models
validators/ # 5 validator modules
crosschecks/ # 3 cross-check modules
converters/ # 2 converter modules
utils/ # subprocess helpers, logging
server.py # FastMCP entry point
tests/
unit/ # pure-python unit tests (no openmc binary required)
integration/ # end-to-end MCP protocol tests
fixtures/
valid/ # positive examples
invalid/ # negative examples (expected to fail validation)Contributing
Contributions are welcome! Please see CONTRIBUTING.md for
development setup, test instructions, and pull request guidelines.
This project follows the Contributor Covenant Code of
Conduct. Security vulnerabilities should be reported as described in
SECURITY.md.
License
MIT — see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server that enables AI agents to interact with Nastran FEA models by reading, writing, and analyzing BDF and OP2 files. It provides tools for mesh quality assessment, geometric analysis, and automated report generation for structural engineering workflows.Last updated3MIT
- AlicenseAqualityDmaintenanceAn MCP server designed for managing One-By-One (OBO) review sessions through specialized tools for creating, navigating, and resolving priority-scored items. It automates session tracking and item management within standardized JSON workflows to replace manual file-write operations.Last updated9AGPL 3.0
- AlicenseBqualityBmaintenanceMCP Server for COMSOL Multiphysics simulation automation via AI agents.Last updated78MIT
- Alicense-qualityDmaintenanceA configurable MCP server that enables creating custom analysis tools through JSON configuration, with built-in frameworks for error handling, self-evaluation, security guardrails, and output artifacts.Last updated17MIT
Related MCP Connectors
An MCP server for deep research or task groups
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for fcc-ecfs
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zxkjack123/openmc-validator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server