SQL Server MCP
SQL Server MCP: ask Claude or ChatGPT about your SQL Server tables.
SQL ServerYour data
- MammothCleans and calculates
Your AI assistantClaude, ChatGPT, VS Code
Your two options
Two ways to connect SQL Server to your AI assistant
Mammoth answers questions about SQL Server and your other data. Microsoft's own server works inside SQL Server. You can add both to the same assistant.
Mammoth
Ask about SQL Server and your other data. Mammoth calculates the answer, so the numbers are exact. Included on every plan.
“How many orders did each region place this quarter?”
Microsoft's own server
Reads and writes the records you choose to expose. Uses Data API builder's roles and permissions. You configure and host it yourself.
“Show the 10 newest rows in the Orders table.”
Option 1 · Mammoth
What you can ask about your SQL Server tables
Pick a question to see what your assistant gets back.
| Region | Orders |
|---|---|
| North America | 12,840 |
| Europe | 9,312 |
| Asia Pacific | 5,476 |
Shown on sample data. Your questions run on your own data.
More questions, by team
Pick your team, then copy a question into Claude or ChatGPT.
- TotalHow much did we invoice each month this year?
- CountHow many invoices are overdue for each customer?
- AverageWhat's the average invoice value by region?
- TopWhich customers owe the most right now?
- CountHow many orders did we ship each day last week?
- CountHow many orders are waiting in each warehouse?
- AverageWhat's the average time to ship by warehouse?
- TopWhich products had the most returns this quarter?
- CountHow many rows did each table add this week?
- CountHow many orders came from each sales channel last month?
- AverageWhat's the average order size by customer segment?
- TopWhich stores had the most orders yesterday?
Copy a question and paste it into your assistant once Mammoth is connected.
Ask about SQL Server and your other data together
Connect SQL Server and any of Mammoth’s 100+ other sources, like Salesforce, Jira or Stripe. Join them once in Mammoth, and your assistant can answer questions that cover all of them.
See all 100+ sourcesExample: SQL Server with Salesforce
How much revenue did each Salesforce account bring in last quarter?
SQL Server holds the invoices and Salesforce holds the accounts. Mammoth matches them on the account ID.
Option 1 · Mammoth
Set up SQL Server with Mammoth in three steps
- Step 1
Connect SQL Server to Mammoth
Choose SQL Server from Mammoth's connectors and sign in. Then pick the data you want.
https://mcp.mammoth.io/mcpStep 2Add Mammoth to your assistant
Paste this address into Claude, ChatGPT or VS Code, then sign in with your Mammoth account.
- Step 3
Ask your question
Ask in Claude or ChatGPT, in plain words. Mammoth works out the numbers and your assistant replies with the answer.
What Mammoth reads from SQL Server
You give Mammoth a database login. It shows every table and view that login can see, and you pick the ones to bring in.
Step-by-step setup for each assistant is in our MCP docs.
Option 2 · Microsoft's own server
How to set up the official SQL Server MCP server
Microsoft's SQL MCP Server is part of Data API builder, which is free and open source. You choose which tables, views and stored procedures it exposes, and the permissions for each. It doesn't write SQL from plain English. It works through a small, fixed set of tools.
- Step 1
Install Data API builder
SQL MCP Server comes with Data API builder 1.7 and later. It's free and open source.
dab init --database-type mssql --connection-string "<your-connection-string>"Step 2Point it at your database
Create a config with your connection string, then add the tables and views to expose.
dab startStep 3Start the server
Run it, then add its address to your assistant.
Microsoft: SQL MCP Server overview · checked 30 October 2026
Common questions about SQL Server MCP
Is there an official SQL Server MCP server?
Does my AI assistant get my database password?
How does my assistant get to my SQL Server data?
Are the numbers right?
Which AI assistants work with it?
What does it cost?
Do I paste a password or API key into the chat?
Can my assistant change things by mistake?
Ask your AI assistant about your SQL Server tables.
Start free, connect SQL Server, and add Mammoth to Claude or ChatGPT.
- ✓ 14-day Pro trial
- ✓ No credit card
- ✓ Viewers always free