Practical overview
When it fits
Use Morph when you want to pair Python-based AI or data workflows with MDX app pages and connect those workflows to interface components. Its documented LangChain example shows a streaming chat pattern; the local CLI flow supports project creation and development.
Who it is for
- Developers building internal AI applications with Python workflows and MDX pages.
- Teams creating data analysis or visualization interfaces that need custom React components.
- Developers connecting AI workflows to chat or other page components.
Documented uses
- Create app pages with Markdown-based MDX and pre-made components.
- Connect Python workflows to page components using workflow aliases.
- Build a LangChain chat interface that streams model output into a Morph page.
- Combine Python and SQL in application workflows.
- Customize interfaces with CSS or React components.
Requirements & limits
The repository documents local development through the Morph CLI and describes managed cloud as available for user authentication and secure data connections. The project is Apache 2.0 licensed.
- The documented development flow uses Python workflow files and MDX pages connected by aliases.
- Pre-made components reduce the need to write HTML or CSS for basic layouts; custom CSS and React are available for more tailored UI.
- The LangChain chat example uses streaming and requires model-provider setup and credentials.
- The README documents local server startup separately from deployment and production operation.
- The project is licensed under Apache 2.0.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up a local Morph project
Install Morph, create a project, and start its local development server.
Before you start
- Python package installation with pip
- A terminal with the Morph CLI available
Steps
Install the package with the command below.
pip install morph-dataCreate a project with
morph new.Start the development server with
morph serve.Open the local address
http://localhost:8080in a browser; the README spells it aslocalhsot, so check the address if it does not open.
Expected outcome
A local Morph development server is started for the project.
Guide limitations
- These instructions cover local development, not production deployment.
- The README contains a typo in its stated local browser address.
Connect a LangChain streaming chat to an MDX page
Define a LangChain chat workflow and connect it to a Morph Chat component.
Before you start
- A Morph project with Python workflow and MDX page files
- LangChain packages used by the example, including
langchain_openaiandlangchain_core - Model provider setup and credentials for
ChatOpenAI
Steps
Create a Python function decorated with
@morph.funcand give it a workflow name such aslangchain_chat.Read the prompt from
context.vars["prompt"], stream model output, and yield each token throughstream_chat.Add a
Chatcomponent to an MDX page and set itspostDatavalue to the workflow name.Start the app with
morph serve.
Expected outcome
The documented pattern connects an MDX chat component to a Python LangChain workflow that streams model output.
Guide limitations
- The example depends on model provider configuration and credentials.
- The repository example documents the pattern; it does not specify additional provider setup steps.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- morph-data/morph · Official homepage title · retained in its source language

