@mastra/express
Express server adapter for Mastra, enabling you to run Mastra with the Express framework.
Installation
npm install @mastra/express
Usage
import express from 'express';
import { MastraServer } from '@mastra/express';
import { mastra } from './mastra';
const app = express();
const server = new MastraServer({ app, mastra });
await server.init();
app.listen(3000, () => {
console.log('Server running on http://localhost:3000');
});
Documentation
Changelog
See the package changelog for version history and release notes.
Support
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.