TokenToSeaMCP Hub
中文 Console

MCP Node MSSQL

cwilby

Connects AI assistants to Microsoft SQL Server databases through node-mssql, with the connection configured by environment variables.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add node-mssql --env DB_DATABASE='<DB_DATABASE>' --env DB_HOST='<DB_HOST>' --env DB_PASSWORD='<DB_PASSWORD>' --env DB_PORT='<DB_PORT>' --env DB_USERNAME='<DB_USERNAME>' -- npx -y mcp-node-mssql

Environment variables

  • DB_DATABASE
  • DB_HOST
  • DB_PASSWORD
  • DB_PORT
  • DB_USERNAME

Replace the placeholders with your own credentials and keep them out of version control.