mssql-localdb-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mssql-localdb-mcplist all tables in the Northwind database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mssql-localdb-mcp
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.
Why
Existing MCP tools for SQL Server assume an already-configured remote server and require an external runtime (Python, .NET, Node). This project is:
Single Rust binary, no external runtime, no Docker.
LocalDB-focused: local dev workflow — find a loose
.mdfin a project folder, attach it, run a script, no need to open SSMS.Windows-only by design, not a generic multi-database abstraction.
Related MCP server: SQL and File MCP
Requirements
Windows with SQL Server Express LocalDB installed (
SqlLocalDB.exeonPATH).A compatible MCP client (Claude Desktop, Claude Code, etc.).
Installation
Via MCP Registry
Published on the official MCP Registry as io.github.hermessilva/mssql-localdb-mcp. Install through any MCP client that supports the registry.
Via VS Code extension
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:
./build-vsix.ps1 # bumps the build segment; -Version x.y.z or -NoBump to control it
code --install-extension .\mssql-localdb-mcp-1.0.1-win32-x64.vsixThe 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.
Via Claude Code plugin
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:
claude --plugin-dir path\to\LocalDB-MCP\claude-pluginSubmitted 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.
From source
Requires Rust and LocalDB installed.
git clone https://github.com/hermessilva/LocalDB-MCP.git
cd LocalDB-MCP
cargo build --releaseBinary at target\release\mssql-localdb-mcp.exe.
Configure config.toml
db_scan_folder requires at least one explicitly allowed root — without it, the tool refuses to run. Create %APPDATA%\mssql-localdb-mcp\config.toml:
# Windows paths in TOML need single quotes (literal string) — double
# quotes interpret \U... as a unicode escape and break parsing.
scan_allowlist = ['C:\Users\YourUser\source\repos']
scan_max_depth = 6
default_query_timeout_secs = 30
default_max_rows = 1000Configure in your MCP client
Claude Desktop / Claude Code (claude_desktop_config.json or equivalent):
{
"mcpServers": {
"mssql-localdb": {
"command": "C:\\path\\to\\LocalDB-MCP\\target\\release\\mssql-localdb-mcp.exe"
}
}
}Claude Code via CLI:
claude mcp add mssql-localdb -- "C:\path\to\LocalDB-MCP\target\release\mssql-localdb-mcp.exe"After that, the agent has access to the localdb_*, sql_*, and db_* tools — see docs/MCP_SPEC.md for the full list.
Documentation
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.
Security — read before using
Windows Integrated Authentication only (no SQL Auth).
Every destructive action (DROP, TRUNCATE, DELETE, ALTER, etc.) requires explicit confirmation (
confirm: true) — never executes silently.Database discovery (
db_scan_folder) only scans folders explicitly allowed inconfig.toml(allowlist).Full detail in
docs/SECURITY.md.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI agents to interact with Microsoft SQL Server databases through secure, intelligent database operations. This server provides comprehensive CRUD capabilities, schema introspection, stored procedure execution, transaction management, and bulk opera83037MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives LLM clients access to a SQL Server database and the local filesystem, including file operations and image handling.746MIT
- FlicenseNot gradedqualityBmaintenanceA read-only MCP server for MS SQL Server, written in Python. Lets AI agents query your database safely — no writes, no stored procedures, no shell access.1
- AlicenseBqualityDmaintenanceAn MCP server that connects AI assistants to Microsoft SQL Server databases, enabling schema exploration and read-only queries safely.49234MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Cloud-hosted MCP server for durable AI memory
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hermessilva/LocalDB-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server