New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mastra/express

Package Overview
Dependencies
Maintainers
7
Versions
962
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
This package has malicious versions linked to the ongoing "Mastra AI framework compromise" supply chain attack.

Affected versions:

1.3.31
View campaign page

@mastra/express

Mastra Express adapter for the server

latest
Source
npmnpm
Version
1.5.24
Version published
Weekly downloads
0
Maintainers
7
Weekly downloads
 
Created
Source

@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.

FAQs

Package last updated on 28 Oct 2026

Related posts