Medical Clinic WebMCP Template
A comprehensive HIPAA-aware WebMCP template for medical clinics and healthcare providers with 15 tools — provider search, appointment booking, insurance verification, prescription refills, telehealth info, lab results access, and patient education resources.
Load live preview on demand to keep template pages fast.
// Register find_provider tool
navigator.modelContext.registerTool({
name: "find_provider",
description: "Search for healthcare providers by specialty, name, location, or availability.",
inputSchema: {
"type": "object",
"properties": {
"specialty": {
"type": "string",
"enum": [
"family-medicine",
"internal-medicine",
"cardiology",
"dermatology",
"orthopedics",
"pediatrics",
"neurology",
"ob-gyn",
"psychiatry",
"ophthalmology",
"ent",
"gastroenterology"
],
"description": "Medical specialty to search"
},
"name": {
"type": "string",
"description": "Provider name (partial match supported)"
},
"location": {
"type": "string",
"description": "City, zip code, or neighborhood"
},
"accepting_new_patients": {
"type": "boolean",
"description": "Only show providers accepting new patients"
},
"gender": {
"type": "string",
"enum": [
"male",
"female",
"any"
],
"description": "Provider gender preference"
}
},
"required": []
},
annotations: {"readOnlyHint":true},
execute: async (params) => {
const response = await fetch("/api/find_provider", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(params),
});
return response.json();
}
});What's Included
Agents can search, filter, and inspect provider profiles by specialty, availability, gender, and insurance acceptance.
Template follows healthcare UI best practices with compliance disclaimers, secure form patterns, and patient consent reminders.
Declarative HTML form lets agents book appointments with full patient details, insurance info, and visit type selection.
Built-in tool verifies insurance acceptance before recommending providers, reducing patient friction and billing surprises.
Declarative refill request form with medication details, dosage, and pharmacy preference for seamless pharmacy coordination.
Single-file template with inline CSS and JS, dot-grid background, glass cards, and emerald accent theming.
Why This Template Works
Designed for AI agent interoperability with structured tool definitions.
Patient-Centric Journey
Tools mirror the complete patient journey from provider search to insurance check, appointment booking, and post-visit resources.
Safety-First Annotations
Sensitive actions like appointment booking and prescription refills require user interaction, preventing unintended medical commitments.
Insurance-Aware Workflow
Agents verify coverage and estimate co-pays before recommending providers, eliminating billing surprises for patients.
Comprehensive Health Resources
Patient education materials, lab results info, and telehealth guides are programmatically accessible for holistic patient support.
Implementation Guide
Follow these steps to deploy the template on your website.
Copy the HTML template
Download or copy the self-contained HTML file to your medical practice website root.
Connect to your EHR/PMS
Replace mock execute() functions with API calls to your practice management or electronic health records system.
Configure insurance & provider data
Update accepted insurance providers, plan types, provider profiles, and available appointment slots with real data.
Review HIPAA compliance
Have your compliance team verify the template meets HIPAA, state-specific regulations, and your organization policies.
Deploy and verify
Publish the page and verify all 15 tools register correctly using browser DevTools (navigator.modelContext).
Download Options
Other Industry Templates
Ready to Make Your Site Agent-Ready?
Deploy this template and start receiving structured traffic from AI agents.