pycycle-mcp
pycycle-mcp is a FastMCP server for creating, running, and analyzing pyCycle/OpenMDAO engine-cycle models.
Healthcheck the server (
ping).Create and close cycle-model sessions.
Get model summaries and list/inspect input/output variables.
Set input variable values.
Fetch output values after a run.
Run cycle models and return selected outputs.
Perform parametric input sweeps.
Compute total derivatives/Jacobians.
Receive structured MCP-style error payloads.
Click on "Deploy 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., "@pycycle-mcp Run parametric sweep on turbofan cycle with BPR range 5-7."
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.
pycycle-mcp
pycycle-mcp is a lightweight Model Context Protocol server for pyCycle/OpenMDAO
engine-cycle workflows. The repository includes deterministic examples/tests so
local development and CI can validate tooling contracts without requiring a full
runtime installation of pyCycle/OpenMDAO assets.
Overview
The project currently provides:
A FastMCP-powered server with stdio and HTTP-compatible transports.
Tooling for cycle lifecycle, variable inspection/updates, execution, sweeps, and total-derivative evaluation.
Pydantic-backed validation with structured MCP-style error payloads.
Deterministic examples for repository scaffolding checks and smoke tests.
Related MCP server: Cyclops
Quickstart
Requires Python 3.12+.
python3 -m venv .venv
source .venv/bin/activate
make dev
make test
make ciStart the server over stdio:
pycycle-mcp --transport stdioInspect the non-blocking HTTP transport configuration example:
PYTHONPATH=src python3 examples/server/http_launch_config.pyExamples
The examples are deterministic and aligned with the current repository contracts.
Examples index:
examples/README.mdTool discovery:
examples/client/tool_discovery.pySession lifecycle:
examples/cpacs/session_lifecycle.pyExport snapshot:
examples/cpacs/export_snapshot.py
Docs
Docs source:
docs/index.rstPublished docs: https://cmudrc.github.io/pycycle-mcp/
Build the docs locally with:
make docsPython API Rename
The package import root is now:
pycycle_mcp(new)
Legacy pre-rename import paths and CLI aliases are intentionally removed.
Shared-CPACS Integration
This MCP includes a CPACS adapter (src/pycycle_mcp/cpacs_adapter.py) that
bridges pyCycle to the shared-CPACS aircraft analysis pipeline.
What it does
The adapter reads engine parameters and aerodynamic drag from CPACS, runs a real
OpenMDAO/pyCycle turbofan cycle analysis, and writes performance results — net
thrust, TSFC, OPR, BPR, fuel flow — into //mcpResults.
Direction | XPath |
Reads |
|
Writes |
|
Design-thrust override (engine sizing)
run_adapter(..., design_thrust_lbf=<float>) is an additive option that drives
the cycle to an explicit design net thrust Fn_DES instead of deriving it from
CPACS aero drag. This is the entry point used by the agent's engine-resizing and
cruise-match skills to iterate on engine size (the achieved Fn_DES_lbf is
echoed back in the results). The classic drag-derived path is unchanged when the
argument is omitted.
Running as part of the pipeline
python pipeline/shared_cpacs_orchestrator.py D150_v30.xml --mcps tigl su2 pycycle nsegSee cmudrc/aircraft-analysis for full pipeline documentation, versioning details, and installation instructions.
Related MCP servers
MCP | Repository |
TiGL (geometry) | |
SU2 (CFD aerodynamics) | |
NSEG (mission segments, fuel) | |
Aviary (trajectory optimisation) |
Contributing
Contribution guidelines live in CONTRIBUTING.md.
Available Tools
10 toolsclose_cycle_modelClose cycle modelADestructive
Close a pyCycle session and free resources.
Inputs: session_id (required). Returns: Response from closing a cycle model session.
compute_totalsCompute totalsCRead-only
Compute total derivatives using OpenMDAO.
Inputs: of (required), wrt (required), session_id (required), return_format. Returns: Response carrying jacobian data.
create_cycle_modelCreate cycle modelB
Instantiate a pyCycle/OpenMDAO Problem for a specified engine cycle.
Inputs: mode (required), cycle_type (required), options, cycle_module_path. Returns: Response returned after creating a cycle model.
get_cycle_summaryGet cycle summaryBRead-only
Return a succinct summary of the current cycle model.
Inputs: session_id (required). Returns: Summary of a model's configuration and key variables.
get_outputsGet outputsARead-only
Fetch values for one or more outputs after a run.
Inputs: names (required), session_id (required), allow_missing. Returns: Response carrying requested outputs.
list_variablesList variablesCRead-only
List variables in the cycle model.
Inputs: session_id (required), kind, name_filter, max_variables, +1 more. Returns: Response containing variable metadata entries.
pingPingBRead-only
Simple healthcheck for the pyCycle MCP server.
Inputs: args. Returns: Response payload for the :func:`ping` tool.
run_cycleRun cycleC
Run the cycle model and return selected outputs.
Inputs: session_id (required), use_driver, outputs_of_interest. Returns: Response from running a cycle model.
set_inputsSet inputsB
Set one or more input variables in the cycle model.
Inputs: values (required), session_id (required), allow_missing. Returns: Response from setting inputs.
sweep_inputsSweep inputsC
Perform a parametric sweep over input variables.
Inputs: sweep (required), session_id (required), use_driver, skip_on_failure, +1 more. Returns: Response for sweep execution.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: lifecycle management (create/close), configuration (set_inputs), execution (run_cycle, sweep_inputs), analysis (compute_totals, get_outputs), and introspection (get_cycle_summary, list_variables). No two tools overlap ambiguously.
All tool names follow a consistent verb_noun snake_case pattern (e.g., create_cycle_model, run_cycle, compute_totals). The naming is predictable and uniform across the entire set.
With 10 tools, the set is well-scoped for a cycle modeling server. Each tool covers a necessary operation without redundancy, fitting comfortably within the ideal 3-15 tool range.
The tool surface provides comprehensive lifecycle coverage: create, configure, run, analyze (including sweeps and derivatives), retrieve results, and close. No obvious dead ends or missing core operations for the domain.
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
Model Context Protocol server for Studex tools, notifications, and profile integrations
Read-only MCP server for repository context: context packs, graph impact analysis, and validation.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceA Model Context Protocol (MCP) server that provides JSON-RPC functionality through OpenRPC.242Apache 2.0
- -
- AlicenseNot gradedqualityBmaintenanceA generic, modular server for implementing the Model Context Protocol (MCP).65 npm45ISC
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server based on OpenRPC, providing JSON-RPC function invocation and method discovery services.21Apache 2.0