SQL Server
SQL Server MCPData & Enrichment8 actions

SQL Server MCP Server

Let your AI agents run SQL Server for you, safely.

A hosted SQL Server MCP server for Claude, ChatGPT, Cursor and CLI agents. Paste one server URL into your AI client to use its 8 actions. There is nothing to install.

  • Enable or disable every action, per account. Block your agent from doing dangerous actions.

  • Ask in plain English. Pull reports, find insights and take action in SQL Server.

  • 8 read and write actions. Every SQL Server task your agent needs, from reporting to making changes.

  • Built for teams. Invite your team and share one connected account.

Works with
ChatGPTChatGPTClaudeClaudeClaude CodeClaude CodeCodexCodexGemini CLIGemini CLICursorCursorMistralMistralOpenClawOpenClawHermesHermesPerplexityGrokn8nWindsurfVS CodeZed
ChatGPT
SQL Server
ChatGPT
connected to SQL Server MCP
Online
ChatGPT
Actions

Available Actions

8 actions available to automate your SQL Server workflows.

8 actions

SQL Server
Read

Analyze Db Health

Connection state + memory clerks + log-reuse health.

SQL Server
Read

Explain Query

SHOWPLAN_XML for a query. analyze=true returns actual execution stats instead.

SQL Server
Read

Get Table Metadata

Full metadata: columns + constraints + indexes + estimated size.

SQL Server
Read

Get Table Schema

Column list for a table or view.

SQL Server
Read

Get Top Queries

Heaviest queries from sys.dm_exec_query_stats.

SQL Server
Read

List Schemas

List all schemas in the connected database.

SQL Server
Read

List Tables

List tables, views, or sequences in a schema.

SQL Server
Write

Run Query

Execute a T-SQL statement.

Compare

SQL Server MCP servers compared: hosted vs official

Microsoft publishes SQL MCP Server as part of Data API builder. It is a good fit if you want a free, self-hosted server that exposes only the tables and procedures you configure. InsightfulPipe is a hosted alternative for free-form T-SQL analysis with team controls.

HostingHosted by InsightfulPipe: paste one URLSelf-hosted, or run locally with the Data API builder CLI
Query modelFree-form T-SQL; a single SELECT runs as a read, other statements are writes limited to owners, admins and operatorsNo free-form SQL: CRUD and aggregate tools over configured tables, views and stored procedures
Schema changesDDL runs if the SQL login has permissionNo DDL
PermissionsSQL login permissions plus per-database action switches and team rolesRole-based access per entity in the Data API builder configuration
PriceIncluded in plans from $29.99/month, with a trialOpen source and free to use
Other platformsAds, analytics, e-commerce and data platforms in the same workspace, plus a CLIDatabases you configure in Data API builder
Overview

What you can do with the SQL Server MCP

The InsightfulPipe SQL Server MCP server is a hosted Model Context Protocol server that connects a Microsoft SQL Server or Azure SQL database to AI assistants such as Claude, ChatGPT, Cursor, Claude Code, Gemini CLI and Codex. You enter the host, port, database, SQL login and password, or paste a connection URI, and add one server URL to your AI client.

ClaudeSQL ServerAcme StoreRead-only
Ask about your SQL Server account…
01Explore an unfamiliar database

Explore an unfamiliar database

List schemas and tables, and read columns, constraints, indexes and sizes before writing a query.

See all SQL Server actions
ClaudeSQL ServerAcme StoreRead-only
Ask about your SQL Server account…
02Answer business questions with T-SQL

Answer business questions with T-SQL

Ask in plain English; the assistant writes the query, runs it and summarizes the result.

See all SQL Server actions
ClaudeSQL ServerAcme StoreRead-only
Ask about your SQL Server account…
03Find heavy queries

Find heavy queries

List the queries with the most total or average time from sys.dm_exec_query_stats and read their plans.

See all SQL Server actions
8
actions
one server URL
7
read actions
reports, audits, research
1
write actions
create, update, manage
Setup

How to connect the SQL Server MCP server

Add the server URL to your AI client, then sign in with your InsightfulPipe account to authorize access. The server is hosted, so there is nothing to install.

MCP server URL

https://mssql.insightfulmcp.com/

Connect SQL Server to Claude

Fastest: add InsightfulPipe from the Claude Directory

One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to SQL Server only, follow the steps below.

Open Claude Directory

Or add the SQL Server server manually:

  1. 01
    Copy the server URL:
    https://mssql.insightfulmcp.com/
  2. 02
    Open Claude connector settings (Customize > Connectors), click + and then Add custom connector.
  3. 03
    Paste the URL and click Add.
  4. 04
    Click Connect, then click Authorize access in the browser.

Start a new chat, click +, open Connectors and turn the connector on to use it.

The Free plan can add one custom connector. On Team and Enterprise plans, an Owner first adds it under Organization settings > Connectors, then each member clicks Connect in Customize > Connectors.

Watch the setup tutorial

Playbook

Prompts and skills that run on the SQL Server MCP

Copy a prompt into any connected client, or install a Claude skill that chains the actions for you.

Prompt

“List the tables in the dbo schema”

Lists tables in a schema

Prompt

“What indexes and constraints does Sales.Orders have?”

Reads table metadata

Prompt

“What were total sales by region last quarter?”

Writes and runs a SELECT query

Prompt

“Which queries use the most CPU time?”

Reads top queries from query stats

Prompt

“Show the estimated plan for this report query”

Returns SHOWPLAN_XML without running the query

Prompt

“Is transaction log reuse waiting on anything?”

Runs the database health report

Prompt

“How many customers have no orders this year?”

Runs a data quality check

HAVE QUESTIONS?

Frequently asked questions

A SQL Server MCP server connects a Microsoft SQL Server or Azure SQL database to AI assistants through the Model Context Protocol (MCP), an open standard for giving AI tools access to data and actions. Once connected, you can ask Claude, ChatGPT or Cursor to explore the schema, run T-SQL and look into performance.

Ready to connect your data?

Join hundreds of agencies and brands using InsightfulPipe to connect marketing data to AI.

Start a trial today.