MCP Hub
Back to servers

Dental Clinic Loan Verification MCP Server

Enables automated dental clinic loan verification by combining rule-based ID validation with LLM-powered document analysis and fraud detection. It supports provider-agnostic vision and reasoning tools to assess document consistency, verify credentials like PAN and GST, and generate comprehensive risk narratives.

glama
Updated
Mar 6, 2026

Dental Clinic Loan Verification — FastMCP Server

Provider-Agnostic LLM · Local (Slingshot) → Cloud (Horizon)


Switch LLM Provider — Zero Code Changes

# Use Anthropic Claude (default)
LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-...

# Use Google Gemini
LLM_PROVIDER=google
GOOGLE_API_KEY=AIza...
ProviderDefault modelOverride
anthropicclaude-sonnet-4-20250514LLM_MODEL=claude-opus-4-5
googlegemini-2.0-flashLLM_MODEL=gemini-1.5-pro

Phase 1 — Local Dev with VS Code / Slingshot

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env   # add your API key

.vscode/mcp.json is already in the project — VS Code and Slingshot auto-discover it. Open the folder in VS Code and the tools appear automatically in agent mode.

To switch to Gemini in VS Code, edit .vscode/mcp.json:

"env": { "LLM_PROVIDER": "google", "GOOGLE_API_KEY": "${env:GOOGLE_API_KEY}" }
python demo.py        # end-to-end demo
mcp dev server.py     # browser tool inspector

Phase 2 — Cloud Deploy on Horizon

# 1. Push to GitHub (.env in .gitignore)
git add server.py llm_tools.py llm_client.py requirements.txt .vscode/mcp.json
git push

# 2. Connect repo at https://horizon.prefect.io
#    Horizon auto-detects requirements.txt

# 3. Set secrets in Horizon dashboard:
#    LLM_PROVIDER=anthropic
#    ANTHROPIC_API_KEY=sk-ant-...

# 4. Get live URL: https://dental-loan-verifier.fastmcp.app/mcp

Switch Slingshot from local → cloud by updating .vscode/mcp.json:

{
  "servers": {
    "dental-loan-verifier": {
      "type": "http",
      "url": "https://dental-loan-verifier.fastmcp.app/mcp"
    }
  }
}

Zero code changes between local and cloud.


File Structure

dental_loan_mcp/
├── server.py          ← FastMCP server + rule-based tools
├── llm_tools.py       ← LLM sub-agent tools (provider-agnostic)
├── llm_client.py      ← Provider switch: Anthropic / Google
├── demo.py            ← Local end-to-end demo
├── requirements.txt
├── .env.example       ← Copy → .env, add keys
└── .vscode/
    └── mcp.json       ← Auto-discovered by VS Code + Slingshot

Tool Reference

ToolTypeLLM task
doc_validate_document_setRule-based stub
pan_validateRule-based stub → NSDL
fraud_registry_checkRule-based stub
aadhaar_verifyRule-based stub → UIDAI
dci_credential_verifyRule-based stub → DCI
gst_verifyRule-based stub → GST
llm_health_checkLLMShows active provider/model
llm_analyze_documentLLM VisionReads doc image, detects photo gender
llm_cross_check_documentsLLM ReasoningCross-doc inconsistencies
llm_assess_name_matchLLM LanguageIndian name judgment
llm_fraud_reasoningLLM ReasoningFraud signal clustering
llm_generate_risk_narrativeLLM LanguageFinal report writing
orchestrate_stage2_verificationOrchestratorFull execution plan

Reviews

No reviews yet

Sign in to write a review