Skip to main content
Glama

🦷 Dental AI Treatment Planner

Dental AI Banner

Python 3.10+ License: MIT MCP Compatible FastAPI

AI-Powered Dental Treatment Planning with YOLOv11, MCP Server, and RAG

Features β€’ Installation β€’ Usage β€’ MCP Integration β€’ API Reference β€’ Contributing


🌟 Overview

Dental AI Treatment Planner is an intelligent system that combines computer vision, retrieval-augmented generation (RAG), and the Model Context Protocol (MCP) to provide comprehensive dental diagnosis and treatment planning.

Key Capabilities

  • πŸ” X-Ray Analysis: YOLOv11-based detection of dental conditions from panoramic and periapical X-rays

  • πŸ“‹ Treatment Planning: Evidence-based recommendations from clinical guidelines (ADA, AAE, FDI)

  • πŸ’° Cost Estimation: Treatment cost estimates for Dubai/UAE market

  • πŸ€– MCP Integration: Seamless integration with Claude, ChatGPT, and other AI assistants

  • 🌐 REST API: FastAPI-based API for web and mobile applications

  • 🎨 Interactive UI: Gradio-powered demo interface


Related MCP server: LangChain Anthropic MCP Server

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Dental AI Treatment Planner                   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”‚
β”‚  β”‚   YOLOv11    │───▢│  MCP Server  │◀───│  RAG Engine  β”‚       β”‚
β”‚  β”‚  Detection   β”‚    β”‚  (FastMCP)   β”‚    β”‚ (LangChain)  β”‚       β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚
β”‚         β”‚                   β”‚                   β”‚                β”‚
β”‚         β–Ό                   β–Ό                   β–Ό                β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”‚
β”‚  β”‚ Dental X-ray β”‚    β”‚   Claude/    β”‚    β”‚  Clinical    β”‚       β”‚
β”‚  β”‚   Analysis   β”‚    β”‚   ChatGPT    β”‚    β”‚  Guidelines  β”‚       β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚
β”‚                                                                  β”‚
β”‚  OUTPUT: Diagnosis + Treatment Plan + Cost Estimate              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Features

πŸ”¬ Dental Condition Detection

Detects multiple dental conditions from X-ray images:

Condition

Description

Severity Levels

Caries

Tooth decay/cavities

Mild, Moderate

Deep Caries

Decay approaching pulp

Severe, Critical

Periapical Lesion

Infection at root tip

Critical

Impacted Tooth

Teeth unable to erupt

Moderate

Root Canal

Endodontic treatment

Treatment

Crown

Dental crown restoration

Treatment

Implant

Dental implant

Treatment

Bone Loss

Periodontal bone loss

Severe

πŸ“š Clinical Guidelines Integration

RAG-powered retrieval from:

  • American Dental Association (ADA)

  • American Association of Endodontists (AAE)

  • FDI World Dental Federation

  • European Society of Endodontology (ESE)

πŸ€– MCP Tools

Tool

Description

dental_analyze_xray

Analyze dental X-ray images

dental_get_treatment_plan

Generate evidence-based treatment plans

dental_search_guidelines

Search clinical guidelines

dental_get_cost_estimate

Get treatment cost estimates

dental_complete_diagnosis

Full diagnosis workflow


πŸ“¦ Installation

Prerequisites

  • Python 3.10 or higher

  • pip or uv package manager

  • CUDA (optional, for GPU acceleration)

Quick Install

# Clone the repository
git clone https://github.com/Kannaseka/Dental-AI-Treament-Planner.git
cd dental-ai-treatment-planner

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -e .

# Or using uv (faster)
uv pip install -e .

Install with Development Dependencies

pip install -e ".[dev]"

πŸš€ Usage

1. Command Line Interface

# Analyze an X-ray
dental-ai analyze --image path/to/xray.jpg

# Get treatment plan
dental-ai treatment --condition "Deep Caries" --severity "severe"

# Start MCP server
dental-mcp --transport stdio

2. Python API

from src.vision.dental_analyzer import DentalVisionAnalyzer
from src.rag.dental_rag import DentalGuidelinesRAG

# Initialize analyzer
analyzer = DentalVisionAnalyzer()

# Analyze X-ray
result = analyzer.analyze("dental_xray.jpg")
print(f"Risk Score: {result.risk_score}")
print(f"Detections: {len(result.detections)}")

# Get treatment plan
rag = DentalGuidelinesRAG()
plan = rag.generate_treatment_plan("Caries", "moderate")
print(f"Treatment: {plan.primary_treatment.name}")
print(f"Cost: {plan.primary_treatment.estimated_cost_range}")

3. REST API

# Start the API server
uvicorn src.api.main:app --host 0.0.0.0 --port 8000

# Or with auto-reload for development
uvicorn src.api.main:app --reload

API Endpoints:

# Analyze X-ray
curl -X POST "http://localhost:8000/api/v1/analyze" \
  -F "file=@dental_xray.jpg"

# Get treatment plan
curl -X POST "http://localhost:8000/api/v1/treatment-plan" \
  -H "Content-Type: application/json" \
  -d '{"condition": "Caries", "severity": "moderate"}'

# Get cost estimate
curl -X POST "http://localhost:8000/api/v1/cost-estimate" \
  -H "Content-Type: application/json" \
  -d '{"treatments": ["Root Canal - Molar", "Crown - Zirconia"]}'

4. Gradio Demo

# Start interactive demo
python src/api/demo.py

# Opens at http://localhost:7860

πŸ”Œ MCP Integration

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "dental-ai": {
      "command": "python",
      "args": ["-m", "src.mcp_server.server"],
      "cwd": "/path/to/dental-ai-treatment-planner"
    }
  }
}

With Claude Code

# Add MCP server
claude mcp add dental-ai -- python -m src.mcp_server.server

Example MCP Conversation

User: Analyze this dental X-ray and create a treatment plan

Claude: [Uses dental_analyze_xray tool]
I've analyzed the X-ray. Here are my findings:

**Risk Score: 65/100**

**Detected Conditions:**
1. Deep Caries (Tooth #36)
   - Severity: Severe
   - Confidence: 78%

**Recommended Treatment:**
Stepwise Caries Excavation
- Estimated Cost: AED 800 - 1,800
- Success Rate: 85%

**Recommendations:**
- Schedule treatment within 1-2 weeks
- Consider root canal if pulp exposure occurs

πŸ’° Cost Reference (Dubai Market)

Treatment

Cost Range (AED)

Fluoride Treatment

150 - 400

Composite Filling

400 - 1,000

Root Canal (Anterior)

1,500 - 3,500

Root Canal (Molar)

2,500 - 5,500

Crown (Zirconia)

2,500 - 5,000

Dental Implant

5,000 - 12,000

Surgical Extraction

1,200 - 3,500


πŸ“ Project Structure

dental-ai-treatment-planner/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ vision/
β”‚   β”‚   └── dental_analyzer.py    # YOLOv11 X-ray analysis
β”‚   β”œβ”€β”€ rag/
β”‚   β”‚   └── dental_rag.py         # Clinical guidelines RAG
β”‚   β”œβ”€β”€ mcp_server/
β”‚   β”‚   └── server.py             # MCP server implementation
β”‚   └── api/
β”‚       β”œβ”€β”€ main.py               # FastAPI REST API
β”‚       └── demo.py               # Gradio demo interface
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ models/                   # YOLO model weights
β”‚   β”œβ”€β”€ guidelines/               # Clinical guidelines PDFs
β”‚   └── sample_xrays/            # Sample X-ray images
β”œβ”€β”€ tests/
β”œβ”€β”€ docs/
β”œβ”€β”€ pyproject.toml
└── README.md

πŸ§ͺ Testing

# Run all tests
pytest

# Run with coverage
pytest --cov=src --cov-report=html

# Run specific test
pytest tests/test_vision.py -v

πŸ”§ Configuration

Environment Variables

# Model configuration
export DENTAL_MODEL_PATH=/path/to/dental_yolo.pt
export CONFIDENCE_THRESHOLD=0.25

# API configuration
export API_HOST=0.0.0.0
export API_PORT=8000

# RAG configuration
export EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2

πŸ›£οΈ Roadmap

  • YOLOv11 dental condition detection

  • RAG-based treatment planning

  • MCP server implementation

  • FastAPI REST API

  • Gradio demo interface

  • DICOM image support

  • Multi-language support (Arabic)

  • Integration with PACS systems

  • Mobile app (React Native)

  • Cloud deployment (AWS/GCP)


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ‘€ Author

Kannan Sekar

AI/ML Engineer | Computer Vision & LLM Applications

Building production AI systems for healthcare and e-commerce. 15+ years of software engineering experience with a focus on deploying scalable AI solutions.

πŸ“ Dubai, UAE | Open to remote opportunities
πŸ”— LinkedIn | Email


πŸ™ Acknowledgments


⚠️ Disclaimer

This tool is designed to assist dental professionals and should not replace professional clinical judgment. All diagnoses and treatment plans should be confirmed by qualified dental practitioners. Not intended for direct patient use without professional supervision.


⭐ Star this repo if you find it useful!

Made with ❀️ for the dental AI community

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A production-ready reasoning engine that integrates Claude AI with specialized MCP tools for knowledge retrieval, schema validation, and domain-specific rubric evaluation. It enables structured RAG-based analysis across legal, health, and science domains via a RESTful API.
    Last updated
  • A
    license
    -
    quality
    -
    maintenance
    Exposes LangChain and Anthropic Claude capabilities as tools for generating production-ready RAG systems, Supabase vector stores, and document ingestion pipelines. It enables users to instantly scaffold AI infrastructure and document processing code through natural language prompts in MCP-compatible clients.
    Last updated
  • A
    license
    A
    quality
    A
    maintenance
    An MCP server that exposes a DICOMweb-compliant DICOM archive to AI assistants. It lets any MCP-capable client search studies, series and instances, inspect metadata, read Structured and Encapsulated PDF Reports, and render image frames β€” all through natural language.
    Last updated
    9
    83
    3
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A fully modular RAG system with MCP protocol integration, enabling hybrid retrieval, multimodal support, and dual-mode transport for connecting to AI assistants like GitHub Copilot and Claude Desktop.
    Last updated
    5
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Hosted MCP server exposing US hospital procedure cost data to AI assistants

  • Local-first RAG engine with MCP server for AI agent integration.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kannaseka/Dental-AI-Treament-Planner'

If you have feedback or need assistance with the MCP directory API, please join our Discord server