Healthcare WebMCP Template
A HIPAA-aware WebMCP template for healthcare providers with 13 tools — doctor search, appointment booking, insurance verification, telehealth info, symptom checking, and prescription refills.
Load live preview on demand to keep template pages fast.
// Register find_doctor tool
navigator.modelContext.registerTool({
name: "find_doctor",
description: "Search for doctors by specialty, name, or location",
inputSchema: {
"type": "object",
"properties": {
"specialty": {
"type": "string",
"enum": [
"primary-care",
"cardiology",
"dermatology",
"orthopedics",
"pediatrics",
"neurology",
"ob-gyn",
"psychiatry",
"ophthalmology",
"ent"
],
"description": "Medical specialty to search"
},
"name": {
"type": "string",
"description": "Doctor name (partial match)"
},
"location": {
"type": "string",
"description": "City, zip code, or neighbourhood"
},
"accepting_new_patients": {
"type": "boolean",
"description": "Only show doctors accepting new patients"
}
},
"required": []
},
annotations: {"readOnlyHint":true},
execute: async (params) => {
const response = await fetch("/api/find_doctor", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(params),
});
return response.json();
}
});What's Included
End-to-end patient journey — from finding a doctor to booking and post-visit care.
Template follows healthcare UI best practices with compliance disclaimers and secure form patterns.
Appointment booking and symptom check forms readable and submittable by AI agents.
Built-in tool lets agents check insurance acceptance before recommending doctors.
Dedicated telehealth information tool for virtual visit guidance.
Single-file template with inline CSS and JS — no external dependencies.
Why This Template Works
Designed for AI agent interoperability with structured tool definitions.
Patient-Centric Workflow
Tools mirror the real patient journey — search, verify insurance, find slots, book appointment.
Safety-First Annotations
Sensitive actions like booking and refills require user interaction, preventing unintended commitments.
Insurance-Aware
Agents can verify coverage before recommending providers, reducing friction and surprises.
Triage Intelligence
The symptom checker returns care-level recommendations so agents can guide patients appropriately.
Implementation Guide
Follow these steps to deploy the template on your website.
Download the Template
Copy the self-contained HTML file to your healthcare website root.
Connect to Your EHR/PMS
Replace mock execute() functions with API calls to your practice management or EHR system.
Configure Insurance Data
Update accepted insurance providers and plan types to match your facility.
Review Compliance
Have your compliance team verify the template meets your HIPAA and state-specific requirements.
Deploy & Monitor
Publish the page and verify all 13 tools register correctly in the WebMCP inspector.
Download Options
Other Industry Templates
Ready to Make Your Site Agent-Ready?
Deploy this template and start receiving structured traffic from AI agents.