Add Microsoft SQL Server MCP Server #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds an MCP server for Microsoft SQL Server. Executes T-SQL and inventories tables via a provided connection string. Uses stdio transport. Validates connectivity on startup and supports graceful shutdown.
Features
T-SQL execution tool with keyword guard (SELECT, WITH, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, EXEC, etc.)
SELECT/CTE returns formatted tabular output with headers and dynamic column widths
Non-SELECT returns rows affected
Per-cell fallback for spatial/UDT types when Microsoft.SqlServer.Types is unavailable, with conversion hints
Table listing across all accessible non-system databases, with optional allowlist via DatabaseList
Single connection factory with async open and health check
Console logging at Trace level and structured logs
MCP server hosting via ModelContextProtocol.Server with stdio transport
Requirements
Environment variables:
MSSQL_CONNECTION_STRING (required)
DatabaseList (optional, comma-separated)
Dependencies:
Microsoft.Data.SqlClient 6.1.1
Microsoft.Extensions.Hosting 9.0.8
ModelContextProtocol 0.3.0-preview.4
Runtime:
.NET 10 SDK
Network access to the target SQL Server
Summary
Adds an MCP server that exposes a single tool to fetch YouTube transcripts via YoutubeExplode. Uses stdio transport. Logs to console at Trace level and supports graceful shutdown.
Features
RetrieveYoutubeTranscript(url)returns the transcript for a YouTube URLen, then falls back to the first available caption trackHH:MM:SS,mmmtimingModelContextProtocol.Serverwith stdio transportCancellationTokenRequirements
Environment variables:
Dependencies:
Runtime: