A comprehensive bridge to Microsoft Fabric's Real-Time Intelligence platform that exposes Eventhouse KQL querying, Eventstream management, Activator alerting, and Map visualization through 30+ MCP tools. Connect Claude directly to your Azure Data Explorer clusters and Fabric workspaces to run analytics queries, create streaming pipelines, set up real-time alerts, and build geospatial visualizations. Handles authentication through Azure Identity and includes intelligent query planning tools plus a KQL expertise skill for debugging complex queries. Reach for this when you need to integrate AI-driven data analysis workflows with Microsoft's real-time analytics stack without building custom API integrations.
A comprehensive Model Context Protocol (MCP) server implementation for Microsoft Fabric Real-Time Intelligence (RTI). This server enables AI agents to interact with Fabric RTI services by providing tools through the MCP interface, allowing for seamless data querying, analysis, and streaming capabilities.
[!NOTE]
This project is in Public Preview and implementation may significantly change prior to General Availability.
The Fabric RTI MCP Server acts as a bridge between AI agents and Microsoft Fabric RTI services:
Eventhouse (Kusto): Execute KQL queries against Microsoft Fabric RTI Eventhouse and Azure Data Explorer (ADX).
Eventstreams: Manage Microsoft Fabric Eventstreams for real-time data processing:
Activator: Create and manage Microsoft Fabric Activator triggers for real-time alerting:
Map: Create and manage Microsoft Fabric Map to visualize geospatial data:
This repository includes a KQL Copilot Skill (.github/skills/kql/) that gives AI agents deep KQL expertise when writing, debugging, or reviewing Kusto queries. The skill covers:
The skill references the Fabric RTI MCP tools (kusto_query, kusto_command, kusto_sample_entity, etc.) so agents know how to execute queries through this MCP server.
Eventhouse Analytics:
Eventstream Management:
Activator Alerts:
Map Visualization:
kusto_known_services - List all available Kusto services configured in the MCPkusto_query - Execute KQL queries on the specified databasekusto_command - Execute Kusto management commands (.show, .create, .alter, .drop)kusto_list_entities - List entities (databases, tables, external tables, materialized views, functions, graphs) in a cluster or databasekusto_describe_database - Get schema information for all entities in a databasekusto_describe_database_entity - Get detailed schema for a specific entity (table, external table, materialized view, function, graph)kusto_graph_query - Execute graph queries using snapshots or transient graphskusto_sample_entity - Retrieve sample records from a table, external table, materialized view, or functionkusto_ingest_inline_into_table - Ingest inline CSV data into a specified tablekusto_get_shots - Retrieve semantically similar query examples from a shots table using AI embeddingskusto_deeplink_from_query - Generate a deeplink URL to open a KQL query in Azure Data Explorer Web Explorer or Microsoft Fabric query workbenchkusto_show_queryplan - Retrieve the execution plan for a KQL query without running it. Returns planning stats (PlanSize, RelopSize), the logical operator tree, and execution hints (estimated row counts, concurrency/spread hints, per-shard scan info with filter detection). Useful for comparing query approaches, catching expensive joins, and validating query syntax before execution.kusto_diagnostics - Run a best-effort suite of cluster diagnostic commands and return a unified summary. Sections: capacity (resource slots), cluster (nodes/hardware), principal roles (caller permissions), internal diagnostics (health/utilization), workload groups, rowstores, and ingestion failures (last 24h). Each section runs independently — permission failures on one section don't block others.Core Operations (6 tools):
eventstream_list - List all Eventstreams in your Fabric workspaceeventstream_get - Get detailed information about a specific Eventstreameventstream_get_definition - Retrieve complete JSON definition of an Eventstreameventstream_create - Create new Eventstreams with custom configuration (auto-includes default stream)eventstream_update - Modify existing Eventstream settings and destinationseventstream_delete - Remove Eventstreams and associated resourcesBuilder Tools (11 tools):
eventstream_start_definition, eventstream_get_current_definition, eventstream_clear_definitioneventstream_add_sample_data_source, eventstream_add_custom_endpoint_sourceeventstream_add_derived_streameventstream_add_eventhouse_destination, eventstream_add_custom_endpoint_destinationeventstream_validate_definition, eventstream_create_from_definition, eventstream_list_available_components💡 Pro Tip: All tools work with natural language! Just describe what you want to do and the AI agent will use the appropriate tools automatically.
activator_list_artifacts - List all Activator artifacts in a Fabric workspaceactivator_create_trigger - Create new Activator triggers with KQL source monitoring and email/Teams alertsmap_list - List all Map items in your Fabric workspacemap_get - Get detailed information about a specific Map itemmap_get_definition - Retrieve the full JSON definition of a Map itemmap_create - Create a new Map item from a provided configurationmap_update_definition - Replace the full JSON definition of an existing Map itemmap_update - Partially update properties of an existing Map itemmap_delete - Delete a Map item and its associated configurationuvpowershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
or, check here for other install options
The Fabric RTI MCP Server is available on PyPI, so you can install it using pip. This is the easiest way to install the server.
1. Open the command palette (Ctrl+Shift+P) and run the command `MCP: Add Server`
2. Select install from Pip
3. When prompted, enter the package name `microsoft-fabric-rti-mcp`
4. Follow the prompts to install the package and add it to your settings.json or your mcp.json file
The process should end with the below settings in your settings.json or your mcp.json file.
{
"mcp": {
"servers": {
"fabric-rti-mcp": {
"command": "uvx",
"args": [
"microsoft-fabric-rti-mcp"
],
"env": {
"KUSTO_SERVICE_URI": "https://help.kusto.windows.net/",
"KUSTO_SERVICE_DEFAULT_DB": "Samples",
"FABRIC_API_BASE": "https://api.fabric.microsoft.com/v1"
}
}
}
}
}
Note: All environment variables are optional. The
KUSTO_SERVICE_URIandKUSTO_SERVICE_DEFAULT_DBprovide default cluster and database settings. TheAZ_OPENAI_EMBEDDING_ENDPOINTis only needed for semantic search functionality in thekusto_get_shotstool.
Use the interactive command within a GitHub Copilot CLI session:
/mcp add
Or manually add to your ~/.copilot/mcp-config.json:
{
"mcpServers": {
"fabric-rti-mcp": {
"command": "uvx",
"args": [
"microsoft-fabric-rti-mcp"
],
"env": {
"KUSTO_SERVICE_URI": "https://help.kusto.windows.net/",
"KUSTO_SERVICE_DEFAULT_DB": "Samples",
"FABRIC_API_BASE": "https://api.fabric.microsoft.com/v1"
}
}
}
}
For more information, see the GitHub Copilot CLI documentation.
pip install . or uv tool install .)settings.json or your mcp.json file.{
"mcp": {
"servers": {
"fabric-rti-mcp": {
"command": "uv",
"args": [
"--directory",
"C:/path/to/fabric-rti-mcp/",
"run",
"-m",
"fabric_rti_mcp.server"
],
"env": {
"KUSTO_SERVICE_URI": "https://help.kusto.windows.net/",
"KUSTO_SERVICE_DEFAULT_DB": "Samples",
"FABRIC_API_BASE": "https://api.fabric.microsoft.com/v1"
}
}
}
}
}
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:
None - the server will work with default settings for demo purposes.
| Variable | Service | Description | Default | Example |
|---|---|---|---|---|
KUSTO_SERVICE_URI | Kusto | Default Kusto cluster URI | None | https://mycluster.westus.kusto.windows.net |
KUSTO_SERVICE_DEFAULT_DB | Kusto | Default database name for Kusto queries | NetDefaultDB | MyDatabase |
AZ_OPENAI_EMBEDDING_ENDPOINT | Kusto | Azure OpenAI embedding endpoint for semantic search in kusto_get_shots | None | https://your-resource.openai.azure.com/openai/deployments/text-embedding-ada-002/embeddings?api-version=2024-10-21;impersonate |
KUSTO_KNOWN_SERVICES | Kusto | JSON array of preconfigured Kusto services | None | [{"service_uri":"https://cluster1.kusto.windows.net","default_database":"DB1","description":"Prod"}] |
KUSTO_EAGER_CONNECT | Kusto | Whether to eagerly connect to default service on startup (not recommended) | false | true or false |
KUSTO_ALLOW_UNKNOWN_SERVICES | Kusto | Security setting to allow connections to services not in KUSTO_KNOWN_SERVICES | true | true or false |
KUSTO_SHOTS_TABLE | Kusto | Default shots table name for kusto_get_shots when not provided as a parameter | None | MyDatabase.ShotsTable |
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 |
FABRIC_RTI_KUSTO_DEEPLINK_STYLE | Kusto | Override auto-detection of deeplink style | None | adx or fabric |
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};impersonate
Components:
{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 seamlessly integrates with your host operating system's authentication mechanisms. We use Azure Identity via DefaultAzureCredential, which tries these authentication methods in order:
EnvironmentCredential) - Perfect for CI/CD pipelinesVisualStudioCredential) - Uses your Visual Studio credentialsAzureCliCredential) - Uses your existing Azure CLI loginAzurePowerShellCredential) - Uses your Az PowerShell loginAzureDeveloperCliCredential) - Uses your azd loginInteractiveBrowserCredential) - Falls back to browser-based login if neededIf you're already logged in through any of these methods, the Fabric RTI MCP Server will automatically use those credentials.
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 | Azure AD 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.
You should follow Microsoft security guidance for MCP servers, including enabling Entra ID authentication, secure token management, and network isolation. Refer to Microsoft Security Documentation for details.
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.
MCP clients can invoke operations based on the user’s Fabric Role-Based Access Control (RBAC) permissions. Autonomous or misconfigured clients may perform destructive actions. You should review and apply least-privilege RBAC roles and implement safeguards before deployment. Certain safeguards, such as flags to prevent destructive operations, are not standardized in the MCP specification and may not be supported by all clients.
This MCP server may be installed, used and share data with clients and services, such as third party LLMs, AI agents or services that operate outside Fabric’s compliance boundaries. You are responsible for ensuring that any integration complies with applicable organizational, regulatory, and contractual requirements.
This MCP server may use or depend on third party components. You are responsible for reviewing and complying with the licenses and security posture of any third-party components.
Use of this software must comply with all applicable export laws and regulations, including U.S. Export Administration Regulations and local jurisdiction requirements.
This software is provided “as is” without warranties or conditions of any kind, either express or implied. Microsoft shall not be liable for any damages arising from use, misuse, or misconfiguration of this software.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com 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.
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json