Kql Server
БесплатноНе проверенMCP server for executing Kusto Query Language (KQL) queries against Azure Data Explorer clusters, integrating with Claude Desktop and VS Code via Azure CLI auth
Описание
MCP server for executing Kusto Query Language (KQL) queries against Azure Data Explorer clusters, integrating with Claude Desktop and VS Code via Azure CLI authentication.
README
A Model Context Protocol (MCP) server for executing Kusto Query Language (KQL) queries against Azure Data Explorer clusters. Seamlessly integrates with Claude Desktop and Visual Studio Code (VS Code). Supports Azure CLI authentication and provides a convenient kql_execute tool for execute KQL queries directly within your AI prompts, complete with optional visualizations.

✨ Features
- 🔍 Execute KQL Queries: Run KQL queries directly within your AI prompts using the
kql_executeMCP tool. - ⚡ Plug-and-Play Simplicity: No manual tenant ID configuration or complex credential management. Simply authenticate via Azure CLI (
az login) and start querying immediately. - 🤖 Seamless Claude Integration: Execute KQL queries within Claude Desktop without switching interfaces or dashboards.
- 🔒 Secure and Efficient: Leverages Azure CLI’s robust authentication, ensuring secure credential handling and optimized query performance.
- 📊 Visualization Ready: Optional Markdown table outputs make data analysis intuitive and engaging.
- 🔑 Azure CLI Authentication: Built-in Azure CLI authentication with retry and caching logic.
- 📡 Protocol Compatibility: Fully compatible with MCP protocol version
2024-11-05. - 🛠️ Reliable Implementation: Uses
fastmcpfor a robust and reliable MCP server implementation.
📌 Comparison with Other Tools
| Feature | MCP KQL Server | Azure Data Explorer MCP | Standalone Scripts |
|---|---|---|---|
| Claude Integration | ✅ | ❌ | ❌ |
| Plug-and-Play Authentication | ✅ (Azure CLI) | ❌ (Manual setup) | ❌ (Custom code) |
| No Tenant ID Required | ✅ | ❌ | ❌ |
| Data Visualization | ✅ | ✅ | ❌ |
| Open-Source | ✅ | ✅ | Varies |
📋 Requirements
- Python 3.10 or higher
- Azure Data Explorer cluster access
- Azure CLI installed and authenticated (
az login) - Node.js (optional, for Claude Desktop filesystem server)
- VS Code with Claude extension or MCP client (for VS Code integration)
📂 Project Structure
mcp-kql-server/
├── mcp_kql_server/
│ ├── __init__.py
│ ├── mcp_server.py
│ ├── kql_auth.py
│ └── execute_kql.py
├── pyproject.toml
├── README.md
🏗️ Setup Instructions
1️⃣ Clone the Repository
git clone https://github.com/4R9UN/mcp-kql-server.git
cd mcp-kql-server
2️⃣ Install Python 3.10+
- Windows:
winget install Python.Python.3.10 - macOS:
brew install [email protected] - Linux:
sudo apt-get install python3.10
Verify installation:
python --version
3️⃣ Install Azure CLI
- Follow official instructions: Install Azure CLI
- Log in to Azure:
az config set core.login_experience_v2=off az login
4️⃣ Create and Activate Virtual Environment
python -m venv .venv
Activate environment:
- Windows:
.venv\Scripts\activate - macOS/Linux:
source .venv/bin/activate
5️⃣ Install Dependencies
pip install .
🖥️ Setup for Claude Desktop
Copy
claude_desktop_config.jsonto Claude's configuration directory:- Windows:
C:\Users\YourUser\AppData\Roaming\Claude\ - macOS:
/Users/YourUser/Library/Application Support/Claude/ - Linux: Currently not supported by Claude Desktop.
- Windows:
Update the configuration file with your Python path and project directory:
{
"mcpServers": {
"mcp-kql-server": {
"command": "C:\\Users\\YourUser\\mcp-kql-server\\.venv\\Scripts\\python.exe",
"args": [
"-m",
"mcp_kql_server.mcp_server"
]
}
}
}
- Optional: Install Node.js for filesystem server support (Node.js).
- Restart Claude Desktop.
🖱️ Setup for VS Code
- Install VS Code.
- Install the
Copilot MCPclient extension. - Modify the MCP
settings.jsonwith the following configuration:
{
"mcpServers": {
"mcp-kql-server": {
"command": "C:\\Users\\YourUser\\mcp-kql-server\\.venv\\Scripts\\python.exe",
"args": [
"-m",
"mcp_kql_server.mcp_server"
],
"env": {
"PYTHONPATH": "C:\\Users\\YourUser\\Downloads\\mcp-kql-server",
"PYTHONUNBUFFERED": "1",
"AZURE_CORE_ONLY_SHOW_ERRORS": "true"
}
}
}
}
- Run the
MCP: List Serverscommand in VS Code’s Command Palette to verify setup. - Enable autodiscovery if using Claude Desktop’s configuration.
✅ Test the Server
- Claude Desktop:
- Open Claude Desktop and provide the following prompt:
Use a tool to execute the attached KQL query, visualize the results, and provide high-level insights from the query output. KQL query: "cluster('mycluster').database('mydb').MyTable | take 10"
- Open Claude Desktop and provide the following prompt:
🤝 Contributing
- Fork the repository.
- Create a feature branch:
git checkout -b feature/YourFeature - Commit your changes:
git commit -m "Add YourFeature" - Push to your branch:
git push origin feature/YourFeature - Open a Pull Request.
📬 Contact
For issues or questions, please open a ticket on GitHub or contact the maintainer at [email protected].
🎉 Happy Querying!
Установка Kql Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ksagala/mcp-kql-serverFAQ
Kql Server MCP бесплатный?
Да, Kql Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Kql Server?
Нет, Kql Server работает без API-ключей и переменных окружения.
Kql Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Kql Server в Claude Desktop, Claude Code или Cursor?
Открой Kql Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Kql Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
