UNPKG

@uh-joan/cortellis-mcp-server

Version:

MCP server for Cortellis drug database search and ontology exploration

18 lines (17 loc) 845 B
#!/usr/bin/env node /** * Cortellis MCP Server * * This server provides a bridge between the Model Context Protocol (MCP) and the Cortellis API. * It supports both MCP server mode (with stdio or SSE transport) and HTTP server mode for flexible integration. * * Environment Variables: * - CORTELLIS_USERNAME: Required. Username for Cortellis API authentication * - CORTELLIS_PASSWORD: Required. Password for Cortellis API authentication * - USE_HTTP: Optional. Set to 'true' to run as HTTP server (default: false) * - PORT: Optional. Port number for HTTP server (default: 3000) * - LOG_LEVEL: Optional. Logging level (default: 'info') * - TRANSPORT: Optional. MCP transport type ('stdio' or 'sse', default: 'stdio') * - SSE_PATH: Optional. Path for SSE endpoint when using SSE transport (default: '/mcp') */ import 'dotenv/config';