Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Azure Log Navigator MCPNew to Visual Studio Code? Get it now.
Azure Log Navigator MCP

Azure Log Navigator MCP

Daniel Draus

|
1 install
| (0) | Free
MCP server for Azure Log Analytics — query logs from VS Code Copilot Chat or PyCharm AI Assistant
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🔍 Azure Log Navigator MCP

MCP server for Azure Log Analytics — query logs from VS Code Copilot Chat or PyCharm AI Assistant

License: MIT Node.js


✨ Features

  • 🔎 Query Azure logs directly from AI chat (Copilot, PyCharm AI Assistant)
  • 🎯 Target aliases — friendly names instead of resource IDs
  • 🚀 Auto-discovery — scan Azure subscriptions for resources
  • 📊 KQL examples — ready-to-use queries for troubleshooting
  • 🐳 AKS support — two-step pods/logs workflow
  • 🔐 Multiple auth methods — VS Code, Azure CLI, Service Principal

📦 Installation

VS Code

npm install
npm run build
npm run package:vsix

Install azure-log-navigator-*.vsix via Extensions → Install from VSIX.

PyCharm / JetBrains IDE

npm install
npm run build
npm run package:standalone

Extract azlognav-standalone.zip and configure .idea/mcp.json:

{
  "mcpServers": {
    "azlognav": {
      "type": "stdio",
      "command": "node",
      "args": ["C:/tools/azlognav/server.mjs"],
      "env": {
        "LOG_TARGETS_PATH": "C:/tools/azlognav/LOG_TARGETS.json"
      }
    }
  }
}

🛠️ MCP Tools

Tool Description
fetch_azure_logs Query Azure Log Analytics with KQL
get_log_targets List configured environments
get_kql_examples Get KQL query examples

🚀 Quick Start

  1. Sign in to Azure:

    • VS Code: Install Azure Account → Ctrl+Shift+P → "Azure: Sign In"
    • Or: az login in terminal
  2. Bootstrap targets:

    • VS Code: Ctrl+Shift+P → "Azure Log Navigator: Bootstrap Log Targets from Azure"
  3. Query logs in chat:

    @azlognav show errors from prod AAS in last 30 minutes
    

📚 Documentation

Document Description
SETUP.md Installation & configuration
ARCHITECTURE.md System architecture
TOOLS.md MCP tools reference
AKS_PODS_FLOW.md AKS pods/logs workflow
KQL_EXAMPLES.md KQL query examples

🔐 Authentication

Priority order:

  1. VS Code Azure Account (recommended)
  2. Environment variables (AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID)
  3. Azure CLI (az login)
  4. Managed Identity

⚙️ Configuration

VS Code Settings

Setting Description
azureLogNavigator.logTargetsPath Path to LOG_TARGETS.json
azureLogNavigator.requestsCaBundle Corporate CA bundle for TLS proxy

🧪 Development

npm install
npm run build
npm run start:mcp    # Run MCP server directly
npm test             # Run unit tests
npm run test:watch   # Run tests in watch mode
npm run test:coverage # Generate coverage report

📝 License

MIT License — see LICENSE

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft