northstar-clinic
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@northstar-clinic Show available appointment slots"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Northstar Clinic MCP Apps demo
This branch extends the existing appointment application with text-first MCP tools and an interactive MCP App that compatible hosts such as Claude Desktop can render inside the conversation.
The teaching demo uses an in-memory AppointmentStore so it can be reset
instantly. In a production application, this module would be replaced by a
database-backed repository without changing the browser-to-API contract.
Run it
Start the clinic API and keep it running:
uv sync
uv run uvicorn clinic_api:app --host 127.0.0.1 --port 8765
uv run uvicorn clinic_api:app --host 127.0.0.1 --port 8765The browser version is at http://127.0.0.1:8765. API docs are at http://127.0.0.1:8765/docs.
Related MCP server: Ecuro Light API MCP Server
Architecture
clinic_browser.htmlis the browser UI.clinic_api.pyexposes appointment and booking HTTP endpoints.clinic_store.pyowns availability and atomic booking state.clinic_mcp.pyadapts those HTTP capabilities into MCP tools and exposes the widget resource.clinic_widget.htmlis the interactive UI rendered by the MCP host. It calls MCP tools through the MCP Apps SDK; it does not bypass the MCP server to call FastAPI directly.
Claude Desktop starts clinic_mcp.py as a local stdio MCP server. After changing
the MCP server or widget, fully quit and reopen Claude Desktop so it reconnects
and reloads the resource.
Configure the MCP server from Claude Desktop
Open the Claude Desktop app.
Press Command + , to open Settings.
In the settings sidebar, find Desktop app and select Developer.
Under Local MCP servers, click Edit Config. Claude opens its
claude_desktop_config.jsonfile in the default editor.Add the
northstar-clinicentry undermcpServers:
{
"mcpServers": {
"northstar-clinic": {
"command": "/Users/yashpatil/.local/bin/uv",
"args": [
"run",
"--directory",
"/Users/yashpatil/Developer/AI/mcp_apps",
"python",
"clinic_mcp.py"
],
"env": {
"CLINIC_API_URL": "http://127.0.0.1:8765"
}
}
}
}If the file already contains other MCP servers, add northstar-clinic inside
the existing mcpServers object instead of replacing the entire file.
Save the file, fully quit Claude Desktop with Command + Q, and reopen it.
Return to Settings → Desktop app → Developer and confirm that
northstar-clinic appears under Local MCP servers with a running status.
The FastAPI backend must be running separately before using the MCP tools:
uv run uvicorn clinic_api:app --host 127.0.0.1 --port 8765Rehearsed demo
Ask:
Use Northstar Clinic to find all available appointments and show the interactive dashboard.Filter to Dermatology in the rendered widget.
Click Book visit and review the appointment.
Enter the required contact number and reason, then click Confirm appointment.
Show that the appointment disappears from availability and that the receipt contains its reference.
Verify the same change with
GET /api/appointmentsor the browser frontend.
Branch-based lesson
git switch main # existing FastAPI + browser application
git switch codex/mcp-app # MCP server + Claude-rendered widget
git diff main..codex/mcp-appQuick checks
curl http://127.0.0.1:8765/health
curl http://127.0.0.1:8765/api/appointmentsThe API is intentionally in-memory. Restarting it restores the six seeded slots.
Available Tools
3 toolsbook_appointmentBook a clinic appointmentB
Book one available appointment for a patient.
Inputs: patient_name (required), visit_reason (required), contact_phone (required), appointment_id (required), +1 more.
find_appointmentsFind clinic appointmentsB
Find available Northstar Clinic appointments and show an interactive booking dashboard.
Inputs: date, specialty.
reset_demo_dataReset clinic demo dataA
Restore all seeded appointments so the demo can be repeated.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: find appointments, book an appointment, and reset demo data. There is no overlap or ambiguity between them.
All tools follow a consistent verb_noun pattern with lowercase and underscores. The singular/plural differences are natural and do not break the convention.
Three tools is a well-scoped count for a clinic demo server, covering the essential booking flow without unnecessary complexity.
The toolkit covers finding and booking appointments but lacks cancellation, rescheduling, or listing booked appointments, which are typical in appointment management. The demo reset helps but does not fully fill these gaps.
Related MCP Connectors
PatientNow aesthetic practice management MCP server: book appointment, reschedule appointment.
Read appointments, types, calendars and availability; create, cancel or reschedule bookings.
Read clinic appointments, patients and finances; manage bookings and patient registration.
Salon and clinic appointments: check availability, hold slots, take deposits, move and cancel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables integration with the Cliniko practice management system through MCP tools and resources. Supports patient management, appointment scheduling, and practice data access through natural language interactions.-
- FlicenseNot gradedqualityCmaintenanceExposes tools from the Ecuro Light API for managing clinical appointments, patient records, and clinic availability. It enables users to perform healthcare management tasks such as scheduling, patient search, and report generation through MCP-compatible clients.-
- FlicenseNot gradedqualityDmaintenanceEnables users to manage medical appointments by searching for doctors, checking availability, and booking sessions through a natural language interface. It serves as a reference implementation for advanced MCP features like symptom-based specialist recommendations and multi-step scheduling workflows.-
- AlicenseAqualityDmaintenanceEnables MCP-compatible clients to act as an AI receptionist for a small medical clinic, handling appointment booking and rescheduling, patient registration, intake, reminders, and FAQ answers.151MIT