MCP to query SQL Server database schema, such as tables, columns, and relationships
MCP to query SQL Server database schema, such as tables, columns, and relationships. That is what the mssqlmcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The server publishes 7 tools. What each one is for:
GetTables — Get all table names in the databaseGetColumns — Get columns (fields) for a specific tableGetRelationships — Get foreign key relationships between tablesGetStoreProcedure — Get stored procedure definitionExecuteSql — Execute a read-only SELECT queryEndpoint — MethodSecurity — The ExecuteSql tool only allows SELECT queries. The following statements are blocked:Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MsSqlMCP's toolset — GetTables, GetColumns, GetRelationships and 4 more — is a fair guide to whether it matches your workflow. It is maintained by jdlemes; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| GetTables | Get all table names in the database |
| GetColumns | Get columns (fields) for a specific table |
| GetRelationships | Get foreign key relationships between tables |
| GetStoreProcedure | Get stored procedure definition |
| ExecuteSql | Execute a read-only SELECT query |
| Endpoint | Method |
| Security | The ExecuteSql tool only allows SELECT queries. The following statements are blocked: |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.