Skip to main content
Glama
README.md
# mirth_connect_mcp

MCP server for NextGen Connect (Mirth) that exposes API operations as domain-grouped tools.

## Requirements

- Python 3.13+
- Reachable NextGen Connect API endpoint
- Credentials with API access

## Install

Recommended (global command available in PATH):

```bash
uv tool install mirth_connect_mcp
```

Alternative:

```bash
pip install mirth_connect_mcp
```

After install, the command is:

```bash
mirth-connect-mcp
```

## Environment variables

Required:

- `MIRTH_BASE_URL` (example: `https://localhost:8443/api`)
- `MIRTH_USERNAME`
- `MIRTH_PASSWORD`

Optional:

- `MIRTH_VERIFY_SSL` (`true` by default; set `false` for local self-signed certs)
- `MIRTH_TIMEOUT_SECONDS` (`30` by default)
- `MIRTH_OPENAPI_PATH` (defaults to bundled OpenAPI spec)

## Add to MCP clients

Use `stdio` transport for all client configs below.

### VS Code (MCP)

Open your VS Code MCP config (`mcp.json`) and add:

```json
{
	"servers": {
		"mirthNextgen": {
			"type": "stdio",
			"command": "mirth-connect-mcp",
			"env": {
				"MIRTH_BASE_URL": "https://localhost:8443/api",
				"MIRTH_USERNAME": "admin",
				"MIRTH_PASSWORD": "admin",
				"MIRTH_VERIFY_SSL": "false"
			}
		}
	}
}
```

### Cline

In Cline MCP settings, add this server entry:

```json
{
	"mcpServers": {
		"mirthNextgen": {
			"command": "mirth-connect-mcp",
			"args": [],
			"env": {
				"MIRTH_BASE_URL": "https://localhost:8443/api",
				"MIRTH_USERNAME": "admin",
				"MIRTH_PASSWORD": "admin",
				"MIRTH_VERIFY_SSL": "false"
			}
		}
	}
}
```

### Claude Desktop

In `claude_desktop_config.json`, add:

```json
{
	"mcpServers": {
		"mirthNextgen": {
			"command": "mirth-connect-mcp",
			"env": {
				"MIRTH_BASE_URL": "https://localhost:8443/api",
				"MIRTH_USERNAME": "admin",
				"MIRTH_PASSWORD": "admin",
				"MIRTH_VERIFY_SSL": "false"
			}
		}
	}
}
```

### Gemini CLI

In your Gemini CLI MCP config, add:

```json
{
	"mcpServers": {
		"mirthNextgen": {
			"command": "mirth-connect-mcp",
			"env": {
				"MIRTH_BASE_URL": "https://localhost:8443/api",
				"MIRTH_USERNAME": "admin",
				"MIRTH_PASSWORD": "admin",
				"MIRTH_VERIFY_SSL": "false"
			}
		}
	}
}
```

## Tool model

Built-in tools:

- `list_domains`
- `list_actions`
- One dispatch tool per OpenAPI domain/tag

Domain tool request envelope:

```json
{
	"action": "operationId",
	"path_params": {},
	"query": {},
	"body": {},
	"headers_override": {}
}
```

TDQS

C2.2/5.0

Scored across 19 tools

Disambiguation3/5

Tools are organized by distinct API domains, but the boilerplate descriptions provide no operational detail, so an agent cannot distinguish what each dispatcher does without calling list_actions. Overlap is especially likely between channels, channel_groups, channel_statistics, channel_status_operations, and channel_deployment_operations.

Naming Consistency3/5

All names use snake_case and follow a domain-oriented pattern, which is readable. However, conventions are mixed: some are plain nouns (messages, users, alerts), others use *_operations or *_services suffixes, and the two list_* meta-tools use a different verb style.

Tool Count4/5

Nineteen tools is on the heavy side but reasonable for a broad Mirth Connect API surface split by domain. The two meta-tools list_domains and list_actions add useful navigation rather than redundant actions.

Completeness4/5

The domain list appears to cover the major Mirth Connect areas: channels, channel groups/statistics/status/deployment, messages, users, alerts, events, extensions, connector services, code templates, database tasks, configuration, and system usage. The dispatcher pattern also provides a path to actions via list_actions, though actual CRUD coverage depends on those hidden actions.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues