Is there an MCP server for SQL Server monitoring?

    Last updated · DB24 Team

    Yes. An MCP server lets an AI assistant that supports the Model Context Protocol answer questions about your SQL Server estate in plain language: which backups failed, which SQL Server instances are behind on updates, which jobs failed last night, where disk space is running out. MCP servers for SQL Server work in one of two ways. Some connect to the databases and run queries with a login on each SQL Server instance. Others answer from data a monitoring tool has already collected and never connect to SQL Server. For questions about the estate, the second kind needs no login on your SQL Server instances. DB24 2026.4 includes one, the DB24 MCP Server.

    Key takeaways

    • MCP (Model Context Protocol) is an open protocol for connecting AI applications to data sources and tools. A server offers tools, the assistant calls them, and the result goes back to the language model (MCP specification).
    • You ask in plain language, for example "Which backups failed last week, and why?", and the assistant picks the tools that answer it. Nobody has to write T-SQL or run the same query on every SQL Server instance.
    • An MCP server that queries the databases needs a login on every SQL Server instance and can read whatever that login can. One that answers from monitoring data needs no login on the SQL Server instances and sees only what the monitoring tool collected.
    • Whichever kind you choose, require read-only tools, control over which tools and SQL Server instances are reachable, keys that expire and a log of every call. The reasons are in Is it safe to connect an AI assistant to SQL Server?

    What is MCP?

    The Model Context Protocol is "an open protocol that enables seamless integration between LLM applications and external data sources and tools" (MCP specification). It has three roles. The host is the AI application, such as a chat assistant or a code editor. The client is the connector inside the host. The server provides the context and the tools.

    A server can offer resources ("Context and data, for the user or the AI model to use"), prompts ("Templated messages and workflows for users") and tools ("Functions for the AI model to execute"). Tools are model-controlled: the language model can "discover and invoke tools automatically based on its contextual understanding and the user's prompts", and the specification says there "SHOULD always be a human in the loop with the ability to deny tool invocations" (tools).

    An MCP server for SQL Server monitoring is a server whose tools answer questions about SQL Server: backups, versions, jobs, performance, storage, security.

    Which SQL Server questions can you ask in plain language?

    These are the questions people ask about a SQL Server estate every week. The third column shows where SQL Server itself keeps the answer, which is what you would otherwise query by hand on each SQL Server instance.

    Questions about a SQL Server estate, what the answer needs and where SQL Server keeps it
    Question in plain languageWhat the answer needsWhere SQL Server keeps it
    Which backups failed or are out of date?The last backup of each database and type, and the backup jobs that failedbackupset in msdb, which "Contains a row for each backup set" from "a single, successful backup operation", so a failed backup shows as a gap; failed jobs in dbo.sysjobhistory
    Which SQL Server instances run an old version or are out of support?Version and build per SQL Server instance, and Microsoft's support datesSERVERPROPERTY; the dates are in SQL Server end of support dates
    Which jobs failed last night?The outcome and message of each SQL Server Agent jobdbo.sysjobhistory in msdb, with "information about the execution of scheduled jobs by the SQL Server Agent"
    Why is the application slow this morning?What the SQL Server instance is waiting for, and since whensys.dm_os_wait_stats, whose statistics "aren't persisted after the database engine restarts"
    Which disks or files are running out of space?Free space per volume, file sizes and growth settingssys.dm_os_volume_stats, and sys.master_files for file sizes and growth
    Who got sysadmin this week?New logins and server role changessys.server_role_members and SQL Server Audit; see SQL Server security auditing

    Without MCP, each row is at least one T-SQL query, run on every SQL Server instance and read by someone who knows what the result means. Whether your backups actually work is a longer question, answered in SQL Server backup monitoring.

    What is the difference between an MCP server that queries your databases and one that answers from monitoring data?

    Two kinds of MCP server for SQL Server compared
    Queries the databasesAnswers from monitoring data
    Connection to SQL ServerA login on each SQL Server instanceNone; it reads what the monitoring tool already collected
    What it can seeWhatever the login may read, including rows in your tablesFacts about the estate: backups, versions, jobs, performance, settings and changes
    How current the answer isLive, at the moment of the questionAs current as the last collection
    HistoryWhat the SQL Server instance still holds, for example wait statistics since the last restartWhat the monitoring tool has stored, for as long as its retention allows
    SuitsQuestions about the data itself, or live diagnosis by someone who knows SQL ServerQuestions about the estate, from people who should not have logins on the SQL Server instances
    What to controlWrite permissions, broad permissions, rows passed to the model, generated SQLWhich tools and SQL Server instances are exposed, and who holds a key

    Microsoft's SQL MCP Server, part of Data API builder, is an example of the first kind built with controls. You configure which tables, views and stored procedures it exposes and the permissions on each, and it "intentionally doesn't support NL2SQL", so the model does not turn questions into its own SQL (Microsoft).

    Want to ask your SQL Server estate a question in plain language?

    In 30 minutes we show the DB24 MCP Server on a demo environment with sample data: the questions it answers, the tools an administrator controls, and the request log. No sales presentation.

    How DB24 helps

    DB24 2026.4 includes the DB24 MCP Server, which answers from the DB24 Datastore. The DB24 Runtime on each SQL Server that DB24 manages already reports what it collects there (release notes 2026.4, overview):

    • Questions across the estate: tools covering SQL Server instances, databases, backups, performance, security, alerts, change tracking, availability groups, storage, patch status, SQL Agent jobs and AiQ, so one question covers every managed SQL Server instance the key may reach.
    • Read-only, and separate from SQL Server: a separate Windows service installed by the DB24 installer, with read-only tools only. It never connects to your SQL Server instances, so a question runs no query on them.
    • Controlled in the Portal: under Settings > MCP, for administrators only, you turn the server on or off, switch each tool on or off, and include or exclude SQL Server instances one by one or by tag. Tools that expose logins and database users are off by default.
    • Keys and a log: API keys are scoped to tools and SQL Server instances, must have an expiry date and can be revoked at any time. Every tool call is logged with the key, client, tool and arguments, and kept for 60 days.
    • The assistant you already use: any MCP-capable assistant, such as Claude, Claude Desktop or VS Code Copilot, with a model in the cloud or on your own servers (DB24 MCP).
    • Your own queries, if you prefer SQL: the read-only, version-controlled integration views are the supported interface to DB24's data for reports and other systems.

    DB24 collects only metadata and performance data, never the contents of your databases.

    DB24 is priced per SQL Server instance. Contact us for a quote.

    The MCP server is switched on by an administrator, who decides which tools and SQL Server instances to open and which assistant to connect. Read more on the DB24 MCP page and in What's new in DB24 2026.4.

    Existing DB24 customers can book a walkthrough on their own environment. If you do not run DB24 yet, we show it on a demo environment. Contact us.

    When is DB24 a good fit?

    • You run many SQL Server instances and want one place to ask about backups, versions, jobs, performance and disk space across all of them.
    • Nobody owns SQL Server full time, and the questions wait for the one person who knows the T-SQL (SQL Server without a DBA).
    • You must show a supervisor what your databases look like under NIS2, and want every question an assistant asks on record (NIS2 and SQL Server).
    • You want more people on the team, such as the IT manager, to get answers without logins on the SQL Server instances.

    Something else fits better when the question is about the data inside your tables, such as sales figures or customer records. A monitoring MCP server cannot answer that; use an MCP server that connects to the database, with the controls described in Is it safe to connect an AI assistant to SQL Server?

    Frequently asked questions

    Which AI assistants work with an MCP server?

    Any assistant that supports MCP. DB24's release notes give Claude, Claude Desktop and VS Code Copilot as examples. Check that the client your organisation uses supports MCP, and that the model it uses is one you have approved.

    Do I need to know T-SQL to use it?

    No. You ask in plain language and the assistant chooses the tools. Someone still needs to decide what to do with the answer, for example whether a failed backup needs action.

    How current are the answers?

    From a monitoring MCP server, as current as the last collection. For a problem happening right now, look at the SQL Server instance directly with your usual tools as well.

    Can the DB24 MCP Server change anything?

    No. It exposes read-only tools only and never connects to your SQL Server instances. Maintenance, backups and settings are configured in the DB24 Portal.

    Which SQL Server instances can it answer about?

    The SQL Server instances DB24 manages, and of those only the ones an administrator has made visible and the API key may reach.

    How much does DB24 cost?

    DB24 is priced per SQL Server instance. Contact us for a quote.

    Want to ask your SQL Server estate a question in plain language?

    In 30 minutes we show the DB24 MCP Server on a demo environment with sample data: the questions it answers, the tools an administrator controls, and the request log. No sales presentation.

    Sources

    1. Model Context Protocol, Specification
    2. Model Context Protocol, Tools
    3. Microsoft Learn, SQL MCP Server overview
    4. Microsoft Learn, backupset
    5. Microsoft Learn, dbo.sysjobhistory
    6. Microsoft Learn, SERVERPROPERTY
    7. Microsoft Learn, sys.dm_os_wait_stats
    8. Microsoft Learn, sys.dm_os_volume_stats
    9. Microsoft Learn, sys.master_files
    10. Microsoft Learn, Server-level roles
    11. DB24 Docs, Version 2026.4
    12. DB24 Docs, Overview
    13. DB24 Docs, Integration
    14. DB24 MCP
    15. What's new in DB24 2026.4