About Pyomop
Pyomop is an MCP server published by dermatologist in the Developer Tools category: python package for managing OHDSI clinical data models. Includes support for LLM based plain text queries, MCP server and FHIR import. Conduid read 9 tools from its source: check_sql, create_cdm, create_eunomia, example_query, get_engine, get_single_table_info and 3 more. It is published to PyPI as pyomop and runs with uvx.
The repository has 69 stars and 12 forks, is licensed GPL-3.0, and its last commit was on 30 Nov 2026. The latest release is v6.4.0 (23 Feb 2026). It follows v6.3.1 (27 Jan 2026), and the 5 most recent releases go back to v6.1.0 (29 Sep 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include ohdsi, datawarehouse, clinical-trials, health-informatics, hacktoberfest and devtools.
Install
uvx pyomoppip install pyomopgit clone https://github.com/dermatologist/pyomopTools (9)
check_sqlValidate and check SQL query syntax before execution. Returns a corrected version of the query if issues are found.| Parameter | Type | Description |
|---|---|---|
| db | string | Database type (sqlite, mysql, pgsql) |
| db_path | string | Database path |
| host | string | Database host (ignored for sqlite) |
| port | integer | Database port (ignored for sqlite) |
| pw | string | Database password (ignored for sqlite) |
| schema | string | PostgreSQL schema to use for CDM |
| sql * | string | SQL query to validate |
| user | string | Database user (ignored for sqlite) |
create_cdmCreate an empty CDM database| Parameter | Type | Description |
|---|---|---|
| db_path | string | Full path to the SQLite database file |
| version | string | CDM version to create |
create_eunomiaCreate a CDM database with eunomia data pre-installed| Parameter | Type | Description |
|---|---|---|
| dataset | string | Eunomia dataset to load |
| db_path | string | Full path to the SQLite database file |
| version | string | CDM version to create |
example_queryGet example queries for a specific OMOP CDM table from OHDSI QueryLibrary. Useful for understanding query patterns.| Parameter | Type | Description |
|---|---|---|
| table_name * | string | Name of the OMOP CDM table |
get_engineGet database engine for interaction (returns engine URL/type summary)| Parameter | Type | Description |
|---|---|---|
| db | string | Database type (sqlite, mysql, pgsql) |
| db_path | string | Database path |
| host | string | Database host (ignored for sqlite) |
| port | integer | Database port (ignored for sqlite) |
| pw | string | Database password (ignored for sqlite) |
| schema | string | PostgreSQL schema to use for CDM |
| user | string | Database user (ignored for sqlite) |
get_single_table_infoGet detailed information about a single table including columns and foreign keys| Parameter | Type | Description |
|---|---|---|
| db | string | Database type (sqlite, mysql, pgsql) |
| db_path | string | Database path |
| host | string | Database host (ignored for sqlite) |
| port | integer | Database port (ignored for sqlite) |
| pw | string | Database password (ignored for sqlite) |
| schema | string | PostgreSQL schema to use for CDM |
| table_name * | string | Name of the table to get info for |
| user | string | Database user (ignored for sqlite) |
| version | string | CDM version |
get_table_columnsGet column names for a specific table| Parameter | Type | Description |
|---|---|---|
| db | string | Database type (sqlite, mysql, pgsql) |
| db_path | string | Database path |
| host | string | Database host (ignored for sqlite) |
| port | integer | Database port (ignored for sqlite) |
| pw | string | Database password (ignored for sqlite) |
| schema | string | PostgreSQL schema to use for CDM |
| table_name * | string | Name of the table to get columns for |
| user | string | Database user (ignored for sqlite) |
| version | string | CDM version |
get_usable_table_namesGet list of all usable table names in the CDM| Parameter | Type | Description |
|---|---|---|
| db | string | Database type (sqlite, mysql, pgsql) |
| db_path | string | Database path |
| host | string | Database host (ignored for sqlite) |
| port | integer | Database port (ignored for sqlite) |
| pw | string | Database password (ignored for sqlite) |
| schema | string | PostgreSQL schema to use for CDM |
| user | string | Database user (ignored for sqlite) |
| version | string | CDM version |
run_sqlExecute a SQL statement on the CDM database| Parameter | Type | Description |
|---|---|---|
| db | string | Database type (sqlite, mysql, pgsql) |
| db_path | string | Database path |
| fetch_results | boolean | Whether to fetch and return results for SELECT queries |
| host | string | Database host (ignored for sqlite) |
| port | integer | Database port (ignored for sqlite) |
| pw | string | Database password (ignored for sqlite) |
| schema | string | PostgreSQL schema to use for CDM |
| sql * | string | SQL statement to execute |
| user | string | Database user (ignored for sqlite) |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 26 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and HTTP with SSEsrc/pyomop/mcp/server.py:35, src/pyomop/mcp/server.py:1107
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 19 callssrc/pyomop/eunomia.py:111, src/pyomop/llm_query.py:94, src/pyomop/llm_query.py:98
- Writes or deletes files
- 5 callssrc/pyomop/eunomia.py:92, src/pyomop/eunomia.py:114, src/pyomop/eunomia.py:342
- Lockfile
- uv.lock
Pattern matches on the source text of 26 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README