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 (from PyPI)

To install the package from PyPI:

pip install health-mcp-server

This will install all required dependencies.

Running the MCP Server (after installation)

After installing, you can run the MCP server with:

python -m health_tools.HealthToolsMcpServer

Or, if you have set up a console script entry point, simply:

health-mcp-server

Note: Ensure your Azure credentials are set up (e.g., run az login or set environment variables for a service principal) before starting the server.

Installation (from source)

  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:

mcp run 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.2.tar.gz (4.7 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.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: health_mcp_server-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 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.2.tar.gz
Algorithm Hash digest
SHA256 fbb449b0267c3206455b4a18e02a509de0f088df40e6e21906fa1925a461ecec
MD5 a74a1edd78da57c031fc508b9c42b408
BLAKE2b-256 70eda0886a57affe9867accced0f7cfc6850374fa01a1ad6f3df6ca6a5a03118

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for health_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3049333d35cb84430907c7c7c4074ae2704860804b6a5dc5a59aa821beb15980
MD5 47ae629fd5a9ee04e2b3417d62d469a7
BLAKE2b-256 25c47ba9dbd58d39f2d543fea3a07bb09f60c5d60e72bad694494cdedff3b553

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