ohdsi-webapi-mcp

clsweeting/ohdsi-webapi-mcp

3.1

If you are the rightful owner of ohdsi-webapi-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The OHDSI WebAPI MCP Server is a Model Context Protocol server that enables LLM agents to interact with the OHDSI WebAPI for tasks such as cohort building and analysis.

Tools
11
Resources
0
Prompts
0

OHDSI WebAPI MCP Server

Python 3.11+ License: Apache 2.0

A Model Context Protocol (MCP) server that provides LLM agents with tools to interact with OHDSI WebAPI for cohort building and analysis.

Transport Modes

This server supports two transport modes to fit different use cases:

  • stdio Mode
  • HTTP using streaming HTTP

Supported Functionality

Concept Discovery

  • search_concepts - Search for medical concepts by name or code
  • get_concept_details - Get detailed information about a specific concept
  • browse_concept_hierarchy - Navigate concept relationships and hierarchies

Cohort Building

  • create_concept_set - Build reusable concept sets
  • define_primary_criteria - Set index event criteria
  • add_inclusion_rule - Add filtering criteria with time windows
  • validate_cohort_definition - Validate cohort logic and structure

Persistence & Analysis

  • save_cohort_definition - Save cohort to WebAPI
  • load_existing_cohort - Retrieve saved cohort definitions
  • estimate_cohort_size - Preview patient counts
  • compare_cohorts - Analyze differences between cohort definitions

Documentation

Installation & running the MCP server:

  • - Complete guide for Claude Desktop, VS Code, and traditional MCP clients in stdio mode
  • - Complete guide for web integration, API access, running MCP clients in http mode.
  • .

Using with an MCP client:

  • Using
  • Using
  • Testing with

Developers:

  • [Development] - Developing & contributing.

License

Licensed under the Apache License 2.0. See for details.

Related Projects