SQL MCP Server Demo
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., "@SQL MCP Server DemoWhat's the average salary by department?"
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.
SQL MCP Server Demo
This repository implements a local Model Context Protocol (MCP) server for SQL Server using Microsoft Data API Builder (DAB) 2.0. It exposes read-only data access tools (describe_entities, read_records, and aggregate_records) to a local Ollama model (qwen3:8b) via a Python MCP client.
Repository Structure
A:\sql-mcp-demo
│ .env - Environment variables configuration
│ README.md - Project documentation
│ requirements.txt - Python dependencies
│ test_ollama.py - Verifies basic connection to Ollama
│ test_tools.py - Verifies tool-calling capability of qwen3:8b
│
├── .venv/ - Python virtual environment
│
├── dab/
│ └── dab-config.json - Schema-valid Data API Builder configuration
│
└── database/
└── verify.sql - Reference database queriesRelated MCP server: Python MSSQL MCP Server
Architecture
┌──────────────────────┐
│ Qwen3:8B │
│ Ollama │
└──────────┬───────────┘
│
│ Tool Calling
▼
┌──────────────────────┐
│ MCP Client │
│ Python │
└──────────┬───────────┘
│
│ MCP HTTP
▼
┌──────────────────────┐
│ Data API Builder │
│ SQL MCP Server │
│ localhost:5000/mcp │
└──────────┬───────────┘
│
│
▼
┌──────────────────────┐
│ SQL Server LocalDB │
│ │
│ EmployeeDB │
│ └── dbo.Employee │
└──────────────────────┘Running the Project
Verify Services: Ensure SQL Server LocalDB and Ollama are started:
sqllocaldb start MSSQLLocalDB ollama run qwen3:8bStart the Data API Builder MCP Server: From
a:\sql-mcp-demo:dab start --config .\dab\dab-config.jsonThe MCP endpoint is exposed at
http://localhost:5000/mcp.Verify via MCP Inspector: Launch the Inspector in proxy mode:
npx -y @modelcontextprotocol/inspector http://localhost:5000/mcpOpen the printed URL in your browser to verify that the
describe_entities,read_records, andaggregate_recordstools are active.Run Python Client Verification: Ensure your virtual environment is active:
.venv\Scripts\activateVerify Ollama connection:
python test_ollama.pyVerify tool calling:
python test_tools.py
Schema Validation Bug Fixed
A critical schema validation issue in Microsoft's Data API Builder v2.0.9 was addressed:
The standard DAB schema validator contains a bug where defining
"mcp"at the entity level fortabletypes incorrectly triggers a stored-procedure constraint (requiringsource.typeto bestored-procedure).This was resolved by removing the redundant entity-level
"mcp"block since MCP capability is already configured globally at the runtime level.
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
- AlicenseBqualityDmaintenanceEnables execution of SQL queries and management of Microsoft SQL Server database connections through the Model Context Protocol.333,26215MIT
- Flicense-qualityDmaintenanceEnables Language Models to interact with Microsoft SQL Server databases by inspecting table schemas, executing SQL queries, and reading table data through a standardized Model Context Protocol interface.27
- AlicenseAqualityCmaintenanceRead-only Model Context Protocol server for Microsoft SQL Server, enabling safe schema discovery, profiling, and querying with zero risk of data modification.141,6225MIT
- Flicense-qualityDmaintenanceA Model Context Protocol server that exposes SQL Server metadata and read-only query execution as a structured HTTP API, with safety validation and allowlist policy enforcement.1
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only access to your VortexIQ store data: audits, KPIs, alerts, Brand DNA, reports, Ask VIQ.
Read-only MCP server for Muovi, Argentina's trust-first local services marketplace (6 tools).
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/kamaleshayyala-0608/SQL-Demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server