SQL Server MCP stdio server

SQL Server MCP stdio server

sql-server-mcp•byranjithr99

An MCP stdio server that connects to Microsoft SQL Server and exposes tools for connecting, running queries, and discovering schema, databases, and tables.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Connects to SQL Server using server, port, user, password, and optional database and encrypt parameters.
  • •Executes arbitrary SQL and returns a recordset.
  • •Lists databases, schemas, and tables, with an optional schema filter for tables.
  • •Returns server version information via @@VERSION and allows closing the connection pool.

BEST FOR

  • •MCP clients that need to query a Microsoft SQL Server database through provided credentials.
  • •Exploring SQL Server schema, including databases, schemas, and tables.
  • •Running ad-hoc SQL statements against SQL Server from an MCP-aware tool.

ABOUT SQL-SERVER-MCP

SQL Server MCP stdio server is cataloged as an MCP server attributed to ranjithr99. An MCP stdio server that connects to Microsoft SQL Server and exposes tools for connecting, running queries, and discovering schema, databases, and tables. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for SQL Server MCP stdio server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Are SQL Server credentials stored by the server?

Credentials are provided at call time and are not stored; TLS encrypt defaults to true.

Upstream README

View this exact version on GitHub

README.md · 5521e619c329 · Fetched 2026-11-13 10:58:02 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

SQL Server MCP (Model Context Protocol) Server

A lightweight MCP stdio server that connects to Microsoft SQL Server using provided credentials and exposes tools to query and discover schema.

Features

  • connect: Connect by server, port, user, password, optional database, encrypt.
  • disconnect: Close the pool.
  • info: Return @@VERSION.
  • query: Execute arbitrary SQL and return recordset.
  • list_databases: List databases.
  • list_schemas: List schemas.
  • list_tables: List tables, with optional schema filter.

Quickstart

  • Node.js >= 18
  • Install deps and build:
    npm install
    npm run build
    
  • Run as an MCP stdio server (for MCP-compatible clients):
    npm start
    

The server starts over stdio and waits to be driven by an MCP client (e.g., Claude Desktop or other MCP-aware tooling). Use the tools in this order:

  1. connect with your SQL Server credentials
  2. info, list_*, or query

MCP Tools and Schemas

  • connect args:
    {
      "server": "host or host\\\u005Cinstance",
      "port": 1433,
      "user": "sa",
      "password": "<secret>",
      "database": "master",
      "encrypt": true
    }
    
  • query args:
    { "sql": "SELECT TOP 1 * FROM sys.databases" }
    { "sql": "SELECT * FROM INFORMATION_SCHEMA.TABLES" }
    
  • Other tools take no args or optional schema.

Security

  • Credentials are provided at call-time and are not stored. Prefer secure MCP clients and environments. TLS encrypt defaults to true.

Development

  • Scripts:
    • npm run dev to run with ts-node
    • npm run build to emit JS to dist/
    • npm start to run built server (dist/server.js)

Commits

  • chore: init project scaffolding with TypeScript, tsconfig, and deps
  • feat: implement MCP stdio server with SQL Server tools (connect, query, info, list_*)
  • docs: add execution plan outline and usage notes

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for SQL Server MCP stdio server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sql-server-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage