Connecting AI Tools to DataMagik
Updated Nov 9, 2026
AIConnecting AI Tools to DataMagik
Work with your Plex data, scripts, documents and apps from the AI tools your team already uses.
Besides the built-in AI Assistant, DataMagik can be reached from outside AI tools in two ways:
- The DataMagik MCP server — a Model Context Protocol server that gives an AI client the full DataMagik tool set: Plex SQL and data sources, scripts and workflows, document templates, labels, dashboards, apps, Shop Floor and more. Use it with Claude, ChatGPT and Microsoft Copilot Studio.
- The DataMagik API — call specific scripts and workflows over HTTPS with an API key. Use it when you want an agent to have a small set of tools you choose, such as in Microsoft Foundry.
Which one to use
| Tool | How it connects | Sign-in | Guide |
|---|---|---|---|
| Claude (Free, Pro, Max, Team, Enterprise) | MCP | Your DataMagik account (OAuth) | Connect Claude |
| ChatGPT (Plus, Pro, Business, Enterprise, Edu) | MCP | Your DataMagik account (OAuth) | Connect ChatGPT |
| Microsoft Copilot Studio | MCP | Your DataMagik account (OAuth) | Connect Copilot Studio |
| Microsoft Foundry | API (OpenAPI tool) | DataMagik API key | Connect Microsoft Foundry |
The MCP server address
https://mcp.data-magik.com/mcp
The server uses the Streamable HTTP transport and OAuth 2.0 with dynamic client registration, so AI clients register themselves. You never need to enter a client ID or secret: leave those fields empty.
What the AI can see and do
- It acts as you. When you connect, you sign in to DataMagik. The AI then has exactly your permissions, licenses, Plex access and SQL access roles — no more.
- It works in one company at a time. If you belong to several companies, the AI works in your active one. Ask it which company is active before it changes anything, and ask it to switch when you need another. See Switching Companies.
- Changes are recorded. Everything the AI changes is recorded under your name in the Change History & Audit Trail, just as if you had made the change on the screen.
- Your AI client asks before acting. Claude, ChatGPT and Copilot Studio can each be set to ask before a tool runs. Keep approvals on for anything that writes to Plex, sends email or prints.
Production data: Plex writes made through the AI go to whichever Plex connection the tool uses, which is often production. Test new prompts against a test connection or with read-only questions first.
Before you start
- A DataMagik account with the DataMagik - Builder or DataMagik - Viewer permission. Viewer is enough for questions and reports; Builder is needed to create or change scripts, templates and apps.
- For Microsoft Foundry, a DataMagik API key (it starts with
dcp_). See API keys. - For Team, Enterprise and Business plans of the AI tools, an administrator of that tool may need to add DataMagik first. Each guide covers both the personal and the organization setup.
Turning access off
- MCP clients: disconnect or remove the DataMagik connector in the AI tool. Making a user inactive in DataMagik also stops their connection.
- API keys: delete the key under Your Account > Security Settings. Give each agent its own key so you can turn one off without the others.
Related
- AI Assistant — the assistant built into DataMagik
- Workflows in Production — the MCP workflows tool, and using workflows as AI tools
- Script Webhooks — the API that Foundry calls