MCP Server for ICD-10 Medical Coding
Give AI assistants like Claude, Cursor, and VS Code Copilot the ability to code clinical text to ICD-10-CM diagnoses, search 74,000+ codes, and de-identify PHI, directly inside your editor.
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants call external tools. Instead of copy-pasting clinical text into a web UI, your AI assistant can call the AutoICD API directly: code diagnoses, look up codes, and de-identify PHI without leaving your workflow.
Quick Start
Connect your AI assistant to the AutoICD MCP server. No installation required. Just add the URL and your API key.
MCP Server URL:
https://autoicdapi.com/api/mcpAuthentication is via the Authorization: Bearer sk_... header. See setup instructions for each client below.
Setup
Add the following configuration to your MCP client. Replace sk_your_api_key with your AutoICD API key.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"autoicd": {
"url": "https://autoicdapi.com/api/mcp",
"headers": {
"Authorization": "Bearer sk_your_api_key"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"autoicd": {
"url": "https://autoicdapi.com/api/mcp",
"headers": {
"Authorization": "Bearer sk_your_api_key"
}
}
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"autoicd": {
"type": "http",
"url": "https://autoicdapi.com/api/mcp",
"headers": {
"Authorization": "Bearer sk_your_api_key"
}
}
}
}Windsurf
Add to MCP config:
{
"mcpServers": {
"autoicd": {
"url": "https://autoicdapi.com/api/mcp",
"headers": {
"Authorization": "Bearer sk_your_api_key"
}
}
}
}Available Tools
The MCP server exposes four tools that your AI assistant can call. All tools require an API key.
code_diagnosis
Extract medical diagnoses from clinical text and map them to ICD-10-CM codes
Parameters: text, top_k?, include_negated?
Example prompt: "Code this note: Patient presents with acute lower back pain radiating to the left leg. Denies any numbness."
search_codes
Search the ICD-10-CM 2025 code set by keyword or description
Parameters: query, limit?
Example prompt: "Search for ICD-10 codes related to congestive heart failure"
get_code
Get full details for a code: descriptions, synonyms, hierarchy, SNOMED CT & UMLS cross-references
Parameters: code
Example prompt: "Look up ICD-10 code M54.5"
anonymize
De-identify PHI in clinical text: names, dates, SSNs, phone numbers, emails, addresses
Parameters: text
Example prompt: "Remove all patient identifiers from: John Smith (DOB 03/15/1980) was seen at 123 Main St"
Start coding diagnoses from your editor
Sign up for a free API key and connect the AutoICD MCP server in under a minute.