Lorenz Attractor - Claude-code, MATLAB MCP, and Puppeteer

Example script generated with Claude-code, MATLAB MCP, and Puppeteer
15 Downloads
Updated 9 Feb 2026

View License

By connecting Claude-code, MATLAB MCP, and Puppeteer, one can use Claude App to to browse and operate a web page, summarize results, and then generate and run a .m or .mlx script based on the content.
As a first test, I asked Claude to navigate Wikipedia search and it chose to find and summarize the page Lorenz system, a canonical dynamical system described by three linked first order ordinary differential equations with chaotic solutions. I then issued the prompt
“Take a look at the differential equations there and at the example solutions and their parameter values. Then create a MATLAB script in my folder MATLAB/ClaudePuppeteer to reproduce the illustrations and run the script.”
The following code (verbatim but saved as a Live Script) was generated and ran without a hitch.
This educational Live Script may interest students and instructors of physics and related fields. Additional Live Scripts by the author are available here.

Cite As

Duncan Carlsmith (2026). Lorenz Attractor - Claude-code, MATLAB MCP, and Puppeteer (https://www.mathworks.com/matlabcentral/fileexchange/182930-lorenz-attractor-claude-code-matlab-mcp-and-puppeteer), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.01

Added interactive_examples tag

1.0.0