tebra-mcp-server
This server connects a Tebra (Kareo) practice management account to MCP-compatible AI agents, exposing 47 tools for managing patient, appointment, billing, clinical, and practice data.
Patient Management: search, create, update, and bulk-fetch patients; retrieve full records with insurance, cases, and authorizations.
Appointments: search, create, update, delete, and get appointment details; manage appointment statuses and reasons.
Encounters & Billing: create and retrieve encounters (superbills), update encounter workflow statuses, search charges, and post/retrieve payments.
Insurance & Authorizations: view patient authorizations and check insurance eligibility from on-file data.
Practice Configuration: list providers, service locations, practices, and procedure codes.
Documents: upload and delete patient documents (PDF, images).
Financial Analysis: retrieve granular transaction data for reporting.
External Vendor & System Tools: validate connection, check rate limits, register external vendors, link external IDs, and set primary patient cases.
FHIR Clinical Data (13 tools): search FHIR patients and retrieve allergies, medications, conditions, vitals, lab results, immunizations, procedures, care plans, care team, diagnostic reports, clinical documents, and devices.
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., "@tebra-mcp-server search for patient John Smith"
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.
tebra-mcp-server
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.
This is an independent open-source project. It is not affiliated with, endorsed by, or supported by Tebra Technologies, Inc.; "Tebra" and "Kareo" are trademarks of their owner, used here only to identify the API this server talks to. Tool results contain protected health information: sending them to Claude requires a Claude plan under which Anthropic signs a Business Associate Agreement (BAA). Consumer Claude plans are not covered, and confirming coverage is the responsibility of the practice operating the server.
Hosted version available
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; DOCK signs its own BAA with the practice, separate from Anthropic's), Full Practice $129/mo (both). https://dockhq.vercel.app
Quick Start
npx tebra-mcp-serverRelated MCP server: MediLinkAI
Prerequisites
Node.js 18+
Tebra SOAP API credentials (generated in Tebra PM admin under Settings > API)
(Optional) Tebra FHIR API credentials for clinical data access
Environment Variables
SOAP API (required)
Variable | Required | Description |
| Yes | SOAP API user (email) |
| Yes | SOAP API password |
| Yes | Customer key from Tebra PM admin |
| No | Override SOAP endpoint (for testing) |
FHIR API (optional -- enables 13 clinical data tools)
Variable | Required | Description |
| For FHIR | OAuth2 client ID from Tebra appSphere registration |
| For FHIR (JWKS registrations) | Path to the PEM (PKCS#8) private key for SMART Backend Services |
| With the key path | The |
| For FHIR (secret registrations) | OAuth2 client secret — the fallback used only when no key path is set |
| No | FHIR R4 base URL (defaults to |
| No | OAuth2 token endpoint (defaults to Tebra production) |
| No | OAuth2 scope (defaults to |
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. Two client authentications are supported: SMART Backend Services private_key_jwt (an appSphere Backend App registered as "Confidential (URL for JWKS)" — the server signs an RS384 client assertion with iss=sub=client id, aud=token URL, a 5-minute exp and a unique jti, sent as client_assertion with client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer; the private key is read from disk once and never transmitted) and the legacy client_secret flow. Set the key path for the former, the secret for the latter. 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".
Installation
Claude Code
Add to .mcp.json in your project root:
{
"mcpServers": {
"tebra": {
"command": "npx",
"args": ["-y", "tebra-mcp-server"],
"env": {
"TEBRA_SOAP_USER": "user@practice.com",
"TEBRA_SOAP_PASSWORD": "your-password",
"TEBRA_CUSTOMER_KEY": "your-customer-key",
"TEBRA_FHIR_CLIENT_ID": "optional-fhir-client-id",
"TEBRA_FHIR_CLIENT_SECRET": "optional-fhir-client-secret"
}
}
}
}Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"tebra": {
"command": "npx",
"args": ["-y", "tebra-mcp-server"],
"env": {
"TEBRA_SOAP_USER": "user@practice.com",
"TEBRA_SOAP_PASSWORD": "your-password",
"TEBRA_CUSTOMER_KEY": "your-customer-key"
}
}
}
}Cursor / VS Code
Add to your MCP settings:
{
"mcpServers": {
"tebra": {
"command": "npx",
"args": ["-y", "tebra-mcp-server"],
"env": {
"TEBRA_SOAP_USER": "user@practice.com",
"TEBRA_SOAP_PASSWORD": "your-password",
"TEBRA_CUSTOMER_KEY": "your-customer-key"
}
}
}
}Available Tools (47 total)
Patient Management
Tool | Description |
| Search patients by name, DOB range, insurance, practice, and more (16 server-side filters) |
| Get full patient record (by Tebra ID or external ID) with cases, insurance policies, and authorizations |
| Register a new patient with demographics, insurance, and guarantor |
| Update patient demographics and contact info |
| Bulk patient retrieval with pagination (for sync operations) |
Appointments
Tool | Description |
| Search appointments by date range, resource (provider), patient, status, location |
| Get full appointment detail including recurrence, group data, and resources |
| Create an appointment (provider, location, start time + duration/end) |
| Update or reschedule an existing appointment |
| Change only the status (Confirmed, CheckedIn, NoShow, Cancelled, ...) |
| Permanently delete an appointment |
| List configured appointment types/reasons for the practice |
| Create a new appointment type/reason |
Encounters & Billing
Tool | Description |
| Get encounter details with status, providers, and service line IDs |
| Create an encounter (superbill) with per-line diagnoses and procedures |
| Workflow transitions: Draft -> Submitted -> Approved / Rejected / Unpayable |
| Search charges with 18 filters (dates, patient name, provider, status) |
| Search payment records by post date, payer, batch, reference number |
| Post a payment to a patient account |
Insurance & Authorizations
Tool | Description |
| Get all authorizations with status, remaining visits, and CPT codes |
| Check eligibility from on-file insurance data |
Practice Configuration
Tool | Description |
| List all providers with IDs, specialties, and NPI numbers |
| List practice locations with addresses and contact info |
| Get practice metadata (name, tax ID, billing info) |
| Get procedure code catalog with descriptions and default fees |
Documents
Tool | Description |
| Upload a document (PDF, image) to a patient's chart |
| Remove a document from a patient's chart |
Financial Analysis
Tool | Description |
| Get granular transaction data for financial reporting |
External Vendor & System
Tool | Description |
| Health check -- verifies SOAP credentials and connectivity |
| Get current API rate limit status and remaining quota |
| Register an external vendor for ID linking |
| List registered external vendors |
| Link an external system ID to a Tebra patient |
| Promote an existing patient case to primary (by case ID) |
FHIR Clinical Data (requires FHIR credentials)
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 |
| Find FHIR patient IDs by name, birthdate, or identifier |
| Patient allergy and intolerance list |
| Active and historical medication list |
| Problem list / active conditions |
| Recent vital signs (BP, HR, temp, weight, BMI) |
| Lab results and observation values |
| Vaccination records |
| Procedures performed |
| Active care plans |
| Care team members and roles |
| Diagnostic reports (radiology, pathology) |
| Clinical documents (CDA, notes) |
| Implantable devices (UDI data) |
Rate Limits
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 |
| 250 ms |
| 500 ms |
| 1000 ms |
| 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.
Example Workflows
Scheduling Flow
1. tebra_get_providers -- Get provider IDs
2. tebra_get_service_locations -- Get location IDs
3. tebra_get_appointment_reasons -- Get reason/type IDs
4. tebra_create_appointment -- Create with provider, location, reason IDs
5. tebra_get_appointment_detail -- Verify creationEncounter Approval Flow
1. tebra_create_encounter -- Create superbill (status: Draft)
2. tebra_update_encounter_status -- Move to Submitted (shows as "Review" in Tebra's UI)
3. tebra_update_encounter_status -- Move to Approved (triggers billing)
OR
3. tebra_update_encounter_status -- Reject back to DraftFront-Desk Check-In Flow
1. tebra_get_appointments -- Today's schedule (resourceName = provider)
2. tebra_update_appointment_status -- CheckedIn on arrival
3. tebra_update_appointment_status -- CheckedOut at departurePayment Posting Flow
1. tebra_search_patients -- Find patient
2. tebra_get_charges -- Find outstanding charges
3. tebra_create_payment -- Post payment to patient account
4. tebra_get_payments -- Verify payment postedPatient Onboarding
1. tebra_search_patients -- Check for existing patient
2. tebra_create_patient -- Create if not found
3. tebra_update_patient_external_id -- Link Supabase client ID
4. tebra_create_appointment -- Schedule first visitClinical Context for Note Creation
1. tebra_get_appointments -- Get today's schedule
2. tebra_get_appointment_detail -- Get appointment context
3. tebra_get_patient -- Full patient demographics
4. tebra_get_patient_authorizations -- Check auth status
5. tebra_fhir_get_allergies -- Allergies
6. tebra_fhir_get_medications -- Current medications
7. tebra_fhir_get_conditions -- Problem list
8. tebra_fhir_get_vitals -- Recent vitalsTool Dependency Chains
Some tools require IDs obtained from other tools. Key dependencies:
tebra_create_appointment
requires: patientId (from tebra_search_patients or tebra_create_patient)
requires: providerId (from tebra_get_providers)
requires: locationId (from tebra_get_service_locations)
optional: reasonId (from tebra_get_appointment_reasons)
tebra_create_encounter
requires: patientId (from tebra_search_patients)
requires: providerId (from tebra_get_providers)
recommended: practiceName/practiceId (from tebra_get_practices)
optional: authorization number (from tebra_get_patient_authorizations)
tebra_create_payment
requires: patientId (from tebra_search_patients)
tebra_update_encounter_status
requires: encounterId (from tebra_create_encounter or tebra_get_encounter)
tebra_create_document
requires: patientId (from tebra_search_patients)
tebra_update_patient_external_id
requires: patientId (from tebra_search_patients or tebra_create_patient)
recommended: externalVendorId (from tebra_get_external_vendors)
tebra_set_primary_patient_case
requires: patientCaseId (from tebra_get_patient — cases[].caseId)
All clinical tebra_fhir_get_* tools
require: FHIR patientId (from tebra_fhir_search_patients — NOT the SOAP patient ID)Privacy Policy
This server runs locally and talks only to Tebra's API with your own credentials. It has no backend, no telemetry, and writes nothing to disk. Credentials and patient identifiers are scrubbed from the debug log and from error messages, and every record-returning tool takes a fields argument for minimum-necessary selection. Tool results contain protected health information, so sending them to Claude requires a Claude plan under which Anthropic signs a Business Associate Agreement. The full policy is in PRIVACY.md.
Desktop Extension (.mcpb)
manifest.json packages the server as an MCP Bundle for Claude Desktop, with every credential declared as sensitive user_config (stored in the OS keychain) and the FHIR private key as a file input. Build the bundle with:
npm run pack:mcpb # builds, prunes dev dependencies, writes tebra-mcp-server.mcpbsrc/__tests__/manifest.test.ts pins the manifest to package.json and to the tool registry, so a tool added to the server without a manifest entry fails the suite.
When installed in Claude Desktop, the FHIR private key must be an absolute path the desktop app can read (a Windows path such as C:\Users\you\keys\fhir.pem, not a path relative to some project). An unreadable key disables the 13 FHIR tools with a message on stderr; it does not stop the 34 SOAP tools. Optional fields left blank in the install form are tolerated: Claude Desktop passes them through as the literal ${user_config.<key>} placeholder, which the server treats as unset.
API Reference
The server wraps two Tebra APIs:
SOAP API v2.1 (34 tools)
Endpoint:
https://webservice.kareo.com/services/soap/2.1/KareoServices.svcAuth: RequestHeader with CustomerKey, Password, User (WSDL sequence order matters)
Request bodies generated in WSDL (
?xsd=xsd0/xsd7) member order — WCF silently drops out-of-order membersAll requests include retry with exponential backoff (3 attempts at 1s, 2s, 4s)
FHIR R4 API (13 tools)
Endpoint:
https://fhir.prd.cloud.tebra.com/fhir-request(note the hyphen — configurable viaTEBRA_FHIR_BASE_URL)Auth: OAuth2 client credentials flow against
https://fhir.prd.cloud.tebra.com/smartauth/oauth/tokenToken caching with automatic refresh before expiry and one-shot 401 retry
Bundle pagination followed automatically (up to 10 pages per search)
Development
git clone https://github.com/jamesrosing/tebra-mcp-server.git
cd tebra-mcp-server
npm install
npm run dev # tsx — runs src/index.ts directly without a build step
npm run build # tsc — compiles to dist/
npm test # node:test via tsx — 37 regression tests covering wire-format invariants
npm start # node dist/index.js — runs the compiled outputThe 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.
Roadmap
Live smoke-test suite for the 0.4.0 write shapes against a sandbox practice (shapes are WSDL-derived and unit-pinned; production verification is the remaining step)
Client-side pagination (
limit/offset+has_more) on the large list tools, mirroringtebra_get_all_patientsZod runtime validation with
.strict()schemas so misspelled arguments fail loudly instead of being droppedMigration from
Server.setRequestHandlerto the SDK'sMcpServer/registerToolAPI, addingoutputSchema/structuredContentAgent-facing evaluation set (10 read-only, verifiable questions) to catch wrong-but-plausible data — the failure class unit tests cannot see
Changelog
0.6.0 (2026-09-19)
Connectors Directory readiness. No wire-format changes.
feat(annotations): every tool carries a
titleand MCP annotations (readOnlyHint,destructiveHint,idempotentHint,openWorldHint) derived from its verb, pinned bytool-annotations.test.ts.feat(redact): PHI and credentials are scrubbed from the SOAP debug log, and patient identifiers from the request are scrubbed out of thrown error messages (SOAP faults, FHIR errors, and
tebra_get_patientargument errors). Tested against synthetic records so no identifier survives.feat(fields): record-returning tools accept
fieldsfor minimum-necessary selection (dotted paths through arrays).tebra_get_all_patientsdefaults to a roster projection;tebra_get_patientomits insurance policy and group numbers unless named.refactor(fhir): handlers take a
FhirConfigresolved once at startup, and the OAuth token cache is keyed per client.feat(mcpb):
manifest.json(MCPB 0.2) with sensitiveuser_configfor every credential,PRIVACY.md,npm run pack:mcpb, and a CI workflow that packs the bundle on version tags.fix(fhir): startup no longer exits when the FHIR key path is unreadable, and unexpanded Claude Desktop
${user_config.*}placeholders count as unset (verified live 2026-09-19: both took the desktop extension down as "Server disconnected" with no visible cause).docs: independence from Tebra and the BAA requirement stated in the README, package descriptions, and skill;
server.jsonnow marksTEBRA_SOAP_USERsecret.
0.5.1 (2026-09-06)
fix(retry safety):
tebra_create_payment(and every other Create* action) is no longer re-sent after a timeout, a reset after send, or an HTTP 5xx. Those failures are ambiguous — Tebra may have committed the write with only the response lost — and Tebra's SOAP API has no idempotency key, so the automatic retry could post a second payment to a patient's account (#13). Create* actions now retry only on failures that provably happened before Tebra could act (429 throttle, connection refused/unresolved); anything else throwsAmbiguousOutcomeErrornaming the read tool to verify with before resubmitting. Read actions keep the full 3-attempt retry.The "FHIR tools disabled" startup message and env-var doc comments now name the
private_key_jwtroute;package-lock.jsonresynced to the package version (#17).
0.5.0 (2026-09-04)
feat(FHIR auth): SMART Backend Services
private_key_jwtclient authentication. WithTEBRA_FHIR_PRIVATE_KEY_PATH+TEBRA_FHIR_KIDset, the token request carries an RS384 client assertion (iss=sub=client id,aud=token URL,exp=5 min, uniquejtiper request) instead of a secret — the shape an appSphere Backend App registered with a JWKS URL requires.client_secretremains the fallback when no key path is set; an existing secret install is unchanged.FhirConfig.clientSecretis now optional andFhirConfig.privateKeyis new. Tested offline: the assertion is verified against a published JWKS fixture, never a live token endpoint.
0.4.3 (2026-08-04)
fix(external IDs): fail closed on IDs over 25 characters in
tebra_create_patientandtebra_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.)
0.4.2 (2026-08-04)
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:
Required members (
minOccursaudit after CreatePatient faulted "Expecting element 'Practice'"): PatientCreate/PatientUpdate requirePractice; AppointmentCreate requiresPracticeId; AppointmentUpdate requiresPatientId+ServiceLocationId; DocumentCreateRequest requiresPracticeId.External IDs are vendor-scoped, unique per vendor, and silently truncated at 25 characters — writes with longer IDs now fail closed (truncation breaks every later lookup).
DocumentDateis a truexs:dateTime— date-only input is normalized to ISO midnight; US-format strings fault the deserializer (Filter date members, beingxs:string, still accept either).The
UpdatePatientsExternalIDresponse returns an emptyItemsUpdatedecho even on success — verify via the vendor-scopedExternalIDlookup ontebra_get_patientinstead.
Details:
fix(create/update_patient):
Practiceis 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_patientgains optional practiceName/practiceId args.fix(create_appointment):
PracticeIdis required — auto-resolved when omitted.fix(update_appointment):
PatientIdandServiceLocationIdare required — auto-hydrated from GetAppointment when omitted, so a status-only or reschedule-only update still works.fix(create_document):
PracticeIdis required — auto-resolved when omitted.Builders fail closed with clear messages if the required members are still missing; 3 new regression tests (39 total).
0.4.1 (2026-08-04)
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:
fix(xsd7 namespace): GetServiceLocations and GetProcedureCodes faulted with "Expecting element 'Fields'" — xsd7's targetNamespace has NO trailing slash (
…/api/schemasvs xsd0's…/api/schemas/), so their Fields/Filter members are different XML names. The envelope now declares both namespaces and those two tools emitkar7:-prefixed members.fix(get_appointment_reasons):
PracticeIdis required by the WSDL (fault when omitted). The handler now auto-resolves the account's first practice ID via GetPractices (cached) when not supplied.fix(search_patients):
ToDateOfBirthis exclusive server-side — an exactdateOfBirthsearch now sends [DOB, DOB+1) instead of a zero-width range that matched nothing.fix(rate limiting): +250ms safety margin per endpoint window — an exact-interval gap still trips Tebra's server-side 429; throttle errors (reported inside HTTP-200 ErrorResponse blocks) are now classified retryable.
fix(get_encounter): GetEncounterDetails returns EncounterStatus as a 1-based numeric code; now mapped to labels (3=Approved, verified live against the same encounter's charge rows).
fix(FHIR auth): on
invalid_scope, the token server names the scope the client is registered with — the client now retries once with that scope automatically (registrations vary betweensystem/*.readandpatient/*.read).
0.4.0 (2026-08-03)
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.
fix(list GETs): patients, appointments, payments, transactions, providers, service-locations, procedure-codes, bulk-patients, and encounter-details now put criteria in
<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→ useresourceName,payments.patientId).fix(get_patient / authorizations / eligibility):
GetPatientReqhas no Fields member at all — the ID now goes inFilter(SinglePatientFilter), so single-patient lookup works.tebra_get_patientalso gains lookup byexternalId/externalVendorId.fix(response parsers): real WSDL member names throughout — nested case/policy/authorization data (
PatientCaseData→PatientInsurancePolicyData→PatientInsurancePolicyAuthorizationData,AuthorizedNumberOfVisits),MedicalRecordNumber,NationalProviderIdentifier,PatientBatchData+nextStartKeyfor 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.fix(writes):
create/update_patientmembers 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 underCases → Policies;create/update_appointmentrewritten to the flatAppointmentCreate/Updateshape (StartTime/EndTime,PatientSummary,ProviderId);delete_appointmentwrapsAppointment;create_encounterrewritten toEncounterCreate(per-service-lineDiagnosisCode1–4,RenderingProvider,Practice);update_encounter_statuswrapsEncounterUpdateStatuswith the real enum (Draft/Submitted/Approved/Rejected/Unpayable— "Review" is a UI label, not an API status);create_paymentuses thePaymentCreatenested groups;create_documentwrapsDocumentToCreatein member order;delete_documentsendsDocumentId(case-sensitive); external-ID tools useExternalVendor/Updates→UpdateBatchbatch shapes;create_appointment_reasonin member order with integer color;validate_connectionsends the credentialsGetCustomerIdFromKeyRequestactually expects.change:
tebra_update_patient_case→tebra_set_primary_patient_case— the underlying op (UpdatePrimaryPatientCase) only promotes a case to primary byPatientCaseId; it never accepted name/payer-scenario edits. Old tool name still routes.new:
tebra_update_appointment_status— targeted status changes (CheckedIn/NoShow/Cancelled...) viaUpdateAppointmentStatus, cheaper than a full update.fix(FHIR): default base URL corrected to
https://fhir.prd.cloud.tebra.com/fhir-request(hyphen — the old/fhir/requestpath 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 repeateddateparams (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.new:
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.fix(core):
extractTag/extractAllTagsrequire a tag-name boundary (Patientno longer matchesPatientData); server version is read from package.json (was hardcoded0.2.5); server name corrected totebra-mcp-server; rate-limit table keysCreatePayment/UpdateAppointmentStatus.
0.3.2 (2026-07-15)
chore: removed the bundled project-specific integration templates (
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 shipsdist/integrations/.
0.3.1 (2026-07-07)
fix(get_charges):
<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 thePrimaryInsurance*adjudication columns (payment, contract adjustment + reason, secondary adjustment + reason, adjudication date) the explicit toggles were meant to surface.Response parser (
parseChargeBlocks, exported) drops the empty placeholder block — a no-match response previously counted as one phantom all-empty charge.statusfilter documented with live-observed enum values:Pending,Completed,Error - Rejection,Voided,Ready. At least some accounts have NODeniedstatus — denials surface asError - Rejection.Verified live against production Tebra: a 12-month, 14-window pull returned 293 real charges with populated financials; server-side
Statusfiltering confirmed working.
0.3.0 (2026-07-06)
fix(get_charges): filter criteria moved out of
<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.patientIdnow throws (ChargeFilter has no patient ID member; usepatientName).Note: Tebra enforces a server-side ≤60-day posting-date window on GetCharges.
0.2.6 (2026-07-06)
fix(get_appointment_detail):
GetAppointmentdoes NOT take theFields/Filterrequest 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', sotebra_get_appointment_detailnever worked against live Tebra.The response is the WSDL
AppointmentCreateshape — patient nested under<PatientSummary>(group attendees under<PatientSummaries>), ISOStartTime/EndTime,AppointmentStatus, enum-letterAppointmentType. The tool's output now maps these real fields (patient name + DOB, appointment mode, reason id, recurrence, group attendees, audit timestamps) instead of the fictionalAppointmentDatafield set.Verified live: full detail returned for a real appointment. Contributor lesson: single-record Tebra ops can have entirely different WSDL contracts from their list counterparts — read
?xsd=xsd0before assuming the Fields/Filter pattern.
0.2.5 (2026-04-28)
fix(soap): every GET request body now includes a sibling
<kar:Filter />after<kar:Fields>. Tebra's WSDL marksFilterasminOccurs="0", but their server-sideGetFilteredX(...)methods dereference the filter parameter without null-checking and throwNullReferenceExceptionwhen 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.Added regression test asserting
<kar:Filter />is emitted in WSDL-required order (Fields before Filter).
0.2.4 (2026-04-28)
fix(soap):
<RequestHeader>children now serialize in WSDL-required order (CustomerKey → Password → User). The previousCustomerKey → User → Passwordorder caused silent authorization failures even with valid credentials. Confirmed in writing by Tebra customer care.
0.2.3 (2026-04-28)
fix(soap):
SOAPActionHTTP header now includes theKareoServices/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.Added a regression test asserting the exact header value (
npm test).
0.2.2 (2026-04-27)
fix(soap):
RequestHeader(User/Password/CustomerKey) is now placed inside the request body where Tebra's WSDL expects it, rather than in the SOAP envelope header.
0.2.1 (2026-04-26)
Published to the MCP Registry under
com.jamesrosingmd/tebra(verified-domain namespace).
0.2.0
Initial public release.
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.
License
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.
Available Tools
34 toolstebra_check_insurance_eligibilityCheck Insurance EligibilityARead-only
Check insurance eligibility for a Tebra patient. Examines on-file insurance policies and authorization history. Note: this is an approximation based on on-file data, not a real-time payer eligibility check.
Inputs: patientId (required).
tebra_create_appointmentCreate AppointmentA
Create a new patient appointment in Tebra. Requires patient, provider, service location, start time, and either endDate or duration (minutes). Optionally set reason, mode (InOffice/Telehealth), status, and notes.
Inputs: patientId (required), startDate (required), providerId (required), serviceLocationId (required), +9 more.
tebra_create_appointment_reasonCreate Appointment ReasonA
Create a new appointment reason in Tebra with name and default duration. Color is a Tebra color code number (not hex).
Inputs: name (required), duration (required), color, practiceId.
tebra_create_documentCreate DocumentA
Upload a document to a patient record in Tebra via base64 content (PDF, JPG, PNG, TIFF — type inferred from the file extension). documentLabel must be a Tebra DocumentLabel enum value (CamelCase, no spaces), e.g.: MedicalReport, PatientAuthorizationOrReferral, PatientCorrespondence, PatientDemographics, PatientInsuranceCard, PatientDriversLicense, Superbill, ExplanationofBenefits, InsuranceCorrespondence, OperativeReport, ... Use 'Other' when unsure.
Inputs: fileName (required), patientId (required), fileContent (required), documentLabel (required), +4 more.
tebra_create_encounterCreate EncounterA
Create a new encounter (superbill) in Tebra with diagnoses and procedures. Each procedure becomes a service line carrying up to 4 ICD-10 diagnosis codes (from the encounter-level diagnoses array, or per-procedure diagnosisCodes). practiceName or practiceId is strongly recommended — Tebra requires the practice on most accounts. Returns the created encounter ID.
Inputs: diagnoses (required), patientId (required), procedures (required), providerId (required), +8 more.
tebra_create_patientCreate PatientA
Create a new patient in Tebra with demographics, address, insurance, and guarantor information. The practice is required by Tebra; if practiceName/practiceId are omitted, the account's first practice is used automatically.
Inputs: lastName (required), firstName (required), dateOfBirth (required), mrn, +16 more.
tebra_create_paymentCreate PaymentA
Create a new patient payment in Tebra. Supports Cash, Check, CreditCard, ElectronicFundsTransfer, and Other payment methods. Optionally link to an appointment and practice. Not retried after a timeout or server error (Tebra has no idempotency key, so a re-send can double-charge); if the call fails with an unknown outcome, check tebra_get_payments before resubmitting. Supply referenceNumber so any duplicate is detectable.
Inputs: amount (required), patientId (required), paymentMethod (required), payerType, +5 more.
tebra_delete_appointmentDelete AppointmentADestructiveIdempotent
Delete an appointment from Tebra by appointment ID. This is irreversible — to keep history, prefer tebra_update_appointment_status with Cancelled.
Inputs: appointmentId (required).
tebra_delete_documentDelete DocumentADestructiveIdempotent
Delete a document from Tebra by document ID. This is irreversible.
Inputs: documentId (required).
tebra_get_all_patientsGet All PatientsARead-only
Get all patients in bulk with pagination. Returns a page of patients and a continuation key for the next page. Use startKey from the previous response to get the next batch. By default each row is a roster entry (patientId, firstName, lastName, dateOfBirth, mrn, active); pass fields to request contact, insurance, or practice columns.
Inputs: fields, isActive, startKey, batchSize, +1 more.
tebra_get_appointment_detailGet Appointment DetailARead-only
Get full detail for a single appointment by ID, including recurrence rules, group data, and all resource slots.
Inputs: appointmentId (required), fields.
tebra_get_appointment_reasonsGet Appointment ReasonsARead-only
Get all appointment reasons configured in the practice. Returns reason IDs, names, default durations, and color codes. Needed to create appointments with a reason.
Inputs: practiceId.
tebra_get_appointmentsGet AppointmentsARead-only
Get appointments from Tebra within a date range. Filter by resource (provider name), patient, confirmation status, service location, reason, type, and more. To filter by provider, use resourceName with the provider full name (the WSDL has no provider ID filter).
Inputs: endDate (required), startDate (required), fields, patientId, +13 more.
tebra_get_chargesGet ChargesARead-only
Get charges from Tebra with flexible filters: date range, patient name, provider, procedure/diagnosis codes, billing status, encounter status, and more. Returns charge details with payer, adjudication, adjustment reasons, amounts, and balances. Note: posting-date range is limited to 60 days server-side.
Inputs: fields, status, toDate, billedTo, +15 more.
tebra_get_encounterGet EncounterARead-only
Get encounter details from Tebra by encounter ID, including patient, providers, status, service dates, place of service, and service line IDs.
Inputs: encounterId (required), fields.
tebra_get_external_vendorsGet External VendorsARead-only
Get all registered external vendors in Tebra with their IDs.
Inputs: no named parameters.
tebra_get_patientGet PatientARead-only
Get a full patient record from Tebra by patient ID, or by external system ID (optionally scoped to an external vendor). Includes demographics, contact info, cases, insurance policies, and authorizations. Insurance policy and group numbers are omitted unless named in fields.
Inputs: fields, patientId, externalId, externalVendorId.
tebra_get_patient_authorizationsGet Patient AuthorizationsARead-only
Get all insurance authorizations for a Tebra patient across all cases and policies. Returns auth number, approved/used/remaining visits, start/end dates, computed status (active/exhausted/expired/pending), payer contact info, and an expiring-soon warning.
Inputs: patientId (required).
tebra_get_paymentsGet PaymentsBRead-only
Get payments from Tebra with optional post-date range, payer, batch, appointment, and reference-number filters. Returns payment details with amounts, methods, and payer info. Note: the Tebra WSDL has no patient ID filter for payments.
Inputs: amount, payerName, payerType, paymentId, +10 more.
tebra_get_practicesGet PracticesARead-only
Get all practices associated with the Tebra account. Returns practice IDs, names, NPI, tax ID, and contact info.
Inputs: no named parameters.
tebra_get_procedure_codesGet Procedure CodesARead-only
Get procedure codes configured in the Tebra practice. Optionally filter by CPT code, active status, or customer-specific codes. Returns codes with official names, descriptions, and default units.
Inputs: active, searchTerm, customerSpecific.
tebra_get_providersGet ProvidersARead-only
Get providers with IDs, names, specialties, NPI, and active status. Optionally filter by full name, practice, department, or provider type. Used to resolve provider names to IDs for appointments and encounters.
Inputs: type, fullName, practiceId, practiceName, +1 more.
tebra_get_service_locationsGet Service LocationsARead-only
Get all service locations (offices/facilities). Required for creating appointments and encounters. Optionally filter by practice or location ID.
Inputs: practiceId, practiceName, serviceLocationId.
tebra_get_throttlesGet ThrottlesARead-only
Get the per-endpoint API throttle intervals (milliseconds between calls) that Tebra enforces for this account. Useful for monitoring API usage limits.
Inputs: no named parameters.
tebra_get_transactionsGet TransactionsARead-only
Get financial transactions from Tebra with optional date range, type, payer, procedure code, and practice filters. Returns transaction details with patient, claim, and insurance info.
Inputs: fields, payerType, practiceName, procedureCode, +10 more.
tebra_register_external_vendorRegister External VendorA
Register a new external vendor in Tebra for external ID mapping. Returns the vendor ID to use with tebra_update_patient_external_id.
Inputs: vendorName (required).
tebra_search_patientsSearch PatientsARead-only
Search for patients in Tebra with flexible filters. Use query/fullName for name search, or combine specific filters like firstName, lastName, DOB range, insurance company, practice, etc. Returns demographics, MRN, contact info, and primary/secondary insurance. Note: MRN and external ID are not server-side filters — use tebra_get_patient for external ID lookup.
Inputs: query, fields, gender, fullName, +15 more.
tebra_set_primary_patient_caseSet Primary Patient CaseAIdempotent
Promote an existing patient case to be the primary case, by case ID. Find case IDs via tebra_get_patient (cases[].caseId). Note: this cannot rename a case or change its payer scenario.
Inputs: patientCaseId (required).
tebra_update_appointmentUpdate AppointmentAIdempotent
Update an existing appointment in Tebra. Only provided fields will be changed. When changing startDate, also provide endDate or duration. To only change the status, prefer tebra_update_appointment_status.
Inputs: appointmentId (required), notes, endDate, duration, +8 more.
tebra_update_appointment_statusUpdate Appointment StatusAIdempotent
Update only the status of an appointment (e.g. Confirmed, CheckedIn, NoShow, Cancelled). Lighter than tebra_update_appointment — use for check-in/check-out workflows.
Inputs: appointmentId (required), appointmentStatus (required).
tebra_update_encounter_statusUpdate Encounter StatusAIdempotent
Update the status of an encounter in Tebra. Moves encounters through the billing workflow: Draft → Submitted → Approved (triggers billing) or Rejected (returns to Draft); Unpayable closes it out. Note: Tebra's UI shows Submitted encounters under 'Review'.
Inputs: status (required), encounterId (required), practiceId, practiceName.
tebra_update_patientUpdate PatientAIdempotent
Update an existing patient in Tebra. Only provided fields will be changed. The practice is required by Tebra; if practiceName/practiceId are omitted, the account's first practice is used automatically.
Inputs: patientId (required), city, email, state, +11 more.
tebra_update_patient_external_idUpdate Patient External IDAIdempotent
Set or update a patient external ID in Tebra, linking the patient to an external system. Register the vendor first with tebra_register_external_vendor and pass its numeric ID as externalVendorId.
Inputs: patientId (required), externalId (required), practiceId, externalVendorId.
tebra_validate_connectionValidate ConnectionARead-only
Validate the Tebra API credentials by retrieving the customer ID and authorization flag. Use as a health check.
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 34 tools
Most tools target a distinct Tebra resource and action, and descriptions clearly separate similar entities like appointments vs. appointment details and patients vs. patient searches. A few adjacent pairs such as get_charges/get_payments/get_transactions or check_insurance_eligibility/get_patient_authorizations could be confused, but the descriptions draw reasonable boundaries.
Every tool follows the tebra_ prefix with a consistent verb_noun snake_case pattern, such as get_patient, create_appointment, update_encounter_status, and delete_document. There are no mixed conventions, vague verbs, or unpredictable naming styles.
With 34 tools, the server is well beyond the typical well-scoped range and adds significant selection overhead for an agent. While most tools serve distinct purposes, the overall surface feels heavy for a single MCP server.
Core patient, appointment, encounter, and payment workflows are substantially covered, including create/read/update/status operations. However, there are notable gaps such as no encounter detail editing, no document retrieval/listing, and no creation or update of authorizations or patient cases.
Maintenance
Related MCP Connectors
Hosted MCP server for Cliniko — patients, appointments, availability, and invoices for AI agents.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that connects AI assistants to OpenEMR instances to manage patient records, clinical trends, and medication safety. It provides 17 tools for tasks such as patient search, drug interaction checks, and generating comprehensive health trajectories and visit preparations.17MIT
- AlicenseNot gradedqualityDmaintenanceClinical decision-support MCP server that lets AI agents reason over live FHIR patient data for medication review, appointment scheduling, and care gap identification.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for the Semble practice-management API, enabling AI agents to search for patients, contacts, and users, as well as retrieve patient relationships via read-only tools.MIT

LangCare MCP FHIR Serverofficial
AlicenseNot gradedqualityDmaintenanceEnterprise-grade MCP Server for FHIR-based EMRs. Enables AI agents to read, search, create, and update any FHIR R4 resource across major EHR systems like EPIC, Cerner, and OpenEMR.404 npm75MIT