MedixHub Model Context Protocol (MCP) Server

by profliuhao

1 166 downloads Not rated yet

About

MedixHub - A Model Context Protocol (MCP) server with a collection of medical and healthcare APIs and tools.

Explore

- Pure JavaScript implementation
- Exposes functions with standardized MCP metadata
- Executes functions with parameter validation
- Seamlessly integrates with LLMs like Ollama
- Secure API endpoints with authentication
- Supports streaming responses

- Node.js 14 or later
- npm or yarn

npm test

The server supports two authentication methods:

1. API Keys: Simple key-based authentication
2. JWT Tokens: More granular access control

In production mode, authentication is required for all endpoints except function discovery.

Configure the server through the following environment variables:

- PORT: Server port (default: 3000)
- NODE_ENV: Environment ('development' or 'production')
- OLLAMA_API_URL: URL for Ollama API
- API_KEYS: Comma-separated list of valid API keys
- FDA_API_KEY: API key for FDA drug database

See .env.example for all available options.

A Model Context Protocol (MCP) server with integrated medical and healthcare API access through MedixHub.

Features

- Pure JavaScript implementation
- Exposes functions with standardized MCP metadata
- Executes functions with parameter validation
- Seamlessly integrates with LLMs like Ollama
- Secure API endpoints with authentication
- Supports streaming responses

Implemented Functions

The server includes JavaScript implementations of these functions:

1. executeOpenTargetQuery - Executes GraphQL queries against the OpenTarget API
2. FDADrugLabelSearch - Retrieves drug information from the FDA database
3. get_drug_generic_name - Maps between generic and brand drug names
4. MonarchSearch - Searches the Monarch database for genes, diseases, or phenotypes
5. MonarchDiseasesForMultiplePhenotypes - Finds diseases matching multiple phenotypes

OpenTarget Functions

- Disease information lookup - Drug details and associations - Target (gene/protein) information - Disease-target associations - Drug-disease relationships

FDA Drug Label Functions

- Drug information search - Generic and brand name mapping - Adverse reactions lookup - Drug interactions search

Monarch Database Functions

- Biomedical entity search - Disease-phenotype associations - Gene-phenotype relationships - Multi-phenotype disease finder

Getting Started

Prerequisites

- Node.js 14 or later
- npm or yarn

Installation

1. Clone the repository

git clone https://github.com/yourusername/medixhub-mcp-server.git
cd medixhub-mcp-server

2. Install dependencies

npm install

3. Configure environment variables
```bash
cp .env.example .env

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.