Connect an AI Assistant to Datasentinel
From a fresh install or an upgrade to your first conversation with an AI assistant: MCP server, metrics, users, and first analyses.

AI Connector opens Datasentinel metrics to AI assistants. You ask a question in plain language, and the assistant analyzes your PostgreSQL workload, explains what it finds, and turns the evidence into recommendations.
This guide is the path from a Datasentinel platform to that first conversation. It starts on the platform host, with a fresh install or an upgrade, and ends in the assistant, with the checks and the first questions a new user should run.
How the pieces fit together
AI Connector is made of two parts, and this guide sets up both:
MCP server
On each Datasentinel platform server, behind nginx on the /mcp path
Exposes the platform metrics to assistants over the Model Context Protocol. Protected by OAuth 2.1: users sign in with their platform login.
Skill
In the assistant, as a folder of instructions
Tells the assistant which tools to call, in which order, and how to turn the results into analyses, recommendations and a communication style adapted to the reader.
Any assistant that supports MCP and Skills works: Claude (desktop app, Claude Code), OpenAI Codex and ChatGPT, GitHub Copilot, Microsoft Copilot, Cursor, Visual Studio Code, Mistral Vibe, Google Antigravity, and more. See Connect a compatible assistant for the general pattern.
Before you start
Datasentinel 2026.10 or later
The MCP server ships with this release. See Upgrade the platform for the current version and the upgrade procedure.
A licence with the AI Connector add-on
AI Connector is enabled for the whole installation by a licence token that includes the option. Without it, every sign-in from an assistant is refused. Contact Datasentinel to upgrade your licence.
A host name with a trusted certificate
Assistants verify the platform certificate, and cloud-hosted assistants (Claude, ChatGPT, Microsoft Copilot) need the platform reachable from the internet. A CA-signed certificate on nginx is highly recommended. See Self-signed and untrusted TLS certificates.
A platform user per person
Each user signs in to the assistant with their own Datasentinel login. The assistant then sees exactly what that user sees in the web interface.
An AI assistant
Installed on your workstation, or a cloud assistant such as Claude or ChatGPT, with the LLM of your choice.
Step 1: Install or upgrade the platform
Install the platform as described in Installation › Platform, then enable your licence key under License.
On a fresh install, the MCP server is provisioned automatically: the datasentinel_mcp service, its sudoers rules and the nginx routes are all in place. Nothing is created by hand. If you are also onboarding your first instances, follow Install On-Premises and Configure Agentless Connections.
Upgrade the platform to 2026.10 or later as described in Upgrade the platform, and update the licence token with the AI Connector option under License.
A platform upgraded from a release that predates the MCP server does not yet have the systemd unit, the sudoers rules and the nginx locations. Create them by following the Manual setup on upgrade steps: grant the service rights, install the datasentinel_mcp unit, add the /mcp and OAuth locations to the nginx site file, then reload nginx and start the service.
Whichever path you took, finish with the health check on the platform host:
The script connects to the internal listener and to the public URL through nginx, describes the certificate, probes every OAuth route, and ends with one verdict. OK means the MCP server is up and reachable the way an assistant reaches it. WARNING usually points at the certificate, and FAILED names the route or service to fix. The output is explained line by line in Verify the install.
Step 2: Prepare the metrics
The assistant reasons over the metrics Datasentinel collects, so the depth of the collection sets the precision of its recommendations. Two optional setup points raise it significantly:
Upgrade the local agents
If you collect metrics with local agents, upgrade them to Agent v4.0.0 or later. This release collects table and index sizes, the full list of PostgreSQL parameters, and serves the on-demand endpoints the assistant uses for real-time analyses: the current execution plan of a query, the progress of maintenance operations, and the live metrics of a table. See Upgrade the agent.
Install the internal function
The optional datasentinel_analytics function gives Datasentinel read-only access to planner statistics and execution plans, without any SELECT privilege on application tables. With it, the assistant can estimate table and index bloat, read column and extended statistics, and explain the plan the planner would choose right now.
Install it in each application database with the deploy_datasentinel_function.sh script shipped with the agent. It never returns application data, and every other metric keeps working without it.
Step 3: Prepare the users
An assistant acts with the rights of the user who signed in, so the Datasentinel account shapes what the assistant can do. Review three settings under Users and Roles before inviting users:
Profile
Selects the communication style. A Data admin gets the TECHNICAL style: PostgreSQL vocabulary and full measurements. A Developer gets the PLAIN style: plain language, the impact on the application, and an escalation for anything a DBA owns. When the profile cannot be determined, the assistant uses PLAIN.
Live360 access
Required for real-time analyses: current sessions, live blocking, running execution plans, maintenance progress. Without it, the assistant answers from the collected history only.
Role
Tag-based role-based access limits the instances the assistant can reach, exactly as it limits the dashboards.
Every user signs in from the assistant with their platform login and password, on the Datasentinel login page. Nothing is typed in the conversation, and no PostgreSQL credential is ever known to the assistant. See How authentication works for the full flow, including sign-in from a server without a browser.
For users and roles in general, see Manage Users and Role-Based Access.
Step 4: Configure the assistant
The steps are the same for every assistant: register the MCP server, sign in once, install the Skill, check. The commands below show Claude Code and the Claude desktop app; the other assistants have their own page.
Register the MCP server
Nothing else goes in the configuration: no token, no header.
Open Settings, then Connectors, choose Add custom connector, name it datasentinel-production and paste the URL https://<public-host>/mcp. The platform must be reachable from the internet with a publicly trusted certificate. See Configure the Claude desktop app for Windows.
Each assistant has its own configuration page in the AI Connector section: GitHub Copilot CLI, OpenAI Codex CLI, Mistral Vibe CLI, Google Antigravity CLI, ChatGPT desktop app, Microsoft Copilot app, Microsoft Copilot Studio, Google Gemini desktop app, Visual Studio Code and Cursor. For any other MCP-capable assistant, follow Connect a compatible assistant.
Sign in once
The first time the assistant uses the server, it asks to authenticate: Authenticate in the /mcp panel of Claude Code, Connect on the connector in the Claude apps. The Datasentinel login page opens in your browser. Sign in with your platform login and password.
The assistant keeps the session and renews it by itself. You sign in again only after ten days without using the server, or when an administrator ends the session.
On a server without a browser, such as an SSH session, run the sign-in in the mode that prints the link and paste the redirect address back:
Install the Skill
Download datasentinel-skill.zip and unzip it into the Skills folder of your assistant. For Claude Code:
You end up with ~/.claude/skills/datasentinel/SKILL.md next to the Skill's supporting files. The Skill is the same for every platform and every assistant: one copy serves all the datasentinel-* servers you register.
Check the wiring
In Claude Code, claude mcp list shows the server as connected with a tool count, and /skills lists datasentinel. Then run the Skill's own checks, in this order:
/datasentinel help
The Skill is loaded. Needs no sign-in.
/datasentinel platforms
Your datasentinel-* server is discovered.
/datasentinel status
The platform answers through the MCP server, with every service running.
/datasentinel whoami
Who the session runs as: platform, identity, privilege, real-time access, style and language.
In an assistant without slash commands, write the same commands in the prompt: datasentinel status. See the Skill commands reference and Check your session with whoami.
Step 5: Your first session
A session starts with a short banner that names the platform, the communication style (TECHNICAL or PLAIN) and the language in use. The language is the one of your first message, so write in the language you want the answers in.
Then ask real questions. A good first run moves from the inventory to one instance, then to one problem:
The assistant confirms the instance and the time window when the request leaves them open, lists its findings ordered by impact, and ends every analysis with a short menu of next steps: a deeper dive, a report, or a comparison. Each analysis area also has a named command, such as datasentinel ash or datasentinel locks, when you already know what you want.
What the assistant can analyze
Find your way in the inventory
Explain a past window
Act on the heaviest queries
Troubleshoot live
Step 6: Go further
Once the first analyses run, three additions make the assistant part of the daily routine:
Reports. Ask for a platform PDF report of one instance, or an HTML or Markdown report of the analysis on screen, to attach to a ticket or a post-mortem. See Generate and share reports.
The documentation at hand. Register the documentation MCP server, named
docs-datasentinel, next to your platform: the assistant then answers product questions from the manual while it works on your databases. See Explore the documentation from your assistant.Automation. Schedule a daily health check or a weekly digest, or let Claude render your metrics as a live dashboard. See Run recurring analyses and Build a dynamic dashboard.
Operating several platforms? Register each one with its own datasentinel- name and the assistant switches between them, or gives a global view. See Work with several platforms.
Troubleshooting
The sign-in is refused with a message about the licence
The licence has no AI Connector add-on. See Sign-in problems.
The assistant cannot connect, or rejects the certificate
The login page opens on a host name the browser cannot reach
Sign-in fails on an unknown host name: set DS_MCP_PUBLIC_URL.
The platform is on a private network
datasentinel platforms lists nothing
The server name misses the datasentinel- prefix, or the Skill is not in a folder the assistant reads. Ask the assistant to investigate its own MCP configuration.
Anything else
Every sign-in and tool call leaves a line in mcp.log on the platform host.
Where to go next
Conclusion
Enabling AI Connector is a short path: a platform at 2026.10 with the add-on in its licence, a health check that says OK, agents and the internal function for the richest metrics, and users whose profile and rights match what they should see. From there, each person registers the MCP server in their assistant, signs in once, installs the Skill, and starts asking questions in plain language. The assistant answers with findings ordered by impact and recommendations grounded in your own metrics, with the same read-only access and the same rights as the web interface.
Last updated