1. Conduid
  2. Developer Tools
  3. Pyomop
MCP server · Developer Tools

Pyomop

Python package for managing OHDSI clinical data models. Includes support for LLM based plain text queries, MCP server and FHIR import.

67Good

Scored 2 hours ago · breakdown

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
uvx pyomop
pip
pip install pyomop
From source
git clone https://github.com/dermatologist/pyomop

Tools (9)

check_sqlValidate and check SQL query syntax before execution. Returns a corrected version of the query if issues are found.
ParameterTypeDescription
dbstringDatabase type (sqlite, mysql, pgsql)
db_pathstringDatabase path
hoststringDatabase host (ignored for sqlite)
portintegerDatabase port (ignored for sqlite)
pwstringDatabase password (ignored for sqlite)
schemastringPostgreSQL schema to use for CDM
sql *stringSQL query to validate
userstringDatabase user (ignored for sqlite)
create_cdmCreate an empty CDM database
ParameterTypeDescription
db_pathstringFull path to the SQLite database file
versionstringCDM version to create
create_eunomiaCreate a CDM database with eunomia data pre-installed
ParameterTypeDescription
datasetstringEunomia dataset to load
db_pathstringFull path to the SQLite database file
versionstringCDM version to create
example_queryGet example queries for a specific OMOP CDM table from OHDSI QueryLibrary. Useful for understanding query patterns.
ParameterTypeDescription
table_name *stringName of the OMOP CDM table
get_engineGet database engine for interaction (returns engine URL/type summary)
ParameterTypeDescription
dbstringDatabase type (sqlite, mysql, pgsql)
db_pathstringDatabase path
hoststringDatabase host (ignored for sqlite)
portintegerDatabase port (ignored for sqlite)
pwstringDatabase password (ignored for sqlite)
schemastringPostgreSQL schema to use for CDM
userstringDatabase user (ignored for sqlite)
get_single_table_infoGet detailed information about a single table including columns and foreign keys
ParameterTypeDescription
dbstringDatabase type (sqlite, mysql, pgsql)
db_pathstringDatabase path
hoststringDatabase host (ignored for sqlite)
portintegerDatabase port (ignored for sqlite)
pwstringDatabase password (ignored for sqlite)
schemastringPostgreSQL schema to use for CDM
table_name *stringName of the table to get info for
userstringDatabase user (ignored for sqlite)
versionstringCDM version
get_table_columnsGet column names for a specific table
ParameterTypeDescription
dbstringDatabase type (sqlite, mysql, pgsql)
db_pathstringDatabase path
hoststringDatabase host (ignored for sqlite)
portintegerDatabase port (ignored for sqlite)
pwstringDatabase password (ignored for sqlite)
schemastringPostgreSQL schema to use for CDM
table_name *stringName of the table to get columns for
userstringDatabase user (ignored for sqlite)
versionstringCDM version
get_usable_table_namesGet list of all usable table names in the CDM
ParameterTypeDescription
dbstringDatabase type (sqlite, mysql, pgsql)
db_pathstringDatabase path
hoststringDatabase host (ignored for sqlite)
portintegerDatabase port (ignored for sqlite)
pwstringDatabase password (ignored for sqlite)
schemastringPostgreSQL schema to use for CDM
userstringDatabase user (ignored for sqlite)
versionstringCDM version
run_sqlExecute a SQL statement on the CDM database
ParameterTypeDescription
dbstringDatabase type (sqlite, mysql, pgsql)
db_pathstringDatabase path
fetch_resultsbooleanWhether to fetch and return results for SELECT queries
hoststringDatabase host (ignored for sqlite)
portintegerDatabase port (ignored for sqlite)
pwstringDatabase password (ignored for sqlite)
schemastringPostgreSQL schema to use for CDM
sql *stringSQL statement to execute
userstringDatabase 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

v6.4.0v6.4.0 · 23 Feb 2026What's Changed Add CdmGenericLoader: database-to-OMOP CDM ETL via JSON mapping and `pyomop-migrate` CLI by @Copilot in https://github.com/dermatologist/pyomop/pull/260 Full Changelog:…
v6.3.1v6.3.1 · 27 Jan 2026What's Changed Feature/fix time query 1 by @dermatologist in https://github.com/dermatologist/pyomop/pull/258 Full Changelog: https://github.com/dermatologist/pyomop/compare/v6.3.0...v6.3.1
v6.3.0v6.3.0 · 26 Dec 2025What's Changed Add missing MCP tools and HTTP transport support by @Copilot in https://github.com/dermatologist/pyomop/pull/256 Full Changelog: https://github.com/dermatologist/pyomop/compare/v6.2.3...v6.3.0
v6.2.3v6.2.3 · 24 Dec 2025What's Changed build(deps): bump astral-sh/setup-uv from 6 to 7 by @dependabot[bot] in https://github.com/dermatologist/pyomop/pull/245 [Automated] Dependencies upgrade by @github-actions[bot] in…
v6.1.0v6.1.0 · 29 Sep 2025What's Changed Add PyHealth compatible export function by @Copilot in https://github.com/dermatologist/pyomop/pull/243 Full Changelog: https://github.com/dermatologist/pyomop/compare/v6.0.0...v6.1.0

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
Questions

About Pyomop

How do I install Pyomop?

Run uvx pyomop, then add the server to your MCP client's configuration.

Is Pyomop safe to use with an AI agent?

Its trust score is 67 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 26 source files found that it serves MCP over stdio and HTTP with SSE, makes outbound network calls (19 calls) and writes or deletes files (5 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Pyomop still maintained?

Yes — the last commit was 2 days ago. The repository has 69 stars and 12 forks and 23 open issues.

What tools does Pyomop provide?

Conduid read 9 tools from the source: check_sql, create_cdm, create_eunomia, example_query, get_engine, get_single_table_info, get_table_columns, get_usable_table_names and 1 more. 9 of them publish their parameters, listed under Tools above.

What license is Pyomop released under?

The repository declares the GPL-3.0 license. That applies to the latest release, v6.4.0, as well.