Skip to main content

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.

Metadata

Release files for health-mcp-server 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for health-mcp-server 0.1.2
File Size Uploaded
health_mcp_server-0.1.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for health-mcp-server 0.1.2
File Interpreter ABI Platform
health_mcp_server-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / health_mcp_server-0.1.2.tar.gz

Download URL health_mcp_server-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fbb449b0267c3206455b4a18e02a509de0f088df40e6e21906fa1925a461ecec
BLAKE2b-256 checksum
How to use checksums
70eda0886a57affe9867accced0f7cfc6850374fa01a1ad6f3df6ca6a5a03118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / health_mcp_server-0.1.2-py3-none-any.whl

Download URL health_mcp_server-0.1.2-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3049333d35cb84430907c7c7c4074ae2704860804b6a5dc5a59aa821beb15980
BLAKE2b-256 checksum
How to use checksums
25c47ba9dbd58d39f2d543fea3a07bb09f60c5d60e72bad694494cdedff3b553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page