Back to Home
openpharma-org icon

nlm-codes-mcp

Verified Safe

by openpharma-org

Overview

This server provides a unified tool for AI assistants to search and access various clinical coding systems, medical data tables, and healthcare provider information through the National Library of Medicine's Clinical Tables API.

Installation

Run Command
npx codes-mcp-server

Environment Variables

  • SERVER_NAME
  • SERVER_VERSION
  • USE_HTTP
  • USE_SSE
  • PORT
  • SSE_PATH
  • LOG_LEVEL
  • NODE_ENV
  • DEV_MODE
  • DEBUG
  • CORS_ORIGINS
  • REQUEST_TIMEOUT
  • MAX_REQUEST_SIZE
  • ENABLE_PERFORMANCE_MONITORING
  • METRICS_INTERVAL
  • MAX_CONNECTIONS
  • ENABLE_EXPERIMENTAL_FEATURES
  • CLINICAL_API_BASE_URL
  • ENABLE_ICD_TOOLS
  • ENABLE_LOINC_TOOLS
  • ENABLE_DRUG_TOOLS
  • ENABLE_GENOMIC_TOOLS
  • ENABLE_NPI_TOOLS
  • HEALTH_CHECK_PATH
  • SHUTDOWN_TIMEOUT
  • PROCESS_TITLE

Security Notes

The server acts as a proxy to the NLM Clinical Tables API. Input parameters (`terms`, `maxList`, `offset`, `count`) are validated. The `additionalQuery` parameter, which accepts Elasticsearch-like syntax, includes logic (`validateAndProcessAdditionalQuery`) to detect and transform/warn about complex parentheses, mitigating potential query injection issues against the upstream NLM API. No `eval` or obvious hardcoded secrets are present in the provided source. Default CORS is set to '*' with a warning for production environments in the configuration validation. Uncaught exceptions and unhandled rejections are logged but do not cause the process to exit, a design choice for resilience that might require careful monitoring in production.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Stars0
Forks0
Last Update2025-12-16

Tags

clinical datamedical codeshealthcareAPI proxyAI tools