Skip to main content

groundworkers

Groundworkers is the reusable, read-only capability layer for OMOP vocabulary lookup, concept mapping, source planning, and related analysis. It combines deterministic services with optional embeddings and model-assisted operations.

It does not own patient-level writes, session state, or job lifecycle. Those concerns belong to the calling application; groundcrew is the usual stateful orchestrator.

Choose an interface

Interface Use it when
MCP An agent needs discoverable tools, prompts, resources, and a shared remote runtime.
REST An application needs the curated HTTP workflows for candidate bundles or assisted source planning.
Python A process owns batching, evaluation, or orchestration and can run in-process.

Start with the documentation home, or choose a path directly:

Quick start

Install the package and configure the shared OMOP stack:

pip install groundworkers
omop-config configure groundworkers

Inspect the active configuration and MCP surface before starting a service:

groundworkers --describe

Run MCP over stdio for a client that starts the process, or over Streamable HTTP for a shared service:

groundworkers
groundworkers --transport streamable-http --host 127.0.0.1 --port 8000

Explore the configured MCP tools, prompts, and resources interactively with the official MCP Inspector:

make inspector

This launches Groundworkers over stdio using the active shared OMOP configuration and opens the Inspector UI. It requires Node.js 22.19 or newer and uv; the first run downloads the Inspector package through npx.

REST is a separate, curated interface:

groundworkers --transport rest --host 127.0.0.1 --port 8080

Direct Python

Build the application once and reuse it. Services are optional when their prerequisites are not configured:

from groundworkers.app import build_application
from groundworkers.bootstrap import build_app_config

config = build_app_config()
app = build_application(config)

bundle = app.services.mapping.concept_candidate_bundle(
    "type 2 diabetes",
    domain="Condition",
)

The mapping service in this example requires a configured CDM database. Embedding-backed channels require an embedding model and vector store; text, domain classification, and assisted source planning require a configured chat model. Use groundworkers --describe to see what the current deployment exposes.

Contract owners

Owned here

Contract Where it is defined Who consumes it
Source-planning roles and column review pack Models; pack manifest Groundcrew and source-planning clients
Domain routing and classifier outputs omop_domains.py Groundcrew's domain review pack and the domain-routing knowledge pack
Mapping conventions Standard-concept guidance, drug guidance, history-of guidance, measurement guidance Agents reading knowledge packs; guidance is advisory
Plugin interfaces plugins.py Registry and other Groundworkers plugins

Consumed from elsewhere

Contract Owner repo How this repo conforms
Registry pack format ohdsi-prompt-registry Pack entry point in pyproject.toml; discovery and validation in test_prompt_packs.py

Companion repositories

  • groundcrew owns session state and orchestration.
  • omop-graph provides graph-backed OMOP traversal.
  • omop-emb provides embedding stores and indexes.

Metadata

Release files for groundworkers 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for groundworkers 0.11.0
File Size Uploaded Provenance Actions
groundworkers-0.11.0.tar.gz 1.8 MB With provenance Details for groundworkers-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for groundworkers 0.11.0
File Interpreter ABI Platform Actions
groundworkers-0.11.0-py3-none-any.whl Python 3 none any Details for groundworkers-0.11.0-py3-none-any.whl

Total release size: 2.1 MB

Release files / groundworkers-0.11.0.tar.gz

Download URL groundworkers-0.11.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
d9be407f2965e90a4bc2e2807ed51d7321020a4d35ab2b44fe2a13d7bf264145
BLAKE2b-256 checksum
How to use checksums
b8601dac8c40e96118ec2c13a6c86da19ec241ba14b8d71e52c39f85482390b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / groundworkers-0.11.0-py3-none-any.whl

Download URL groundworkers-0.11.0-py3-none-any.whl
Size 349.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4047481566897e1deff60c28667a86f0009601b5c85824ba4db450873bd9d252
BLAKE2b-256 checksum
How to use checksums
ea727fd579f79f05d15ee821ce18a3c126f8582e35029695af39f2cc70715c87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for groundworkers 0.11.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for groundworkers-0.11.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page