
azurehelp-mcp-server
This is MCP server for Azure Help APIs for Guided Troubleshooter
1
Github Watches
0
Github Forks
1
Github Stars
🧠 Azure Self Help MCP Server
Welcome to the Azure Troubleshooter MCP Server – a hands-on implementation of Model Context Protocol (MCP), designed to enable intelligent agents (like Claude or Semantic Kernel) to troubleshoot Azure resources step-by-step using the Azure Self Help API.
In short: it lets your AI app talk to Azure’s Guided Troubleshooter, automating common diagnostic workflows.
💡 What Is This?
This project implements an MCP Server that exposes Azure's Self Help API as a toolset. Once connected to an MCP Host (like Claude Desktop or an SK App), you can ask the agent to:
- Create a troubleshooter session
- View its current step
- Continue the flow with your response
- End or restart the session
Think of this as your interactive AI assistant for Azure diagnostics.
✨ Live Demo Use Case
❓ “I can’t SSH into my Azure VM.”
This tool lets an LLM walk you through possible causes and fixes interactively using Microsoft’s Guided Troubleshooter API.
🧰 Prerequisites
- .NET 8 SDK
- Azure CLI (logged in)
- Claude App or any MCP Host
- IDE / Terminal
📦 Setup
Step 1: Install Packages
dotnet add package ModelContextProtocol --prerelease
dotnet add package Microsoft.Extensions.Hosting
dotnet add package Azure.ResourceManager.SelfHelp
dotnet add package Azure.Identity
Step 2: Create Your MCP Server
In Program.cs
:
var builder = Host.CreateEmptyApplicationBuilder(settings: null);
builder.Services.AddMcpServer()
.WithStdioServerTransport()
.WithToolsFromAssembly(); // Registers [McpServerTool] methods
var app = builder.Build();
await app.RunAsync();
Step 3: Write Your MCP Tools
In AzureTroubleshooterTools.cs
:
[McpServerToolType]
public static class AzureTroubleshooterTools
{
[McpServerTool, Description("Create a troubleshooter session")]
public static async Task<string> CreateTroubleshooter([Description("Resource Uri of the azure resource")]string scope)
{
string solutionId = "e104dbdf-9e14-4c9f-bc78-21ac90382231"; // this is solutionId for vm ssh issue. This id can be found using Discovery API of Azure Help, which will also be part of this MCP Server
string troubleshooterName = Guid.NewGuid().ToString();
var client = new ArmClient(new DefaultAzureCredential());
var troubleshooterId = SelfHelpTroubleshooterResource.CreateResourceIdentifier(scope, troubleshooterName);
var troubleshooter = client.GetSelfHelpTroubleshooterResource(troubleshooterId);
var data = new SelfHelpTroubleshooterData
{
SolutionId = solutionId,
Parameters = { ["ResourceURI"] = scope }
};
ArmOperation<SelfHelpTroubleshooterResource> lro = await troubleshooter.UpdateAsync(WaitUntil.Completed, data);
return $"Troubleshooter created with ID: {lro.Value.Data.Id}";
}
// Tools: Get, Continue, End, Restart...
}
🤖 MCP Config for Claude or Other Hosts
To connect your MCP Server with an MCP-compatible app like Claude, update your config file (in Claude Desktop: Settings > Developer
):
{
"mcpServers": {
"azurehelpTroubleshooter": {
"command": "dotnet",
"args": [
"run",
"--project",
"/Users/yourname/Projects/AzureTroubleshooterServer",
"--no-build"
]
}
}
}
Once saved and restarted, Claude will detect your tools — ready to assist with Azure diagnostics! ✅
🧪 Available Tools
Method | Description |
---|---|
CreateTroubleshooter |
Start a new troubleshooter session for a resource |
GetTroubleshooterStep |
View current step & instructions |
ContinueTroubleshooter |
Respond to the current step's question |
EndTroubleshooter |
End the session |
RestartTroubleshooter |
Start over from step one |
🛡 Authentication
Uses DefaultAzureCredential
, so it works out-of-the-box with:
- Azure CLI
- Environment variables
- Managed Identity
🧠 Why This Matters
Model Context Protocol (MCP) is revolutionizing how LLMs communicate with tools. By building an MCP Server for Azure Help APIs, you can:
- Make Azure debugging agent-native
- Empower AI apps with cloud intelligence
- Extend to other Microsoft APIs with the same structure
📎 Related Blogs
- Build an AI App That Can Browse the Internet Using Playwright MCP Server
- Step-by-Step Guide to MCP Servers
🙌 Acknowledgements
Thanks to the amazing Azure SDK team and the creators of MCP for making this kind of developer magic possible. ✨
- https://learn.microsoft.com/en-us/rest/api/help/
- https://docs.anthropic.com/en/docs/agents-and-tools/mcp
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Converts Figma frames into front-end code for various mobile frameworks.
Take an adjectivised noun, and create images making it progressively more adjective!
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
Reviews

user_M8BktRpN
I recently used the azurehelp-mcp-server by akshaykokane and I'm thoroughly impressed. This product is a game-changer for anyone utilizing Azure services. The documentation provided is clear, and the server setup process is straightforward. With its efficient performance and reliable support, I highly recommend azurehelp-mcp-server to anyone looking to enhance their Azure cloud experience. Check it out on GitHub: https://github.com/akshaykokane/azurehelp-mcp-server.