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., 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb449b0267c3206455b4a18e02a509de0f088df40e6e21906fa1925a461ecec
|
|
| MD5 |
a74a1edd78da57c031fc508b9c42b408
|
|
| BLAKE2b-256 |
70eda0886a57affe9867accced0f7cfc6850374fa01a1ad6f3df6ca6a5a03118
|
File details
Details for the file health_mcp_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: health_mcp_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3049333d35cb84430907c7c7c4074ae2704860804b6a5dc5a59aa821beb15980
|
|
| MD5 |
47ae629fd5a9ee04e2b3417d62d469a7
|
|
| BLAKE2b-256 |
25c47ba9dbd58d39f2d543fea3a07bb09f60c5d60e72bad694494cdedff3b553
|