About Tealflowmcp
Tealflowmcp is an MCP server published by Appsilon in the Developer Tools category: mCP server for building Teal R Shiny apps with AI assistance. Clinical trial data analysis made easy with Claude, Copilot & more. Conduid read 14 tools from its source: tealflow_agent_guidance, tealflow_check_dataset_requirements, tealflow_check_shiny_startup, tealflow_discover_datasets, tealflow_generate_data_loading, tealflow_generate_module_code and 8 more. It is published to PyPI as tealflow-mcp and runs with uvx.
The repository has 30 stars and 6 forks, and its last commit was on 30 Oct 2026. The latest release is v0.2.0 (27 Feb 2026). It follows v0.1.4 (17 Feb 2026), and the 4 most recent releases go back to v0.1.3.post1 (13 Feb 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, shiny, clinical-trials and teal.
Install
uvx tealflow-mcppip install tealflow-mcpgit clone https://github.com/Appsilon/TealFlowMCPTools (14)
tealflow_agent_guidanceGet comprehensive guidance for assisting users with Teal application development.tealflow_check_dataset_requirementsCheck if required datasets are available for a specific module.| Parameter | Type | Description |
|---|---|---|
| available_datasets * | array | List of available dataset names (e.g., ['ADSL', 'ADLB', 'ADVS']). |
| module_name * | string | Name of the module to check dataset requirements for. |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_check_shiny_startupCheck if a Shiny app starts without errors.| Parameter | Type | Description |
|---|---|---|
| app_filename | string | Name of the app file to run (e.g., 'app.R', 'server.R'). Defaults to "app.R". |
| app_path | string | Path to the Shiny app directory. Defaults to ".". |
| timeout_seconds | integer | Maximum time in seconds to allow the app to start (1-120). Defaults to 15. |
tealflow_discover_datasetsDiscover ADaM datasets in a directory.| Parameter | Type | Description |
|---|---|---|
| data_directory * | string | **Absolute path** to the directory containing dataset files. Example: '/home/user/project/data/' or 'C:\\Users\\user\\project\\data\\'. |
| file_formats | array | List of file formats to include (e.g., ['Rds', 'csv']). If None, all supported formats are included. Defaults to None. |
| pattern | string | File pattern to match (default: 'AD*' for ADaM datasets). Defaults to 'AD*'. |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_generate_data_loadingGenerate R code for loading discovered datasets and creating a teal_data object.| Parameter | Type | Description |
|---|---|---|
| datasets * | array | List of dataset dictionaries from discovery. Each dictionary must contain: - name: Dataset name (e.g., "ADSL") - path: Absolute path to dataset file - format: File format ("Rds" or "csv") - is_standard_adam: Whether it's a standard ADaM dataset |
| project_directory | string | Absolute path to the project directory. If provided, dataset paths within this directory will use relative paths. If None or datasets are outside, absolute paths will be used. Defaults to None. |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_generate_module_codeGenerate R code for adding a module to a Teal application.| Parameter | Type | Description |
|---|---|---|
| include_comments | boolean | Whether to include explanatory comments in the generated code. Defaults to True. |
| module_name * | string | Name of the module to generate code for (e.g., 'tm_g_km', 'tm_t_coxreg', 'tm_g_scatterplot'). |
| parameters | object | Optional parameter overrides as JSON object. Defaults to None. (Not yet implemented) |
tealflow_get_app_templateGet the Teal application template as a starting point for building apps.| Parameter | Type | Description |
|---|---|---|
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_get_dataset_infoGet detailed information about a dataset file including columns, types, and row count.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | **Absolute path** to the dataset file (.rds or .csv). Example: '/home/user/data/ADSL.Rds' or 'C:\\Users\\user\\data\\ADSL.csv'. |
| include_sample_values | boolean | Whether to include sample values (first 5 unique values) for each column. Useful for understanding data content. Defaults to True. |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_get_module_detailsGet comprehensive details about a specific Teal module including all parameters and R help documentation.| Parameter | Type | Description |
|---|---|---|
| module_name * | string | Name of the module (e.g., 'tm_g_km', 'tm_t_coxreg', 'tm_g_scatterplot'). |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_list_datasetsList available clinical trial datasets in the project.| Parameter | Type | Description |
|---|---|---|
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_list_modulesList all available Teal modules with their descriptions and dataset requirements.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category like 'graphics', 'tables', 'analysis'. Defaults to None. |
| package | string | Filter by package - 'clinical', 'general', or 'all'. Defaults to 'all'. |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_search_modules_by_analysisSearch for Teal modules that perform a specific type of analysis.| Parameter | Type | Description |
|---|---|---|
| analysis_type * | string | Type of analysis to search for (e.g., 'survival', 'safety', 'efficacy', 'data exploration', 'visualization', 'kaplan-meier', 'forest plot', 'cox regression', 'scatter plot'). |
| response_format | string | Output format - 'markdown' for human-readable or 'json' for machine-readable. Defaults to 'markdown'. |
tealflow_setup_renv_environmentPrepare an R project directory so it is ready to run Teal Shiny applications.| Parameter | Type | Description |
|---|---|---|
| project_path | string | **ABSOLUTE** path to the R project directory. MUST be an absolute path (e.g., "/home/user/project" or "C:\\Users\\user\\project"). Relative paths like "." will resolve to the MCP server's directory, not the user's project. Defaults to "." but should always be explicitly provided as an absolute path. |
| response_format | string | Output format - 'json' or 'markdown'. Defaults to 'json'. |
tealflow_snapshot_renv_environmentCreate an renv snapshot of the current R project environment.| Parameter | Type | Description |
|---|---|---|
| project_path | string | **ABSOLUTE** path to the R project directory. MUST be an absolute path (e.g., "/home/user/project" or "C:\\Users\\user\\project"). Relative paths like "." will resolve to the MCP server's directory, not the user's project. Defaults to "." but should always be explicitly provided as an absolute path. |
| response_format | string | Output format - 'json' or 'markdown'. Defaults to 'json'. |
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.1K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 30 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
- stdiotealflow_mcp/server.py:995
- Starts other programs
- 4 callstealflow_mcp/tools/check_shiny_startup.py:126, tealflow_mcp/tools/setup_renv.py:72, tealflow_mcp/tools/snapshot_renv.py:66
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 30 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README