m4-api

Community

Query clinical datasets programmatically with the M4 Python API.

Authorhannesill
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The M4 Python API lets developers access clinical datasets from code, enabling reproducible analyses without manual SQL scripting. It mirrors MCP tooling but returns native Python objects like DataFrames and dicts, supporting multi-step workflows and programmatic data exploration.

Core Features & Use Cases

  • Programmatic dataset access and configuration via set_dataset
  • Schema discovery and table introspection via get_schema and get_table_info
  • Execution of SQL queries with execute_query and direct DataFrame results
  • Ideal for iterative analyses, data validation, and integration into Python pipelines

Quick Start

Set a dataset, inspect the schema, and run SQL queries through the Python API to obtain results.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: m4-api
Download link: https://github.com/hannesill/m4/archive/main.zip#m4-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.