home / mcp / healthcare mcp server

Healthcare MCP Server

MCP Server generated by mcp.ag2.ai

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ag2-mcp-servers-cloud-healthcare-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "A JSON string containing the configuration.",
        "SECURITY": "Environment variables for security parameters (e.g., API keys).",
        "CONFIG_PATH": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)"
      }
    }
  }
}

You set up and run an MCP (Model Context Protocol) server to connect your clients to a healthcare data API, enabling efficient, standardized context-aware requests and responses. This server lets you start in different transport modes and manage configuration through environment variables, keeping your integration clean and predictable.

How to use

You run the MCP server locally or in your environment and connect an MCP client to the server using the supported transport modes. The server exposes a standard entry point that accepts a mode such as stdio, sse, or streamable-http. Start the server in the mode you prefer, then point your client at the running process. Use the environment variables described to supply configuration and security parameters.

How to install

Prerequisites include Python 3.9 or later and the Python package manager tools. You should also have the uv tool available if you plan to run the server in development or with editable installs.

Step by step commands you can run in order:

# Prerequisites
python3 --version
pip --version
uv --version

# 1) Clone the repository
git clone <repository-url>
cdd mcp-server

# 2) Install dependencies (editable with dev extras)
pip install -e ".[dev]"
# Or, if you prefer using uv
uv pip install --editable ".[dev]"

Configuration and running the server

You configure the server using environment variables. The following options are supported and should be provided in your deployment environment: a path to a JSON configuration file, a JSON string containing the configuration, and security parameters.

If you want to start the server in stdio mode, use the following command.

python mcp_server/main.py stdio

Notes on configuration details

The server supports multiple transport modes. You can choose stdio for local development, or other modes supported by the server for deployment in different environments.

Troubleshooting and tips

If you encounter issues starting the server, verify your Python version and ensure the dependencies are installed. Check that your configuration environment variables are set and that the entry point script exists at the expected path.

Examples of common environment variables

Configure the server with the following environment variables to control how it loads its configuration and security parameters.

Available tools

transport_modes

The server supports multiple transport modes such as stdio, sse, and streamable-http, letting you choose how clients connect.

lint_and_test

Development tooling like linting, static analysis, and tests to maintain code quality and reliability.

Healthcare MCP Server - ag2-mcp-servers/cloud-healthcare-api