Azure Application Insights MCP
MCP ServerRead-only access to Azure Application Insights telemetry for debugging, performance analysis, and production troubleshooting with KQL-backed MCP tools.
M
Medisolv Platform TeamPython 3.11+Internal
When to Use
Use this MCP when your agent needs to investigate runtime behavior, errors, or slow operations using live Application Insights data.
- Run ad hoc KQL queries against Application Insights without leaving your AI workspace
- Investigate recent exceptions, slow requests, and performance regressions
- Search for custom events tied to tRPC queries, Snowflake calls, or cache activity
- Summarize user session behavior and identify high-latency flows
- Validate that telemetry is flowing and the current API key/configuration is healthy
Prerequisites
- Python 3.11+ and
pipinstalled - An Application Insights connection string that includes
ApplicationId= - An Application Insights API key with Read telemetry permission
Upgrade pip and install the Azure Artifacts keyring helpers from public PyPI:
pip install keyring artifacts-keyring
Then install the MCP package locally before configuring Augment. This avoids first-run timeouts caused by downloading packages during MCP startup:
pip install azure-insights-mcp --index-url https://pypi.org/simple --extra-index-url "https://medisolv.pkgs.visualstudio.com/ai-discovery-portal/_packaging/ai-discovery/pypi/simple/"
To create an Application Insights API key:
- Go to Azure Portal → Application Insights → API Access
- Click Create API Key
- Enable Read telemetry
- Copy the generated value into
APPINSIGHTS_API_KEY
Installation
Configure via mcp.json:
{
"mcpServers": {
"azure-insights": {
"command": "python",
"args": ["-m", "azure_insights_mcp.server"],
"env": {
"NEXT_PUBLIC_APPINSIGHTS_CONNECTION_STRING": "<APPINSIGHTS_CONNECTION_STRING>",
"APPINSIGHTS_API_KEY": "<APPINSIGHTS_API_KEY>"
}
}
}
}Security Audit
verified_user
Data Access
Read-Only Telemetry
policy
Secrets
Azure API Key Required