MCP server
Where: Your own server (Docker, Kubernetes, or a Linux machine). Download the package in Context › MCP and track the server in Settings › Agents.
Who can use it: Anyone with the server's API key, or, when OAuth is on, anyone who signs in with a Microsoft account. Downloading the package needs access to the Context page (Admins, Owners, and Users). Adding the server as an MCP agent needs an Admin or Owner.
The Tursio MCP server lets people ask Tursio questions from AI assistants such as Claude, ChatGPT, and Copilot, without a new app. You run it in your environment from the package you download on the Context page. Every request needs your API key or a Microsoft sign-in, so the data stays under your control.
How it works
- You prepare the context for a database, or for All Databases, on the MCP tab of the Context page, and download the package. See MCP.
- You deploy the server from the package. The package already holds your Tursio address and API key.
- A user connects an AI client to the server's
/mcpaddress, for examplehttps://mcp.yourcompany.com/mcp. - The assistant calls the server's tools. The server sends each question to Tursio, and Tursio answers from your database.
A package for one database serves that database. A package for All Databases serves every database that global training covered, and the assistant picks the right one for each question.
Retrain before you export
If a connection was trained before MCP was added, retrain it first. Then download a new package, or the MCP server won't start. See Training.
Deploy the server
Pick the method that fits your environment. Each one starts the server from the package and listens on port 8000 by default.
| Method | Use it when | What you get from Tursio |
|---|---|---|
| Docker Compose | Most installs. | The Docker image (.tar.gz), compose.yaml, env.example, and your package. |
| Kubernetes | You run a Kubernetes cluster. | The Docker image, mcp-server.yaml, and your package. |
| Zip | You have a Linux machine without Docker. | Your package. |
The package is mcp_export.zip for one database, or catalog_mcp_<name>.zip for All Databases. The steps below call it mcp_export.zip.
The server is up when its log shows Uvicorn running on http://0.0.0.0:8000. The lines about semantic context warmup are normal: the server loads your Tursio context on startup.
To see the server's status and log in the portal, add it as an MCP agent in Settings › Agents. Each request shows in the log with its auth scheme and status. See MCP Agent.
Docker Compose setup
Access required
- SSH or terminal access to the machine where the MCP server will run
- Docker installed and running on that machine
- The
.tar.gzimage file and the package on that machine
-
Check Docker. If Docker isn't installed, get it from
https://docs.docker.com/get-docker. -
Load the image. Open a terminal in the folder with the image file and run:
You'll see output like:
The tag after the colon is your
VERSION. -
Copy the package to a permanent folder. Don't rename or unzip it. The container reads it as-is.
Linux or Mac:
Windows (PowerShell):
-
Create
.envfromenv.exampleand setVERSION,ZIP_PATH, andMCP_PORT.The API key, search URL, and context URL come from the package. Set them in
.envonly to override it. See Docker Compose environment variables below. -
Start the server and check the log.
You should see:
Extracting config from /app/server.zip... Extracted: your-dataset-name.yaml Extraction complete. Auto-detected config: your-dataset-name Starting server without OAuth on port 8000... INFO:root:Starting semantic context warmup INFO:root:Semantic context warmup completed INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)The server restarts after a reboot because of
restart: unless-stopped. Your server address ishttp://your-server-address:8000/mcp.
Docker Compose environment variables
| Variable | What it does |
|---|---|
API_KEY |
Overrides the API key in the package. Clients must send this key. |
SEARCH_URL |
Overrides the search URL, for example https://<your-tursio-hostname>/nlp-search. |
CONTEXT_URL |
Overrides the context URL, for example https://<your-tursio-hostname>/nlp-context. |
PATH_PREFIX |
Path prefix when several servers share one address. See Multiple servers with shared address. |
DISABLE_SUMMARY |
Set to true to return results without a written summary. |
For Cassandra-backed databases, the URLs end in /cassandra-search and /cassandra-context. For DynamoDB-backed databases, they end in /dynamodb-search and /dynamodb-context.
Upgrade and manage the Docker Compose server
Upgrade to a new version
docker load -i tursio-mcp-<new-version>.tar.gz
# set VERSION=<new-version> in .env
docker compose up -d
For a new package, replace the file at ZIP_PATH and run docker compose restart. The server reads the package each time it starts.
Useful commands
| Task | Command |
|---|---|
| View live logs | docker compose logs -f tursio-mcp |
| Stop the server | docker compose stop |
| Start the server | docker compose start |
| Restart the server | docker compose restart |
| Remove everything | docker compose down |
Run the image without Docker Compose
Linux or Mac:
docker run -d \
--name tursio-mcp \
--restart unless-stopped \
-p 8000:8000 \
-v /opt/tursio/mcp_export.zip:/app/server.zip:ro \
-e MCP_PORT=8000 \
tursio.azurecr.io/tursio-mcp:<version>
Windows (PowerShell):
docker run -d `
--name tursio-mcp `
--restart unless-stopped `
-p 8000:8000 `
-v C:\tursio\mcp_export.zip:/app/server.zip:ro `
-e MCP_PORT=8000 `
tursio.azurecr.io/tursio-mcp:<version>
Add -e API_KEY=..., -e SEARCH_URL=..., or -e CONTEXT_URL=... only to override the package.
Docker troubleshooting
| Problem | Fix |
|---|---|
Cannot connect to the Docker daemon |
Docker isn't running. Start Docker and try again. |
No such file or directory when loading the image |
You're in the wrong folder. Go to the folder with the image file. |
ERROR: No server.zip found at /app/server.zip |
ZIP_PATH in .env is wrong. Point it at the package. |
ERROR: No .yaml config files found in zip under configs/ |
The package is invalid. Download it again from the MCP tab. |
ERROR: Multiple configs found in zip |
Contact Tursio support. |
Refusing to start without authentication |
The package has no API key and OAuth is off. Download the package again after you create a token for the default API agent, or set API_KEY. |
port is already allocated |
Another process uses port 8000. Set MCP_PORT=8001 in .env, run docker compose up -d, and use port 8001 in your clients. |
| The server stopped after you closed the terminal | Run docker compose start. |
Kubernetes setup
Access required
- kubectl configured and pointing at the target cluster
- Docker on a machine that can reach the cluster's image registry
- Permissions to create namespaces, apply manifests, exec into pods, and tail logs
This covers only the MCP server. It assumes the Tursio portal is already deployed and reachable.
-
Load the image.
Then make it available to the cluster. Pick one:
-
Private registry (recommended for multi-node clusters):
docker tag tursio.azurecr.io/tursio-mcp:<version> \ registry.yourcompany.com/tursio-mcp:<version> docker push registry.yourcompany.com/tursio-mcp:<version>Then set the
image:field inmcp-server.yamlto your registry path. -
One node: copy the image file to the node, run
docker loadthere, and setnodeNameinmcp-server.yamlto that node's name.
-
-
Create the namespace and load the package as the Secret
tursio-mcp-zip. The package holds the API key and the Tursio URLs, so it's stored as a Secret. -
Configure the manifest. In
mcp-server.yaml, set the Deployment'simage. The ConfigMap holdsMCP_PORT. If you change the port, also changecontainerPort, the probes, and the Service ports. To override the package, addAPI_KEY,SEARCH_URL, orCONTEXT_URLto the ConfigMap or Secret. -
Apply the manifest.
kubectl apply -f mcp-server.yaml kubectl get pods -n tursio-mcp kubectl logs deployment/tursio-mcp -n tursio-mcpThe pod should show
STATUS: RunningandREADY: 1/1, and the log should showUvicorn running on http://0.0.0.0:8000. -
Get the external IP. The manifest creates a LoadBalancer Service on port 8000:
The server is at
http://<external-ip>:8000/mcp. For OAuth or web assistants, put TLS on your load balancer or reverse proxy. The server itself serves plain HTTP.
If the Teams agent or another client runs in the same cluster and OAuth is off, it can use the cluster address instead: http://tursio-mcp.tursio-mcp.svc.cluster.local:8000/mcp. This doesn't work with OAuth, which needs a public HTTPS address.
Keep secrets out of git
- Keep real values out of the copy of
mcp-server.yamlyou commit. Put the Secret in a separate file, add it to.gitignore, and apply both:kubectl apply -f mcp-server.yaml -f mcp-secrets.yaml. - On AKS, you can keep
MICROSOFT_CLIENT_SECRETin Azure Key Vault and mount it with the Secrets Store CSI Driver. Seehttps://learn.microsoft.com/en-us/azure/aks/csi-secrets-store-driver.
Upgrade the Kubernetes server
New package:
kubectl create secret generic tursio-mcp-zip \
--from-file=server.zip=mcp_export.zip \
-n tursio-mcp --dry-run=client -o yaml | kubectl apply -f -
kubectl rollout restart deployment/tursio-mcp -n tursio-mcp
New image: load and push it, update the image: tag, then:
Kubernetes troubleshooting
If the pod is in CrashLoopBackOff, read its log with kubectl logs deployment/tursio-mcp -n tursio-mcp.
| Log message | Fix |
|---|---|
ERROR: Missing required env vars: MCP_PORT |
Set MCP_PORT in the ConfigMap. |
ERROR: No server.zip found |
Create the tursio-mcp-zip Secret (step 2). |
ERROR: No .yaml config files found in zip under configs/ |
The package is invalid. Download it again from the MCP tab. |
Refusing to start without authentication |
The package has no API key and OAuth is off. Download it again after you create a token for the default API agent. |
If the pod runs but clients can't connect, check that the Service is reachable from outside the cluster, check your ingress or load balancer, and allow port 8000 in your firewall or security group.
Zip setup
Use this on Linux (Ubuntu 20.04 or later) without Docker. You need Python 3.10 or later, unzip, and sudo. Windows users without Docker should contact Tursio support.
Access required
- SSH or terminal access to the Linux machine
- sudo privileges
- Python 3.10 or later
-
Check the prerequisites.
If either is missing:
-
Unzip the package into
/opt/tursio-mcp. -
Check the configuration file in
mcp/server/configs/.The file starts with these fields, filled in from the Configure step on the MCP tab:
search_url: https://<your-tursio-hostname>/nlp-search context_url: https://<your-tursio-hostname>/nlp-context api_key: <API key>To change a value, edit the file, or set
SEARCH_URL,CONTEXT_URL, orAPI_KEYin the environment before you start the server. For Cassandra-backed databases, the URLs end in/cassandra-searchand/cassandra-context. For DynamoDB-backed databases, they end in/dynamodb-searchand/dynamodb-context. -
Start the server with
./mcp/run.sh.The first run takes a minute or two while it installs Python packages. It picks the configuration file automatically when there's only one. You'll see output like:
Log file: /opt/tursio-mcp/mcp/run.log Auto-detected config: your-dataset-name Using Python: Python 3.11.x Creating virtual environment... Installing dependencies... Dependencies installed. Starting server without OAuth... INFO:root:Starting semantic context warmup INFO:root:Semantic context warmup completed INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)Your server address is
http://your-server-address:8000/mcp. Use--port 8001to run on another port. -
Keep the server running with systemd (recommended):
sudo tee /etc/systemd/system/tursio-mcp.service > /dev/null <<EOF [Unit] Description=Tursio MCP Server After=network.target [Service] Type=simple User=$USER WorkingDirectory=/opt/tursio-mcp ExecStart=/opt/tursio-mcp/mcp/run.sh Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target EOF sudo systemctl daemon-reload sudo systemctl enable tursio-mcp sudo systemctl start tursio-mcp sudo systemctl status tursio-mcpsystemd restarts the server if it stops and starts it when the machine boots. To stop it, run
sudo systemctl stop tursio-mcp.Without systemd, run
nohup ./mcp/run.sh > /opt/tursio-mcp/startup.log 2>&1 &and note the process ID it prints. Stop the server withkill <PID>. This doesn't survive a reboot.
Zip troubleshooting
| Problem | Fix |
|---|---|
Permission denied when running ./mcp/run.sh |
Run chmod +x mcp/run.sh first. |
ERROR: api_key ... is empty or is still a placeholder |
Set api_key in the configuration file to your real key, or download the package again after you create a token for the default API agent. |
Port 8000 already in use |
Start on another port with ./mcp/run.sh --port 8001, and use that port in your clients. |
| The server stopped after you closed the terminal | Use systemd or the nohup command in step 5. |
| Something else | Read /opt/tursio-mcp/mcp/run.log and send it to Tursio support. |
Enable Microsoft sign-in (OAuth)
Skip this unless users connect from web assistants or your IT team asks for Microsoft sign-in.
- Give the server a public HTTPS address, for example
https://mcp.yourcompany.com, through your reverse proxy or load balancer. - Collect four values from your Azure app registration: the public address, the Application (client) ID, a client secret Value, and the Directory (tenant) ID.
- Add the redirect URI
https://mcp.yourcompany.com/auth/ms-callbackunder Authentication in the app registration, as a Web platform. - Turn on OAuth for your deployment method (below) and restart the server.
- Update your clients to the public address plus
/mcp, for examplehttps://mcp.yourcompany.com/mcp. Alocalhostaddress doesn't work with OAuth.
The public address must not end with a slash.
OAuth settings for each deployment method
Docker Compose: add these to .env, and uncomment the matching lines in compose.yaml. Then run docker compose up -d.
OAUTH_ENABLED=true
PUBLIC_URL=https://mcp.yourcompany.com
MICROSOFT_CLIENT_ID=paste-your-client-id-here
MICROSOFT_CLIENT_SECRET=paste-your-client-secret-here
MICROSOFT_TENANT_ID=paste-your-tenant-id-here
Kubernetes: in mcp-server.yaml, uncomment the OAuth fields. Then run kubectl apply -f mcp-server.yaml.
# ConfigMap
OAUTH_ENABLED: "true"
PUBLIC_URL: "https://mcp.yourcompany.com"
MICROSOFT_CLIENT_ID: "paste-your-client-id-here"
MICROSOFT_TENANT_ID: "paste-your-tenant-id-here"
# Secret
MICROSOFT_CLIENT_SECRET: "paste-your-client-secret-here"
Zip: start the server with the OAuth flags:
./mcp/run.sh \
--port 8000 \
--oauth \
--url https://mcp.yourcompany.com \
--client-id paste-your-client-id-here \
--client-secret "paste-your-client-secret-here" \
--tenant-id paste-your-tenant-id-here
Claude Desktop after the switch: change the url in the config file to the public address. Keep the Authorization header: the server accepts the API key with OAuth on too.
{
"mcpServers": {
"tursio": {
"url": "https://mcp.yourcompany.com/mcp",
"headers": {
"Authorization": "Bearer <API key>"
}
}
}
}
Claude.ai after the switch: open the Tursio connector, select Edit, change the Remote MCP server URL, and select Save.
Multiple servers with shared address
To run several MCP servers behind one public address, for example one per tenant or per database, give each one a path prefix. A reverse proxy routes each path to the right server without rewriting the URL.
| Server | Path prefix | Client address |
|---|---|---|
| Tenant A | /tenant-a |
https://<host>/tenant-a/mcp |
| Tenant B | /tenant-b |
https://<host>/tenant-b/mcp |
Set two values on each server:
PATH_PREFIX: the server's prefix, for example/tenant-a.PUBLIC_URL: the full public address including the prefix, for examplehttps://<host>/tenant-a.
With OAuth, also register one redirect URI per server in your Azure app registration, for example https://<host>/tenant-a/auth/ms-callback.
The /.well-known/ rules are required for OAuth
When a client like Claude connects, it fetches /.well-known/oauth-authorization-server/<path-prefix> for OAuth discovery. That path doesn't start with the prefix, so a prefix rule won't match it. Without a proxy rule that routes it to the right server, OAuth fails with a 404.
Path prefix settings for each deployment method
Deploy one mcp-server.yaml per server, each with its own namespace or deployment name. In the ConfigMap:
PATH_PREFIX: "/tenant-a"
PUBLIC_URL: "https://<host>/tenant-a"
OAUTH_ENABLED: "true"
MICROSOFT_CLIENT_ID: "paste-your-client-id-here"
MICROSOFT_TENANT_ID: "paste-your-tenant-id-here"
In the Secret:
Repeat with /tenant-b and https://<host>/tenant-b for the second server.
Run a separate compose.yaml per server in its own folder, each with its own .env and its own host port (for example 8001 and 8002):
Set PATH_PREFIX in the environment, run each server on its own port with the OAuth flags, and use the prefixed address as --url:
How PATH_PREFIX works
The proxy forwards the full path. The server reads its prefix, registers its routes under it, and handles the rest.
Request: GET /tenant-a/mcp
↓
Proxy matches /tenant-a/* → forwards to server A (no URL rewrite)
↓
Server A has PATH_PREFIX=/tenant-a → handles /mcp
↓
Response: 200 OK
Each server also answers OAuth discovery at root paths that end with its prefix, such as /.well-known/oauth-authorization-server/tenant-a. That's why the proxy needs explicit rules for those paths.
Reverse proxy rules
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tursio-mcp
namespace: tursio-mcp
annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
spec:
ingressClassName: nginx
rules:
- host: <your-host>
http:
paths:
- path: /tenant-a
pathType: Prefix
backend:
service:
name: tursio-mcp-tenant-a
port:
number: 8000
- path: /tenant-b
pathType: Prefix
backend:
service:
name: tursio-mcp-tenant-b
port:
number: 8000
Paths are forwarded as-is. For OAuth, also add rules for /.well-known/oauth-authorization-server/tenant-a and /.well-known/oauth-authorization-server/tenant-b that point to the right service.
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: tursio-mcp
namespace: tursio-mcp
spec:
entryPoints:
- websecure
routes:
- match: Host(`<your-host>`) && PathPrefix(`/tenant-a`)
kind: Rule
services:
- name: tursio-mcp-tenant-a
port: 8000
- match: Host(`<your-host>`) && PathPrefix(`/tenant-b`)
kind: Rule
services:
- name: tursio-mcp-tenant-b
port: 8000
Traefik forwards the full path. For OAuth, also add PathPrefix(`/.well-known/oauth-authorization-server/tenant-a`) and the same for tenant-b as separate routes to the right service.
Add path-based routing rules to your listener, one backend pool per server, with URL rewrite turned off.
| Paths | Backend pool |
|---|---|
/tenant-a/* |
tenant-a server |
/tenant-b/* |
tenant-b server |
/.well-known/oauth-authorization-server/tenant-a/.well-known/openid-configuration/tenant-a/.well-known/oauth-protected-resource/tenant-a |
tenant-a server |
/.well-known/oauth-authorization-server/tenant-b/.well-known/openid-configuration/tenant-b/.well-known/oauth-protected-resource/tenant-b |
tenant-b server |
In the Azure portal, open Application Gateway › Rules › Path-based routing.
Authentication
Every request to the server needs a credential. A client sends one of these:
- The API key, as the header
Authorization: Bearer <API key>. This works whether or not OAuth is on. - A Microsoft sign-in, when you turn on OAuth. The client opens a Microsoft sign-in page and then sends the token it gets back.
A request with no key or a wrong key gets 401 Unauthorized. The server refuses to start if it has no API key and OAuth is off, so it never runs open.
Upgrading from an older server
Older servers without OAuth accepted requests with no key. After you upgrade, add the Authorization: Bearer <API key> header to every client, including the Teams agent, and reconnect them. Until then, their requests get 401.
Using API key
The key comes from the package. When you download it, Tursio writes the latest unexpired token of the API agent named default into the package's configuration file, mcp/server/configs/<name>.yaml, as api_key. The server uses that key, and clients send the same key.
- To see or create the token, open Settings › Agents and find the
defaultagent under API Agent. See API Agent. - To use a different key, set
API_KEYwhen you start the server. It overrides the key in the package. Clients must then send that key. - A token expires after two years. Create a new one before then, download a new package, and give the new key to your clients.
The package and the key are credentials
Anyone with the key can query the databases the server covers. Store the zip and the key the way you store other secrets, and share them only with the people who set up clients.
Check authentication with cURL
The /health route needs the key like every other route.
# No key: 401 {"error": "unauthorized"}
curl -i http://your-server-address:8000/health
# Wrong key: 401 {"error": "invalid_token"}
curl -i -H "Authorization: Bearer wrong-key" http://your-server-address:8000/health
# Right key: 200 {"status": "ok", ...}
curl -i -H "Authorization: Bearer <API key>" http://your-server-address:8000/health
Microsoft sign-in (OAuth)
Turn on OAuth when users connect from web assistants such as Claude.ai, ChatGPT, or Copilot Studio. Each user then signs in with their Microsoft account, and Tursio matches them to the Tursio user with the same email. They get that user's access. See Access Control.
With OAuth on, the server still accepts the API key, so clients that use the key keep working. OAuth needs a public HTTPS address for the server. To set it up, see Enable Microsoft sign-in below.
Connect an AI client
You need the server's address and either the API key or OAuth turned on. The address is the server's root plus /mcp, for example http://your-server-address:8000/mcp.
- Claude Desktop, Claude Code, and Cursor run on your computer. They can send the API key as a header, and they can reach a server on your network.
- Claude.ai, ChatGPT, and Copilot Studio run on the web. They need a public HTTPS address, and they connect through Microsoft sign-in, so turn on OAuth first.
Claude
Custom connectors that use remote MCP are free on Claude.
Claude Desktop
- Open the config file. On Mac it's
~/Library/Application Support/Claude/claude_desktop_config.json. On Windows it's%APPDATA%\Claude\claude_desktop_config.json. -
Add the Tursio server with its address and the API key:
-
Save the file and restart Claude Desktop. Use
localhostin the address if the server runs on the same computer.
Claude Code
-
Add the server from a terminal:
-
Type
/mcpin Claude Code. The Tursio server shows as connected, with its tools listed. - Ask a question, for example "Use Tursio: list the datasets, then tell me how many orders shipped last month."
Claude.ai (web)
- Turn on OAuth on the server and give it a public HTTPS address.
- Open Settings › Connectors (for an organization, the admin settings) and select Add custom connector.
- Enter a Name, for example Tursio, and the Remote MCP server URL, for example
https://mcp.yourcompany.com/mcp. - Select Add, then connect. Claude asks you to sign in with Microsoft.
Add the Tursio server as a custom connector in Claude.
Cursor and other local clients
In Cursor, open Settings › MCP, add a new server with the server address, and add the header Authorization with the value Bearer <API key>. Other MCP clients that support remote servers over HTTP work the same way: the address plus the bearer header.
ChatGPT
MCP is available in developer mode (beta) for Pro, Plus, Business, Enterprise, and Education accounts on the web. Turn on OAuth on the server first.
-
Open your profile menu and select Settings.
Open Settings from the profile menu. -
Go to Apps › Advanced settings and turn on Developer mode.
Turn on Developer mode. -
Go back and select Create app.
Create app is next to Advanced settings. -
Fill in the app. Enter a Name, the MCP Server URL, and pick OAuth for Authentication. The Tursio server supports dynamic client registration, so you can leave the client ID and secret empty.
New App form. The server URL is hidden in this screenshot. -
Select Create. ChatGPT opens the Microsoft sign-in, then shows the app as connected.
The app shows as connected. The server URL is hidden in this screenshot. -
Pick the app in a chat under More, and ask your question.
Pick the app from the chat menu.
ChatGPT calls the Tursio tools and answers. The chat address is hidden in this screenshot.
Microsoft Copilot
Copilot Studio needs a Copilot Studio license. Trial and developer accounts work. Turn on OAuth on the server first.
-
Open Copilot Studio, select Agents, and select Create blank agent.
Create a blank agent. The address bar is hidden in this screenshot. -
Select Add tool under Tools when the agent is ready.
Add tool is at the bottom of the agent overview. -
Pick Model Context Protocol.
Pick Model Context Protocol. The address bar is hidden in this screenshot. -
Fill in the server. Enter a Server name, a Server description, and the Server URL. Under Authentication, pick OAuth 2.0 and Dynamic discovery.
The server URL is hidden in this screenshot. -
Select Create new connection.
Create a connection for the server. The address bar is hidden in this screenshot. -
Select Create. Copilot Studio signs in with the server.
The user name and address bar are hidden in this screenshot. -
Select Add and configure.
The connection is ready. The address bar is hidden in this screenshot. -
Type "hi" in the test chat. If Copilot asks you to set up the connection, select Open connection manager.
-
Select Connect, then Submit. A Microsoft sign-in window opens.
Submit the connection, then sign in. -
Go back to the test chat and ask a question.
The connection shows as Connected. The address bar is hidden in this screenshot.
Copilot calls the Tursio tools. The answer and address bar are hidden in this screenshot.
Microsoft Teams
The Tursio agent for Microsoft Teams is an MCP client too. It sends the MCP server's API key as a bearer token, and names the Teams user who asked in each request. With Teams access control on, Tursio then applies that user's access. To install and configure the agent, see Configure the Teams agent. To use it, see Use Tursio in Teams.
Teams agent architecture and security
How a Teams question reaches the Tursio backend.
Teams users and client. Admins control who can use the Teams agent. Users can use it in three ways:
Ways to use the Tursio app in Teams.
- Direct conversation: in Teams, open Apps › Built for your org, install Tursio, and select Open.
- Group chat, channel, or meeting: people with access can add the agent. Only they can trigger it, but everyone in the conversation sees its answers.
- Copilot: once the Tursio app is installed, it can be added as a tool in a Copilot conversation.
Teams client to Teams agent. Messages from Teams are authenticated through the Microsoft Bot Framework. The agent checks the Entra ID token on each message to confirm the user and tenant before it acts.
Teams agent to LLM service. The agent calls the LLM service over TLS with an API key. It's the same LLM service the Tursio backend uses.
Teams agent to MCP server. When the agent needs data, it calls the MCP server with the server's API key as a bearer token. The key must match the server's API_KEY.
MCP server to Tursio backend. The server sends the query to Tursio's search API with the API key. A server can only query the databases its package covers.
Audit. Teams activity is in the Teams admin center. Every request the agent sends to Tursio is logged in the Tursio portal.
Limit what Teams can see
You can expose a database connection with limited data to an MCP server. For example, users get aggregated answers in Teams and use the Tursio portal for detail. Each connection can have its own MCP server and Teams agent.
Deployment. Tursio provides a packaged Teams agent and a script that deploys it with the Microsoft 365 Agents Toolkit. You need a Microsoft 365 tenant that allows custom Teams apps, an Azure account to host the agent, and an OpenAI or Azure OpenAI API key. The script asks for these settings:
OPENAI_API_KEY: your OpenAI or Azure OpenAI API key.OPENAI_MODEL_NAME: your model or deployment name, for examplegpt-5.2.MCP_SERVER_URL: the MCP server's public HTTPS address, for examplehttps://mcp.yourcompany.com/mcp.
The script signs in to Microsoft 365 and Azure, provisions the Azure resources, deploys the agent to an Azure App Service, and submits the app to your Teams admin center. An admin then approves and publishes it. For settings, see Configure the Teams agent. If the preflight check fails, see Preflight.
MCP tools
The assistant decides which tools to call. You can change the instructions it reads for each tool in Advanced configurations on the MCP tab. See MCP.
| Tool | What it does |
|---|---|
catalog_info |
All Databases only. Lists the databases the server covers, with the alias the assistant uses for each. The assistant calls it first. |
semantic_context |
Returns the context for a database: overview, tables, columns, measures, example questions, and additional context. For All Databases, it takes the database alias. |
tursio_search |
Asks Tursio a question in plain language and returns the answer. For All Databases, it takes the database alias. |
submit_feedback |
Records a thumbs up or down on a tursio_search answer when the user says it's right or wrong. |
upload_artifact |
Saves a table as an Excel file on the Artifacts tab of the Saved page. |
The server also offers a saved artifact's Excel file as an MCP resource. See Artifacts. Masked columns stay masked.
If a question falls outside the databases the server covers, Tursio declines to answer it.
Tips and limits
- The client address always ends in
/mcp. The MCP agent in Settings › Agents uses the server's root instead, for examplehttp://host:8000. - A client that uses only the API key isn't tied to a Tursio user. For All Databases,
catalog_infothen lists every database in the package. A user who signs in with Microsoft sees only the databases they can access. - Edits to the context on the MCP tab reach the server without a new package. A new API key, host URL, or tool description needs a new package.
- Web assistants need a public HTTPS address. Local clients can use a private address or
localhost. - The server waits up to 120 seconds for each Tursio request.
- The server's log rotates at 5 MB.