New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@mastra/mssql

Package Overview
Dependencies
Maintainers
7
Versions
631
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.2
View campaign page

@mastra/mssql

MSSQL provider for Mastra - db storage capabilities

Source
npmnpm
Version
1.7.4
Version published
Weekly downloads
1.8K
24.34%
Maintainers
7
Weekly downloads
 
Created
Source

@mastra/mssql

Microsoft SQL Server implementation for Mastra, providing general storage capabilities with connection pooling and transaction support.

Installation

npm install @mastra/mssql

Usage

Storage

Basic Configuration

MSSQLStore supports multiple connection methods:

1. Connection String (Recommended)

import { MSSQLStore } from '@mastra/mssql';

const store = new MSSQLStore({
  id: 'mssql-storage',
  connectionString:
    'Server=localhost,1433;Database=mastra;User Id=sa;Password=yourPassword;Encrypt=true;TrustServerCertificate=true',
});

Documentation

  • Microsoft SQL Server integration guide
  • Storage reference

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 03 Sep 2026

Related posts