Skip to main content

FastMCP server for NextGen Connect (Mirth) API

Project description

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):

uv tool install mirth_connect_mcp

Alternative:

pip install mirth_connect_mcp

After install, the command is:

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:

{
	"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:

{
	"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:

{
	"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:

{
	"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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirth_connect_mcp-0.1.1.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mirth_connect_mcp-0.1.1-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file mirth_connect_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: mirth_connect_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mirth_connect_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 237ddc4643e4c8cc1b97eefe2dff53faf6696f5ee69e292c7beb430c7bb60498
MD5 671205ae28bf2324d31c11fc297e1138
BLAKE2b-256 bba7977a182729439412406ce10f3541a74569bfd9a7e3fcafa111ea1bbe63e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirth_connect_mcp-0.1.1.tar.gz:

Publisher: publish-pypi.yml on Kovinda/mirth_connect_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirth_connect_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mirth_connect_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13a24dbd4871bd5e798dd184e241364204d2cbf279a52fce1db51aff05b0d878
MD5 91e5a977231196111ab5b7020a0dccf4
BLAKE2b-256 abb02186e154e3aa0e0c0fb66f6640c6da36fd00680a6e665a02a4ca675b0e08

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirth_connect_mcp-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on Kovinda/mirth_connect_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page