Get the FREE Ultimate OpenClaw Setup Guide →

omcp

Model Context Protocol Server for the Observational Medical Outcomes Partnership (OMOP) Common Data Model

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio fastomop-omcp npx -y fastomop-omcp

How to use

omcp is an MCP server that implements the Model Context Protocol for querying and analyzing healthcare data stored in the OMOP Common Data Model. It exposes a standardized interface allowing AI models to request context, run analytical operations, and retrieve model-relevant metadata against an OMOP-formatted dataset. After starting the server, you can connect via MCP clients to execute context queries, retrieve available contexts, and perform model-driven analyses using the built-in endpoints described in the project documentation. The server is designed to work with OMOP CDM data sources and can integrate with your existing data environments to provide consistent, queryable context for model evaluation and deployment.

How to install

Prerequisites:

  • Node.js (LTS) installed on your machine
  • npm or yarn available
  • Access to an OMOP CDM-compatible data source (database) and any required credentials

Installation steps:

  1. Install via npx (recommended for MCP servers):

    • Ensure you have an internet connection
    • Run: npm install -g npx
    • Start the server with: npx -y fastomop-omcp
  2. Alternative: Install from npm (if published as a package):

    • npm install -g fastomop-omcp
    • Run: omcp-server
  3. Configuration:

    • Adjust environment variables or configuration files as needed per the project's documentation (e.g., database connection string, OMOP schema, authentication).
  4. Verify:

    • Ensure the server starts without errors and the MCP endpoints are reachable at the configured host/port as described in the documentation.

Note: Refer to the repository's documentation for any environment-specific setup (e.g., containerized deployment, secure credentials handling, and OMOP data source configuration).

Additional notes

Tips and common issues:

  • If starting with npx, ensure you have network access on first run to fetch the package.
  • Check environment variables for database connections (e.g., OMOP database URL, credentials, and schema).
  • If using Docker or containerized deployment, map the OMOP database correctly and expose the MCP endpoints.
  • Monitor logs for any schema or compatibility messages related to OMOP CDM versions.
  • Ensure the MCP client and server versions are compatible with the OMOP CDM data model and the MCP specification you are following.
  • If you encounter authentication issues, verify any token or API key requirements documented for OMCP.
  • Review rate limits or query cost controls if provided by the server to avoid abrupt request throttling.

Related MCP Servers

Sponsor this space

Reach thousands of developers