MCP server for SQL Server Express LocalDB on Windows: manage instances, run T-SQL, discover DBs
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Rust MCP server for SQL Server Express LocalDB on Windows. Gives AI agents (Claude Desktop, Claude Code, and any MCP client) full control over LocalDB instances: create/manage instances, run any T-SQL script, find loose database files in project folders and attach them, introspect schema.
Status: MVP (Phase 1) functional and tested against real LocalDB β see
docs/PLANNING.mdfor the roadmap and current phase.
Existing MCP tools for SQL Server assume an already-configured remote server and require an external runtime (Python, .NET, Node). This project is:
.mdf in a project folder, attach it, run a script, no need to open SSMS.SqlLocalDB.exe on PATH).Published on the official MCP Registry as io.github.hermessilva/mssql-localdb-mcp. Install through any MCP client that supports the registry.
The vscode-extension/ directory packages the server as a VS Code extension that registers it automatically through the MCP provider API (VS Code 1.101+), with the Windows binary bundled β nothing to download or configure by hand. Build the .vsix locally with:
The extension has its own version line, independent from Cargo.toml β the crate version is what
the vX.Y.Z tag and the MCP Registry publish.
The claude-plugin/ directory in this repo is a self-contained Claude Code plugin (bundles the Windows binary directly, no separate download). Load it directly with:
Submitted to the claude-community marketplace for review β once approved, install it with claude plugin marketplace add anthropics/claude-plugins-community followed by claude plugin install mssql-localdb-mcp@claude-community.
Requires Rust and LocalDB installed.
Binary at target\release\mssql-localdb-mcp.exe.
config.tomldb_scan_folder requires at least one explicitly allowed root β without it, the tool refuses to run. Create %APPDATA%\mssql-localdb-mcp\config.toml:
Claude Desktop / Claude Code (claude_desktop_config.json or equivalent):
Claude Code via CLI:
After that, the agent has access to the localdb_*, sql_*, and db_* tools β see docs/MCP_SPEC.md for the full list.
docs/PLANNING.md β roadmap, phases, scope of each milestone.docs/ARCHITECTURE.md β modules, technical decisions, data flow.docs/MCP_SPEC.md β exact contract of every tool/resource/prompt exposed.docs/SECURITY.md β threat model and guardrails.CLAUDE.md β guide for AI agents working in this repository.CONTRIBUTING.md β how to contribute.CHANGELOG.md β change history.confirm: true) β never executes silently.db_scan_folder) only scans folders explicitly allowed in config.toml (allowlist).docs/SECURITY.md.MIT.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mssql-localdb-mcp)<a href="https://allmcps.com/mcp/mssql-localdb-mcp"><img src="https://allmcps.com/api/badge/mssql-localdb-mcp?style=directory" alt="MSSQL LocalDB MCP on AllMCPs" /></a>