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.
README
@medikode/mcp-server
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'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 excerptcodes(array[string], required): CPT/ICD-10 codes to validate
Outputs:
valid(boolean): Whether codes are valid for the chartrecommendations(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 gapssuggested_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 nameclaim_number(string): Claim reference numbertotal_billed(number): Total amount billedtotal_allowed(number): Total amount allowed by payerinsurance_paid(number): Amount paid by insurancepatient_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 scorehcc_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 documentationcodes(array[string], optional): Optional codes to validate
Outputs:
validation_results(object): Results from validate_codesraf_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:
- Signing up at medikode.ai
- Generating an API key in your account settings
- Setting the
MEDIKODE_API_KEYenvironment 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_KEYenvironment 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
-
Clone the repository:
git clone https://github.com/medikode/mcp-server.git cd mcp-server -
Install dependencies:
npm install -
Set up environment variables:
cp env.example .env # Edit .env with your API key -
Run in development mode:
npm run dev -
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
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - 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
- Issues: GitHub Issues
- Documentation: docs.medikode.ai
- Email: support@medikode.ai
- Discord: Join our community
📄 License
ISC License - see LICENSE file for details.
🔗 Links
🙏 Acknowledgments
- Built with Model Context Protocol
- Powered by Medikode medical coding platform
- Thanks to all our contributors and users!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.