MCP server for Tebra/Kareo practice management β patients, billing, scheduling, FHIR (45 tools)
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP server for Tebra (formerly Kareo) practice management. Connects your existing Tebra account to Claude and other MCP-compatible AI agents, exposing 34 SOAP tools and 13 FHIR clinical tools for patients, encounters, appointments, billing, documents, insurance, and clinical data. Every request body is generated from the live Tebra WSDL contract (member names and sequence order verified against KareoServices.svc?xsd=xsd0/xsd7), with a regression suite locking the wire format in place. No data is accessible without valid Tebra API credentials.
Do not want to manage credentials, hosting, and updates yourself? DOCK is the managed version of this server: encrypted per-practice auth, audit logs, draft-first write actions, and a workflow library. Founding practices lock lifetime pricing: Front Desk $49/mo (Zenoti), Billing Desk $99/mo (Tebra, BAA included), Full Practice $129/mo (both). https://dockhq.vercel.app
| Variable | Required | Description |
|---|---|---|
TEBRA_SOAP_USER | Yes | SOAP API user (email) |
TEBRA_SOAP_PASSWORD | Yes | SOAP API password |
TEBRA_CUSTOMER_KEY | Yes | Customer key from Tebra PM admin |
TEBRA_SOAP_ENDPOINT | No | Override SOAP endpoint (for testing) |
| Variable | Required | Description |
|---|---|---|
TEBRA_FHIR_CLIENT_ID | For FHIR | OAuth2 client ID from Tebra appSphere registration |
TEBRA_FHIR_CLIENT_SECRET | For FHIR | OAuth2 client secret |
TEBRA_FHIR_BASE_URL | No | FHIR R4 base URL (defaults to https://fhir.prd.cloud.tebra.com/fhir-request) |
TEBRA_FHIR_TOKEN_URL | No | OAuth2 token endpoint (defaults to Tebra production) |
TEBRA_FHIR_SCOPE | No | OAuth2 scope (defaults to system/*.read; match your appSphere registration) |
FHIR credentials are obtained through Tebra appSphere. The server uses the OAuth2 client credentials flow with automatic token caching, refresh 60s before expiry, and a one-shot retry on 401. Note: both the practice and the backend-service client must be activated by Tebra Customer Care before tokens are issued β a 401 can mean "not yet activated" rather than "bad credentials".
Add to .mcp.json in your project root:
Add to your claude_desktop_config.json:
Add to your MCP settings:
| Tool | Description |
|---|---|
tebra_search_patients | Search patients by name, DOB range, insurance, practice, and more (16 server-side filters) |
tebra_get_patient | Get full patient record (by Tebra ID or external ID) with cases, insurance policies, and authorizations |
tebra_create_patient | Register a new patient with demographics, insurance, and guarantor |
tebra_update_patient | Update patient demographics and contact info |
tebra_get_all_patients | Bulk patient retrieval with pagination (for sync operations) |
| Tool | Description |
|---|---|
tebra_get_appointments | Search appointments by date range, resource (provider), patient, status, location |
tebra_get_appointment_detail | Get full appointment detail including recurrence, group data, and resources |
tebra_create_appointment | Create an appointment (provider, location, start time + duration/end) |
tebra_update_appointment | Update or reschedule an existing appointment |
tebra_update_appointment_status | Change only the status (Confirmed, CheckedIn, NoShow, Cancelled, ...) |
tebra_delete_appointment | Permanently delete an appointment |
tebra_get_appointment_reasons | List configured appointment types/reasons for the practice |
tebra_create_appointment_reason | Create a new appointment type/reason |
| Tool | Description |
|---|---|
tebra_get_encounter | Get encounter details with status, providers, and service line IDs |
tebra_create_encounter | Create an encounter (superbill) with per-line diagnoses and procedures |
tebra_update_encounter_status | Workflow transitions: Draft -> Submitted -> Approved / Rejected / Unpayable |
tebra_get_charges | Search charges with 18 filters (dates, patient name, provider, status) |
tebra_get_payments | Search payment records by post date, payer, batch, reference number |
tebra_create_payment | Post a payment to a patient account |
| Tool | Description |
|---|---|
tebra_get_patient_authorizations | Get all authorizations with status, remaining visits, and CPT codes |
tebra_check_insurance_eligibility | Check eligibility from on-file insurance data |
| Tool | Description |
|---|---|
tebra_get_providers | List all providers with IDs, specialties, and NPI numbers |
tebra_get_service_locations | List practice locations with addresses and contact info |
tebra_get_practices | Get practice metadata (name, tax ID, billing info) |
tebra_get_procedure_codes | Get procedure code catalog with descriptions and default fees |
| Tool | Description |
|---|---|
tebra_create_document | Upload a document (PDF, image) to a patient's chart |
tebra_delete_document | Remove a document from a patient's chart |
| Tool | Description |
|---|---|
tebra_get_transactions | Get granular transaction data for financial reporting |
| Tool | Description |
|---|---|
tebra_validate_connection | Health check -- verifies SOAP credentials and connectivity |
tebra_get_throttles | Get current API rate limit status and remaining quota |
tebra_register_external_vendor | Register an external vendor for ID linking |
tebra_get_external_vendors | List registered external vendors |
tebra_update_patient_external_id | Link an external system ID to a Tebra patient |
tebra_set_primary_patient_case | Promote an existing patient case to primary (by case ID) |
These tools access clinical data via the Tebra FHIR R4 API. They require separate FHIR credentials (see Environment Variables above). If FHIR credentials are not configured, these tools will not be registered.
FHIR patient IDs are a different identifier space from SOAP patient IDs β use tebra_fhir_search_patients to resolve them. All FHIR searches follow Bundle pagination automatically (up to 10 pages), and the three resources where Tebra requires a second search parameter (MedicationRequest intent, CarePlan category, CareTeam status) get sensible defaults so they don't silently return empty.
| Tool | Description |
|---|---|
tebra_fhir_search_patients | Find FHIR patient IDs by name, birthdate, or identifier |
tebra_fhir_get_allergies | Patient allergy and intolerance list |
tebra_fhir_get_medications | Active and historical medication list |
tebra_fhir_get_conditions | Problem list / active conditions |
tebra_fhir_get_vitals | Recent vital signs (BP, HR, temp, weight, BMI) |
tebra_fhir_get_lab_results | Lab results and observation values |
tebra_fhir_get_immunizations | Vaccination records |
tebra_fhir_get_procedures | Procedures performed |
tebra_fhir_get_care_plans | Active care plans |
tebra_fhir_get_care_team | Care team members and roles |
tebra_fhir_get_diagnostic_reports | Diagnostic reports (radiology, pathology) |
tebra_fhir_get_documents | Clinical documents (CDA, notes) |
tebra_fhir_get_devices | Implantable devices (UDI data) |
The SOAP client enforces a minimum interval between calls per action, mirroring the throttling thresholds in the Tebra API Technical Guide. When a tool is called more frequently than its limit allows, the client sleeps just long enough to satisfy the interval before sending the request β calls are delayed, never dropped.
| Action | Min interval between calls |
|---|---|
GetPatient | 250 ms |
GetPractices, GetProviders, GetServiceLocations, GetProcedureCodes, GetEncounterDetails, GetAppointment, all Create* / Update* / Delete* | 500 ms |
GetPatients, GetAppointments, GetAppointmentReasons, GetCharges, GetPayments, GetTransactions, GetExternalVendors, UpdatePatient | 1000 ms |
GetAllPatients, GetThrottles | 5000 ms |
On top of client-side throttling, every SOAP call retries up to 3 times with exponential backoff (1s, 2s, 4s) before surfacing an error. Use tebra_get_throttles to query Tebra's server-side rate limit counters in real time.
Some tools require IDs obtained from other tools. Key dependencies:
The server wraps two Tebra APIs:
SOAP API v2.1 (34 tools)
https://webservice.kareo.com/services/soap/2.1/KareoServices.svc?xsd=xsd0/xsd7) member order β WCF silently drops out-of-order membersFHIR R4 API (13 tools)
https://fhir.prd.cloud.tebra.com/fhir-request (note the hyphen β configurable via TEBRA_FHIR_BASE_URL)https://fhir.prd.cloud.tebra.com/smartauth/oauth/tokenThe regression suite pins the three Tebra wire-format invariants (SOAPAction contract segment, RequestHeader order, empty-Fields/populated-Filter) plus per-tool WSDL member order for every request builder β the failure mode for all of these is a silent empty result, not an error, so the tests are the only fast feedback loop.
limit/offset + has_more) on the large list tools, mirroring tebra_get_all_patients.strict() schemas so misspelled arguments fail loudly instead of being droppedServer.setRequestHandler to the SDK's McpServer/registerTool API, adding outputSchema/structuredContenttebra_create_patient and tebra_update_patient_external_id β Tebra's external-ID storage silently truncates at 25 chars (verified live via a UNIQUE KEY collision on the truncated value), which breaks every later lookup by the full value. IDs are also unique per vendor. (This guard just missed the 0.4.2 tarball.)The write path is now production-verified: iterating a live write-smoke harness against a real practice confirmed CreatePatient, CreateAppointment, CreateDocument, and the external-ID batch + vendor-scoped lookup end-to-end (encounter write ops remain opt-in to verify). The runs surfaced four additional wire facts, all fixed here:
minOccurs audit after CreatePatient faulted "Expecting element 'Practice'"): PatientCreate/PatientUpdate require Practice; AppointmentCreate requires PracticeId; AppointmentUpdate requires PatientId+ServiceLocationId; DocumentCreateRequest requires PracticeId.DocumentDate is a true xs:dateTime β date-only input is normalized to ISO midnight; US-format strings fault the deserializer (Filter date members, being xs:string, still accept either).UpdatePatientsExternalID response returns an empty ItemsUpdated echo even on success β verify via the vendor-scoped ExternalID lookup on tebra_get_patient instead.Details:
Practice is a required member of PatientCreate AND PatientUpdate β now always emitted; when practiceName/practiceId are omitted, the account's first practice is auto-resolved via GetPractices (cached). tebra_update_patient gains optional practiceName/practiceId args.PracticeId is required β auto-resolved when omitted.PatientId and ServiceLocationId are required β auto-hydrated from GetAppointment when omitted, so a status-only or reschedule-only update still works.PracticeId is required β auto-resolved when omitted.Live production verification of the 0.4.0 shapes β a full read-only smoke pass (24 checks: every SOAP read tool plus the FHIR pipeline) now passes against a real Tebra practice. Fixes found only by going live:
β¦/api/schemas vs xsd0's β¦/api/schemas/), so their Fields/Filter members are different XML names. The envelope now declares both namespaces and those two tools emit kar7:-prefixed members.PracticeId is required by the WSDL (fault when omitted). The handler now auto-resolves the account's first practice ID via GetPractices (cached) when not supplied.ToDateOfBirth is exclusive server-side β an exact dateOfBirth search now sends [DOB, DOB+1) instead of a zero-width range that matched nothing.invalid_scope, the token server names the scope the client is registered with β the client now retries once with that scope automatically (registrations vary between system/*.read and patient/*.read).Full-surface WSDL contract audit. Every request builder was re-derived from the live WSDL (KareoServices.svc?xsd=xsd0/xsd7), which surfaced that the Fields/Filter misplacement fixed for GetCharges in 0.3.0 affected every other list GET, and that most write operations used wrong wrapper elements or member names. The failure mode in all cases is silent (unfiltered results, dropped fields, or server-side faults), which is why these survived so long. 26 new regression tests pin the corrected shapes.
<kar:Filter> (WSDL sequence order) with an empty <kar:Fields/> β previously all of their filter args were silently ignored, and every call returned the unfiltered set. Args with no WSDL filter member now fail closed with guidance (patients.mrn, appointments.providerId β use resourceName, payments.patientId).GetPatientReq has no Fields member at all β the ID now goes in Filter (SinglePatientFilter), so single-patient lookup works. tebra_get_patient also gains lookup by externalId/externalVendorId.PatientCaseData β PatientInsurancePolicyData β PatientInsurancePolicyAuthorizationData, AuthorizedNumberOfVisits), MedicalRecordNumber, NationalProviderIdentifier, PatientBatchData + nextStartKey for bulk paging, ThrottleDetail, ExternalVendorData, EncounterDetailsData. Previous names matched nothing, so insurance/auth/case data always parsed empty. All list parsers drop Tebra's phantom empty placeholder row.create/update_patient members re-ordered to WSDL sequence (out-of-order members were silently dropped β DOB, gender, email, address never persisted) with correct names (SocialSecurityNumber, PatientExternalID, MedicalRecordNumber) and insurance nested under Cases β Policies; create/update_appointment rewritten to the flat AppointmentCreate/Update shape (StartTime/EndTime, PatientSummary, ProviderId); delete_appointment wraps Appointment; create_encounter rewritten to EncounterCreate (per-service-line DiagnosisCode1β4, RenderingProvider, Practice); update_encounter_status wraps EncounterUpdateStatus with the real enum (Draft/Submitted/Approved/Rejected/Unpayable β "Review" is a UI label, not an API status); create_payment uses the PaymentCreate nested groups; create_document wraps DocumentToCreate in member order; delete_document sends DocumentId (case-sensitive); external-ID tools use ExternalVendor / UpdatesβUpdateBatch batch shapes; create_appointment_reason in member order with integer color; validate_connection sends the credentials GetCustomerIdFromKeyRequest actually expects.tebra_update_patient_case β tebra_set_primary_patient_case β the underlying op (UpdatePrimaryPatientCase) only promotes a case to primary by PatientCaseId; it never accepted name/payer-scenario edits. Old tool name still routes.tebra_update_appointment_status β targeted status changes (CheckedIn/NoShow/Cancelled...) via UpdateAppointmentStatus, cheaper than a full update.https://fhir.prd.cloud.tebra.com/fhir-request (hyphen β the old /fhir/request path returns HTTP 200 with an empty body for every call, verified live 2026-08-03); empty-200 responses now raise a descriptive configuration error; 401 triggers one automatic token refresh + retry; from/to date ranges emit two repeated date params (previously percent-encoded into one malformed value); Bundle pagination followed automatically (link[rel=next], up to 10 pages, truncation flagged); required second search params defaulted (MedicationRequest intent=order, CarePlan category=assess-plan, CareTeam status=active) β without them Tebra returns a silent empty bundle.tebra_fhir_search_patients β FHIR Patient lookup by name/birthdate/identifier; FHIR patient IDs are a separate identifier space from SOAP IDs and previously had no in-server resolution path.extractTag/extractAllTags require a tag-name boundary (Patient no longer matches PatientData); server version is read from package.json (was hardcoded 0.2.5); server name corrected to tebra-mcp-server; rate-limit table keys CreatePayment/UpdateAppointmentStatus.src/integrations/epic-notes-integration.ts, src/integrations/fal-integration.ts) and every reference to them (README "Integration Services" section, workflow-example labels, contributor docs). These were copy-paste connector modules for external downstream projects β never imported by the server and not part of its runtime β so they did not belong in the published package. No MCP tools were added or removed; the 45-tool surface is unchanged and the compiled tarball no longer ships dist/integrations/.<kar:Fields/> is now sent EMPTY. 0.3.0's explicit column toggles triggered Tebra's projection-inversion quirk β every call returned a single empty <ChargeData/> placeholder (zero real fields, no fault) regardless of filter matches. Empty Fields returns the full record, including the PrimaryInsurance* adjudication columns (payment, contract adjustment + reason, secondary adjustment + reason, adjudication date) the explicit toggles were meant to surface.parseChargeBlocks, exported) drops the empty placeholder block β a no-match response previously counted as one phantom all-empty charge.status filter documented with live-observed enum values: Pending, Completed, Error - Rejection, Voided, Ready. At least some accounts have NO Denied status β denials surface as Error - Rejection.Status filtering confirmed working.<kar:Fields> into <kar:Filter>, emitted in WSDL (xsd0) sequence order β inside Fields they were silently skipped by WCF, so GetCharges returned unfiltered data for the package's entire history. patientId now throws (ChargeFilter has no patient ID member; use patientName).GetAppointment does NOT take the Fields/Filter request shape the list endpoints use. Per the live WSDL (KareoServices.svc?xsd=xsd0), GetAppointmentReq = RequestBase + <Appointment>{ AppointmentId: xs:long } (lowercase "d"). The old envelope faulted on every call with 'EndElement' 'request' β¦ Expecting element 'Appointment', so tebra_get_appointment_detail never worked against live Tebra.AppointmentCreate shape β patient nested under <PatientSummary> (group attendees under <PatientSummaries>), ISO StartTime/EndTime, AppointmentStatus, enum-letter AppointmentType. The tool's output now maps these real fields (patient name + DOB, appointment mode, reason id, recurrence, group attendees, audit timestamps) instead of the fictional AppointmentData field set.?xsd=xsd0 before assuming the Fields/Filter pattern.<kar:Filter /> after <kar:Fields>. Tebra's WSDL marks Filter as minOccurs="0", but their server-side GetFilteredX(...) methods dereference the filter parameter without null-checking and throw NullReferenceException when it's absent. Tools patched: practices, providers, service-locations, procedure-codes, transactions, payments, charges, encounters, patients (search + get-by-id), bulk-patients, appointments. Without 0.2.5, every GET call fails with a server-side NullRef.<kar:Filter /> is emitted in WSDL-required order (Fields before Filter).<RequestHeader> children now serialize in WSDL-required order (CustomerKey β Password β User). The previous CustomerKey β User β Password order caused silent authorization failures even with valid credentials. Confirmed in writing by Tebra customer care.SOAPAction HTTP header now includes the KareoServices/ WCF contract segment that Kareo's dispatcher requires. Versions 0.2.2 and earlier sent ${SOAP_NAMESPACE}${operation}, which the dispatcher rejected with HTTP 500 (ContractFilter mismatch at the EndpointDispatcher). Header value is now also explicitly quoted per RFC 3902 Β§3.2.npm test).RequestHeader (User/Password/CustomerKey) is now placed inside the request body where Tebra's WSDL expects it, rather than in the SOAP envelope header.com.jamesrosingmd/tebra (verified-domain namespace).Upgrade urgently from 0.2.4 or earlier. All prior releases hit at least one of the three wire-format bugs above, and only 0.2.5 satisfies all three of Tebra's WSDL/runtime requirements end-to-end.
MIT License
Copyright (c) 2026 James H. Rosing, MD, FACS
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tebra)<a href="https://allmcps.com/mcp/tebra"><img src="https://allmcps.com/api/badge/tebra?style=directory" alt="Tebra on AllMCPs" /></a>