Skip to main content

MCP server for accessing Azure Cloud Health information.

Project description

Health MCP Server

This project provides an MCP server for accessing Azure Cloud Health information using custom health tools.

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)
  • Azure credentials set up for DefaultAzureCredential (e.g., via az login or environment variables)
  • The following Python packages:
    • requests
    • azure-identity
    • mcp (ensure this is installed or available in your environment)

Installation

  1. Clone this repository.

  2. Install dependencies:

    pip install requests azure-identity
    

    If mcp is not available on PyPI, ensure it is installed or accessible in your environment.

Running the MCP Server

From the root directory, run:

python src/HealthToolsMcpServer.py

The server will start and register the health tools.

Use VS Code

Add the MCP server to VS code.

Usage

The server exposes two main tools:

  • GetEntityHealthPy: Get the health of an entity.
  • GetHealthModelPy: Get the health model.

Refer to the code in src/HealthToolsMcpServer.py for details on tool parameters.

Prompts

Typical prompts:

"Give me the health of the health model {health_model_name} in subscription {subscription_id} and resource group {resource_group}".

Once you have setup the context - health model, subscription id and resource group - you can query freely. For example:

  • "Summarize the health for my health model"
  • "Do you see any patterns in the health model"
  • "Give me more details on the health of {entity_name}"

Logging

Logs are written to c:\temp\McpServerPy.txt.

Troubleshooting

  • Ensure your Azure credentials are correctly configured.
  • Check the log file for error details if something goes wrong.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

health_mcp_server-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

health_mcp_server-0.1.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file health_mcp_server-0.1.1.tar.gz.

File metadata

  • Download URL: health_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for health_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 19d23323d45b059d8fe03c8a2352f4964816359f30340a590414a81d2077c4e5
MD5 b17e154ca5e993d9166f423eff1bde1f
BLAKE2b-256 c0bc7abdb44b3969948051f985563bc0e53b47add43d238cbe7d00b8a99dcb43

See more details on using hashes here.

File details

Details for the file health_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for health_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adc8f093dedf17d0ec4caeab5f7763633f98efa03ea271c0df7c83d350435cf1
MD5 698fbfdecd61fef01cbc1fb3d01d68a4
BLAKE2b-256 059be3b8eb5873269f4b1c716a584491405de22c33337b0c1bd01f63d12f9acf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page