Skip to main content
Glama
raelango

Medikode Medical Coding MCP Server

by raelango

Medikode MCP Server

npm License: ISC

Bring AI-powered medical coding into Claude, Cursor, and ChatGPT.

The Medikode MCP Server exposes Medikode.ai's medical coding platform through the Model Context Protocol. Coders, auditors, and revenue cycle teams can validate codes, QA charts, parse EOBs, and score risk adjustment directly from the AI assistant they already use — with every call authenticated, tracked, and billed through their Medikode account.

Medikode dashboard


Why this exists

Revenue cycle teams spend hours moving between EHRs, coding tools, and payer portals. LLM assistants are good at reading clinical notes but have no reliable source of truth for code validity, NCCI edits, or RAF weights. This server closes that gap: the assistant does the reasoning, and Medikode's platform supplies the validated, auditable answer.

Related MCP server: OMOPHub MCP Server

Tools

Tool

What it does

Typical use

validate_codes

Checks CPT / ICD-10 codes against the clinical documentation

Pre-bill validation

qa_chart

Runs a coding quality-assurance review on a chart

Audit and coder feedback

parse_eob

Extracts structured data from insurance EOBs / remittances

Payment posting, denial analysis

score_raf

Calculates Risk Adjustment Factor (RAF) scores

Risk adjustment / HCC workflows

multi_validate

Combines code validation and RAF scoring in one call

End-to-end chart review

Quick start

Requirements: Node.js 24.7+ and a Medikode API key (get one at medikode.ai).

npm install -g @medikode/mcp-server

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "medikode": {
      "command": "npx",
      "args": ["-y", "@medikode/mcp-server"],
      "env": {
        "MEDIKODE_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor

Add the same block to Cursor's MCP settings (~/.cursor/mcp.json).

Restart the client, then ask something like:

"Validate CPT 99214 with ICD-10 E11.9 against this note…"

Architecture

AI assistant (Claude / Cursor / ChatGPT)
        │  MCP (stdio or WebSocket)
        ▼
Medikode MCP Server  ── API key auth · caching · request validation (Joi)
        │  HTTPS
        ▼
Medikode API  ── prod / sandbox routing
        │
        ▼
Coding engine · NCCI edits · RAF models · usage dashboard
  • Transports: stdio for desktop clients; WebSocket for hosted and ChatGPT integrations

  • Environment routing: separate production and sandbox API endpoints

  • Security: API-key authentication, Helmet, configurable CORS, no PHI stored by the server

  • Observability: health checks, structured logging, and per-call usage in the Medikode dashboard

Configuration (self-hosted)

Copy env.example to .env:

Variable

Purpose

PORT

Server port (default 3000)

NODE_ENV

production or development

PROD_API_SERVICE_URL

Production Medikode API

SANDBOX_API_SERVICE_URL

Sandbox Medikode API

BACKEND_SERVICE_URL

Backend service URL

ALLOWED_ORIGINS

CORS allow-list

LOG_LEVEL

Logging verbosity

HEALTH_CHECK_TIMEOUT

Health-check timeout (ms)

Docker:

docker compose up -d

Development

git clone https://github.com/raelango/medikode-mcp-server.git
cd medikode-mcp-server
npm install
npm run dev

Tests cover unit behaviour, environment routing, WebSocket transport, MCP Inspector compatibility, and ChatGPT integration (test-*.js, test-chatgpt-integration.py).

See CONTRIBUTING.md and CHANGELOG.md.

  • medikode-agents — pipeline stage definitions and Claude Code skills for Medikode's coding, audit, ERA, RAF, and validation agents

License

ISC © Medikode.ai

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Healthcare billing AI for agents — 12 tools for ICD-10/CPT/HCPCS code lookup (80K+ codes), prior auth prediction, medical NER, claims validation, HIPAA compliance auditing, and provider/drug enrichment. Pay-per-call via credits or USDC.
    20
    55 npm
    3
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Provides AI agents with instant access to 10M+ OMOP medical vocabulary concepts for searching, mapping, and navigating clinical codes across SNOMED, ICD-10, RxNorm, LOINC, and more.
    11
    109 npm
    6
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI coding agents to perform surgical code analysis, semantic memory, and quality enforcement via 18 specialized MCP tools, with a real-time analytics dashboard.
    67
    MIT