Fabric Rti Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Fabric Rti Mcp (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
This server enables AI agents to interact with Fabric RTI services by providing tools through the MCP interface, allowing for seamless data querying and analysis capabilities.
A Model Context Protocol (MCP) server for Microsoft Fabric Lakehouses. Query and analyze your Lakehouse data using natural language through AI agents.
[!NOTE]
[!NOTE] > This project is in Public Preview and implementation may significantly change prior to General Availability.
This project is in Public Preview and may change before General Availability.
# 1. Install Azure CLI and login- **🔧 Development**: Full setup for contributing and debugging - [See debugging guide](#-debugging-the-mcp-server-locally)
az login
### 🔍 How It Works
# 2. Install the package
pip install fabric-lakehouse-mcpThe Fabric RTI MCP Server acts as a bridge between AI agents and Microsoft Fabric RTI services:
# 3. Configure in VS Code- 🔄 **MCP Protocol**: Uses the Model Context Protocol to expose Fabric RTI capabilities as tools
# Add the configuration below to your MCP settings- 🏗️ **Natural Language to KQL**: AI agents can translate natural language requests into KQL queries
Configuration (add to VS Code MCP settings):
{**Eventhouse (Kusto)**: Execute KQL queries against Microsoft Fabric RTI [Eventhouse](https://aka.ms/eventhouse) and [Azure Data Explorer (ADX)](https://aka.ms/adx).
"mcpServers": {
"fabric-lakehouse": {**Eventstreams**: Manage Microsoft Fabric [Eventstreams](https://learn.microsoft.com/en-us/fabric/real-time-intelligence/eventstream/eventstream-introduction) for real-time data processing:
"command": "fabric-lakehouse",- List Eventstreams in workspaces
"args": [],- Get Eventstream details and definitions
"env": {
"FABRIC_SQL_ENDPOINT": "your-workspace.datawarehouse.fabric.microsoft.com",## 🚧 Coming soon
"FABRIC_LAKEHOUSE_NAME": "YourLakehouseName",- **Activator**
"UV_LINK_MODE": "copy"- **Other RTI items**
}
}### 🔍 Example Prompts
}
}**Eventhouse Analytics:**
See QUICKSTART_GUIDE.md for detailed setup instructions and mcp.json for a template configuration.- "What can you tell me about StormEvents data?"
SQL Lakehouse Tools:SQL Lakehouse Analytics:
sql_list_lakehouse_tables - List all tables in your Lakehouse- "What tables are in my SQL lakehouse?"sql_get_table_schema - Get detailed schema for any table- "Show me the schema of table 'MyTable' in the lakehouse"Query History Tools:
query_history_list - View recent SQL queriesEventstream Management:query_history_get - Get details about specific query execution- "List all Eventstreams in my workspace"#### Eventhouse (Kusto) - 12 Tools:
| Variable | Description | Example |- `kusto_command` - Execute Kusto management commands (destructive operations)
|----------|-------------|---------|- `kusto_list_databases` - List all databases in the Kusto cluster
| FABRIC_SQL_ENDPOINT | Your Fabric SQL endpoint (without https://) | workspace.datawarehouse.fabric.microsoft.com |- `kusto_list_tables` - List all tables in a specified database
| FABRIC_LAKEHOUSE_NAME | Name of your lakehouse (case-sensitive) | MyLakehouse |- `kusto_get_entities_schema` - Get schema information for all entities (tables, materialized views, functions) in a database
| Variable | Description | Default |- `kusto_sample_function_data` - Retrieve random sample records from the result of a function call
|----------|-------------|---------|- `kusto_ingest_inline_into_table` - Ingest inline CSV data into a specified table
| FABRIC_API_BASE | Fabric API base URL | https://api.fabric.microsoft.com/v1 |- `kusto_get_shots` - Retrieve semantically similar query examples from a shots table using AI embeddings
| FABRIC_BASE_URL | Fabric web base URL | https://fabric.microsoft.com |
| UV_LINK_MODE | Set to copy to avoid OneDrive hardlink issues | - |#### Eventstreams - 6 Tools:
Uses Azure Identity DefaultAzureCredential for secure authentication.
Recommended: Azure CLI
# Windows * [💫 Stable release](https://code.visualstudio.com/download)
winget install Microsoft.AzureCLI * [🔮 Insiders release](https://code.visualstudio.com/insiders)
2. Install the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) and [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extensions
# macOS3. Install `uv`
brew install azure-cli```ps
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Linux```
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bashor, check here for [other install options](https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_2)
# Authenticate4. Open VS Code in an empty folder
az login
The MCP server will automatically use your cached Azure CLI credentials.### 🔧 Install from GitHub (Recommended for Development)
git clone https://github.com/melisa-l/fabric-rti-mcp.git - Python 3.10+ installed and added to PATH
cd fabric-rti-mcp - `uv` package manager installed (see installation steps above)
pip install -e ".[dev]" - VS Code with GitHub Copilot extensions
git clone https://github.com/melisa-l/fabric-rti-mcp.git
pip install -e ".[dev]" cd fabric-rti-mcpMCP: List Servers in Command Palette3. Install Dependenciesfabric-lakehouse → Show Output ```bashPython: Attach configuration with that PID ```Or using uv:
uv pip install -e .
settings.json or mcp.json file:Ctrl+Shift+P and search for "Preferences: Open User Settings (JSON)"--directory path to match where you cloned the repository--directory path to match where you cloned the repository
## 🛡️ Security {
"mcp": {
Your credentials are handled securely through the official [Azure Identity SDK](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md). We never store or manage tokens directly. "servers": {
"fabric-rti-mcp": {
## 👥 Contributing "command": "uv",
"args": [
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA). For details, visit https://cla.opensource.microsoft.com. "--directory",
"C:/Users/YourUsername/fabric-rti-mcp/",
## 🤝 Code of Conduct "run",
"-m",
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]). "fabric_rti_mcp.server"
],
## ™️ Trademarks "env": {
"FABRIC_SQL_ENDPOINT": "your-workspace-name.datawarehouse.fabric.microsoft.com",
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). "FABRIC_LAKEHOUSE_NAME": "YourLakehouseName"
}
}
}
}
}your-workspace-name.datawarehouse.fabric.microsoft.com#### Verify Installation:
The Fabric RTI MCP Server is also available on PyPI:
#### From VS Code
Ctrl+Shift+P) and run MCP: Add Servermicrosoft-fabric-rti-mcpThe process will add these settings to your settings.json:
Assuming you have python installed and the repo cloned:
pip install -e ".[dev]"Follow the Manual Install instructions.
Use the Python: Attach configuration in your launch.json to attach to the running server. Once VS Code picks up the server and starts it, navigate to its output:
MCP: List Serversfabric-rti-mcp and select Show OutputPython: Attach configuration in your launch.json file, and paste the PID of the server in the promptThe MCP server can be configured using the following environment variables:
| Variable | Description | Example |
|---|---|---|
FABRIC_SQL_ENDPOINT | Your Fabric SQL endpoint (without https://) | workspace.datawarehouse.fabric.microsoft.com |
FABRIC_LAKEHOUSE_NAME | Name of your lakehouse database (case-sensitive) | MyLakehouse |
| Variable | Service | Description | Default | Example |
|---|---|---|---|---|
FABRIC_API_BASE | Global | Base URL for Microsoft Fabric API | https://api.fabric.microsoft.com/v1 | https://api.fabric.microsoft.com/v1 |
FABRIC_BASE_URL | Global | Base URL for Microsoft Fabric web interface | https://fabric.microsoft.com | https://fabric.microsoft.com |
The AZ_OPENAI_EMBEDDING_ENDPOINT is used by the semantic search functionality (e.g., kusto_get_shots function) to find similar query examples.
Format Requirements:
https://{your-openai-resource}.openai.azure.com/openai/deployments/{deployment-name}/embeddings?api-version={api-version};impersonateComponents:
{your-openai-resource}: Your Azure OpenAI resource name{deployment-name}: Your text embedding deployment name (e.g., text-embedding-ada-002){api-version}: API version (e.g., 2024-10-21, 2023-05-15);impersonate: Authentication method (you might use managed identity)Authentication Requirements:
The kusto_get_shots tool retrieves shots that are most similar to your prompt from the shots table. This function requires configuration of:
The MCP Server uses Azure Identity via DefaultAzureCredential for secure, seamless authentication with automatic token caching to avoid repeated authentication prompts.
EnvironmentCredential) - Perfect for CI/CD pipelinesManagedIdentityCredential) - For Azure-hosted deploymentsVisualStudioCodeCredential) - Uses your VS Code credentialsAzureCliCredential) - ⭐ RECOMMENDED - Uses your existing Azure CLI loginAzurePowerShellCredential) - Uses your Az PowerShell loginAzureDeveloperCliCredential) - Uses your azd loginInteractiveBrowserCredential) - Falls back to browser-based login if neededThe Azure CLI method provides the best user experience with automatic token caching:
#### Install Azure CLI:
Windows:
winget install Microsoft.AzureCLIOr download from: https://aka.ms/installazurecliwindows
Mac:
brew install azure-cliLinux:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash#### Authenticate Once:
az loginThat's it! The MCP server will automatically use these cached credentials for all queries. You'll never be prompted to authenticate again (unless the token expires, which is automatically refreshed).
If you don't install Azure CLI, the server will fall back to interactive browser authentication:
For the smoothest experience, we strongly recommend using Azure CLI!
When the MCP server is running locally to the agent in HTTP mode or is deployed to Azure, the following environment variables are used to define and enable HTTP mode. You can find practical examples of this setup in the tests/live/test_kusto_tools_live_http.py file:
| Variable | Description | Default | Example |
|---|---|---|---|
FABRIC_RTI_TRANSPORT | Transport mode for the server | stdio | http |
FABRIC_RTI_HTTP_HOST | Host address for HTTP server | 127.0.0.1 | 0.0.0.0 |
FABRIC_RTI_HTTP_PORT | Port for HTTP server | 3000 | 8080 |
FABRIC_RTI_HTTP_PATH | HTTP path for MCP endpoint | /mcp | /mcp |
FABRIC_RTI_STATELESS_HTTP | Whether to use stateless HTTP mode | false | true |
HTTP clients connecting to the server need to include the appropriate authentication token in the request headers:
# Example from test_kusto_tools_live_http.py
auth_header = f"Bearer {token.token}"
headers = {
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream",
"Authorization": auth_header,
}If your scenario involves a user token with a non-Kusto audience and you need to exchange it for a Kusto audience token using the OBO flow, the Fabric RTI MCP Server can handle this exchange automatically by setting the following environment variables:
| Variable | Description | Default | Example |
|---|---|---|---|
USE_OBO_FLOW | Enable OBO flow for token exchange | false | true |
FABRIC_RTI_MCP_AZURE_TENANT_ID | 72f988bf-86f1-41af-91ab-2d7cd011db47 (Microsoft) | 72f988bf-86f1-41af-91ab-2d7cd011db47 | |
FABRIC_RTI_MCP_ENTRA_APP_CLIENT_ID | Entra App (AAD) Client ID | Your client ID | |
FABRIC_RTI_MCP_USER_MANAGED_IDENTITY_CLIENT_ID | User Managed Identity Client ID | Your UMI client ID |
This flow is typically used in OAuth scenarios where a gateway like Azure API Management (APIM) is involved (example: https://github.com/ai-microsoft/adsmcp-apim-dual-validation?tab=readme-ov-file). The user authenticates via Entra ID, and APIM forwards the token to the MCP server. The token audience is not Kusto, so the MCP server must perform an OBO token exchange to get a token with the Kusto audience. To support this setup, your Microsoft Entra App must be configured to use Federated Credentials following the official guide: https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation. This enables the app to exchange tokens (OBO). Additionally, the Entra app must be granted Azure Data Explorer API permissions to successfully acquire an OBO token with the Kusto audience.
The MCP server can be deployed using the method of your choice. For example, you can follow the guide at https://github.com/Azure-Samples/mcp-sdk-functions-hosting-python/blob/main/ExistingServer.md to deploy the MCP server to an Azure Function App.
Your credentials are always handled securely through the official Azure Identity SDK - we never store or manage tokens directly.
MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to. This includes not only the Azure MCP Server, but any MCP client/agent that you choose to implement down to the model provider.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.