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., viaaz loginor environment variables) - The following Python packages:
requestsazure-identitymcp(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)
-
Clone this repository.
-
Install dependencies:
pip install requests azure-identity
If
mcpis 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| health_mcp_server-0.1.2.tar.gz | 4.7 kB | Without provenance | Details for health_mcp_server-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| health_mcp_server-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for health_mcp_server-0.1.2-py3-none-any.whl |
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
|
Security for health-mcp-server 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.