Medikode Medical Coding MCP Server

Medikode Medical Coding MCP Server

Enables AI assistants to access Medikode's medical coding platform for validating CPT/ICD-10 codes, performing chart quality assurance, parsing EOBs, calculating RAF scores, and extracting HCC codes from clinical documentation.

Category
访问服务器

README

@medikode/mcp-server

npm version License: ISC GitHub stars GitHub issues

Model Context Protocol (MCP) server for Medikode's AI-driven medical coding platform. This package enables AI assistants like Claude Desktop, Cursor, and ChatGPT to access Medikode's medical coding tools directly.

Medikode Dashboard - API Usage Trends

Medikode's AI-driven medical coding platform dashboard showing API usage trends and analytics

🌟 Features

  • 5 Powerful MCP Tools: Validate codes, QA charts, parse EOBs, calculate RAF scores, and more
  • AI Assistant Integration: Works with Claude Desktop, Cursor, ChatGPT, and other MCP-compatible clients
  • Secure: Uses your existing Medikode API keys with the same security and access controls
  • Fast: Direct API access with caching for optimal performance
  • Easy Setup: Simple configuration with npx - no local installation required

🚀 Quick Start

Installation

npm install -g @medikode/mcp-server

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

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

Cursor IDE

Add to your cursor_settings.json:

{
  "mcp": {
    "servers": {
      "medikode": {
        "command": "npx",
        "args": ["-y", "@medikode/mcp-server"],
        "env": {
          "MEDIKODE_API_KEY": "your_api_key_here"
        }
      }
    }
  }
}

🛠 Available Tools

1. validate_codes

Validates CPT/ICD-10 codes against clinical documentation.

Inputs:

  • chart_text (string, required): Provider note or chart excerpt
  • codes (array[string], required): CPT/ICD-10 codes to validate

Outputs:

  • valid (boolean): Whether codes are valid for the chart
  • recommendations (array[string]): Missing or conflicting codes

2. qa_chart

Performs a coding quality assurance check.

Inputs:

  • chart_text (string, required): Clinical documentation to review

Outputs:

  • issues_found (array[string]): Documentation or coding gaps
  • suggested_codes (array[string]): Recommended additional codes

3. parse_eob

Extracts structured data from Explanation of Benefits (EOB) documents.

Inputs:

  • eob_content (string, required): Raw EOB text (or PDF extracted text)

Outputs:

  • payer (string): Insurance payer name
  • claim_number (string): Claim reference number
  • total_billed (number): Total amount billed
  • total_allowed (number): Total amount allowed by payer
  • insurance_paid (number): Amount paid by insurance
  • patient_responsibility (number): Patient out-of-pocket amount

4. score_raf

Calculates RAF score and HCC capture from encounter documentation.

Inputs:

  • chart_text (string, required): Clinical encounter documentation

Outputs:

  • raf_score (float): Risk Adjustment Factor score
  • hcc_codes (array[string]): Hierarchical Condition Category codes

5. multi_validate

Composite workflow that validates chart coding and calculates RAF in one step.

Inputs:

  • chart_text (string, required): Clinical documentation
  • codes (array[string], optional): Optional codes to validate

Outputs:

  • validation_results (object): Results from validate_codes
  • raf_results (object): Results from score_raf

💡 Example Usage

Once configured, you can use the tools in your AI assistant:

User: "Validate these codes for this chart: 99213, I10, E11.9"

AI: I'll help you validate those codes using the validate_codes tool...
[Tool call to validate_codes]

Based on the validation results:
- Code 99213: Valid for established patient office visit
- Code I10: Valid for essential hypertension
- Code E11.9: Valid for type 2 diabetes without complications

🔑 Authentication

All tools require a valid Medikode API key. You can obtain one by:

  1. Signing up at medikode.ai
  2. Generating an API key in your account settings
  3. Setting the MEDIKODE_API_KEY environment variable

📊 Usage Tracking

All MCP tool usage is tracked and appears in your Medikode dashboard alongside regular API calls. This includes:

  • Number of API calls made
  • Charts processed
  • EOBs parsed
  • RAF scores calculated

🔧 Troubleshooting

Common Issues

MCP Server Not Found

  • Ensure Node.js and npm are installed
  • Verify the package is available via npx: npx @medikode/mcp-server --help

Authentication Errors

  • Check that your API key is correct and active
  • Verify the MEDIKODE_API_KEY environment variable is set
  • Ensure your API key has the required permissions

Tool Not Available

  • Restart your AI client after configuration changes
  • Verify the MCP server configuration is correct
  • Ensure your AI client supports MCP

📚 Documentation

🛠 Development

Prerequisites

  • Node.js 18.0.0 or higher
  • npm or yarn
  • Medikode API key

Local Development

  1. Clone the repository:

    git clone https://github.com/medikode/mcp-server.git
    cd mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables:

    cp env.example .env
    # Edit .env with your API key
    
  4. Run in development mode:

    npm run dev
    
  5. Test the MCP server:

    npm run test:routing
    

Building

npm run build

Testing

# Test WebSocket connection
node test-websocket.js

# Test ChatGPT integration
python test-chatgpt-integration.py

# Test environment routing
node test-environment-routing.js

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Code Style

  • Use ESLint for JavaScript linting
  • Follow the existing code style
  • Add tests for new features
  • Update documentation as needed

🐛 Bug Reports

Found a bug? Please open an issue with:

  • Clear description of the problem
  • Steps to reproduce
  • Expected vs actual behavior
  • Environment details (Node.js version, OS, etc.)

💡 Feature Requests

Have an idea for a new feature? We'd love to hear it! Please open an issue with:

  • Clear description of the feature
  • Use case and benefits
  • Any implementation ideas you have

📊 Changelog

See CHANGELOG.md for a list of changes and version history.

🤝 Support

📄 License

ISC License - see LICENSE file for details.

🔗 Links

🙏 Acknowledgments

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选