Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

SQL Server MCP Server by Insightful Pipe

MCP Compatible Insightful Pipe License

Connect SQL Server to AI assistants: schemas, tables, T-SQL and database health for SQL Server and Azure SQL.

Part of the Insightful Pipe MCP Server Collection — use SQL Server from Claude, ChatGPT, Cursor, and other AI assistants through the Model Context Protocol (MCP).

SQL Server MCP Server

MCP Server URL

https://mssql.insightfulmcp.com/

What is SQL Server MCP?

SQL Server MCP is a remote Model Context Protocol server hosted by InsightfulPipe. Browse schemas, inspect tables, and run T-SQL against your own Microsoft SQL Server or Azure SQL instance. Read vs. read-write is decided by the GRANT/REVOKE privileges on the login this connector uses.

Installation

Claude

  1. Copy the MCP Server URL: https://mssql.insightfulmcp.com/
  2. Open Claude Connectors Settings
  3. Scroll to the bottom and click Add custom connector
  4. Paste the URL and click Add
  5. Click Connect on the connector to start authorization
  6. Click Authorize access in the browser to complete the connection

ChatGPT

Custom MCP servers are added through ChatGPT's Developer mode. Availability depends on your ChatGPT plan, and workspace admins may need to allow it.

  1. Turn on Developer mode in ChatGPT settings
  2. Create a new app for a remote MCP server and paste the URL: https://mssql.insightfulmcp.com/
  3. Authorize with your InsightfulPipe account

See OpenAI's guide: Developer mode and MCP apps in ChatGPT

Claude Code

claude mcp add --transport http mssql https://mssql.insightfulmcp.com/

Cursor

Add the server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "mssql": {
      "url": "https://mssql.insightfulmcp.com/"
    }
  }
}

Then authorize the connection when Cursor prompts you.

Available Actions

8 actions: 7 read, 1 write.

Read Actions (7)

Action Description
analyze_db_health Connection state + memory clerks + log-reuse health
explain_query SHOWPLAN_XML for a query
get_table_metadata Full metadata: columns + constraints + indexes + estimated size
get_table_schema Column list for a table or view
get_top_queries Heaviest queries from sys.dm_exec_query_stats
list_schemas List all schemas in the connected database
list_tables List tables, views, or sequences in a schema

Write Actions (1)

Action Description
run_query Execute a T-SQL statement

Control What Your AI Can Do

You decide what AI agents can do with each connected account:

  • Turn individual actions on or off for every connected account, so agents only see the actions you allow.
  • Connect as Read-only or Read & Write. A read-only connection can only enable read actions.
  • Destructive actions stay off by default. Actions such as deletes are disabled until an admin enables them.
  • Team access per account. Restricted team members only use the accounts they are granted, with the read actions enabled on them.

Usage Examples

"List the tables in the dbo schema"
"Show the schema of the Orders table"
"Check my database health"

Pricing

The SQL Server MCP server is included in every InsightfulPipe plan, together with all other MCP servers and the CLI. Plans start at $29.99/month with a 7-day free trial. See insightfulpipe.com/pricing for current plans.

Explore More MCP Servers by Insightful Pipe

Visit insightfulpipe.com/mcp-servers to discover our full collection of MCP servers.

View All MCP Servers →

Resources

Support


Insightful Pipe — AI-powered marketing analytics through MCP servers. Explore all integrations →

License

MIT License - see LICENSE for details.

About

SQL Server MCP server: connect SQL Server to Claude, ChatGPT, Cursor and Claude Code. Hosted remote MCP for schemas, tables, T-SQL and database health for SQL Server and Azure SQL.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors