S
Sql Server MCP
by @DiegoIpaez
This is a PoC for a SQL Server backend using MCP.
Created 2/12/2026
Updated about 9 hours ago
README
Repository documentation and setup instructions
SQL Server MCP PoC
This is a proof of concept (PoC) for a SQL Server backend using the Model Context Protocol (MCP).
Prerequisites
- Bun installed
- Docker installed
- VS Code with the Model Context Protocol Client extension installed
Installation
-
Clone the repository:
git clone https://github.com/DiegoIpaez/sql-server-mcp cd sql-server-mcp -
Install dependencies:
bun install -
Copy and configure environment variables:
cp .env.example .env # Edit .env with your SQL Server credentials if needed -
Start SQL Server with Docker:
docker-compose up -d -
Generate Prisma client:
bun run prisma generate
Running the MCP Server
Start the server in development mode:
bun run dev
Or, build and run:
bun run build
bun run start
Using with VS Code MCP Client
- Open VS Code and install the "Model Context Protocol Client" extension.
- Connect the extension to this MCP server (usually via stdio or TCP, depending on your setup).
- Use the extension to interact with your SQL Server through the registered tools (create table, insert data, get schema, execute raw queries).
Quick Setup
Installation guide for this server
Install Package (if required)
npx @modelcontextprotocol/server-sql-server-mcp
Cursor configuration (mcp.json)
{
"mcpServers": {
"diegoipaez-sql-server-mcp": {
"command": "npx",
"args": [
"diegoipaez-sql-server-mcp"
]
}
}
}