ByDoctor MCP by usefulapi is an MCP server published by io.usefulapi, hosted at bydoctor.usefulapi.io. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 15 tools, including bydoctor_list_appointments, bydoctor_get_appointment, bydoctor_list_patients, bydoctor_get_patient, bydoctor_list_professionals.
Read appointments, professionals and rooms; book, update and cancel visits in ByDoctor.
4,433 connections through 5 shared values. Tap any node.
List clinic appointments, oldest update first, with filters for date range, status, modality, professional, patient and room. Use updated_since to sync only what changed. Returns results[] plus next/previous cursor URLs. GET /appointments.
| Parameter | Type | Description |
|---|---|---|
| cursor | string | Cursor from the previous page's next URL. Do not build it yourself. |
| status | string | Filter by appointment status. |
| room_id | integer | Filter by room id (from bydoctor_list_rooms). |
| end_date | string | Latest start date, YYYY-MM-DD. |
| modality | string |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| Filter by modality. |
| page_size | integer | Items per page (default 50, max 100). |
| patient_id | integer | Filter by patient id (from bydoctor_list_patients). |
| start_date | string | Earliest start date, YYYY-MM-DD. |
| updated_since | string | ISO 8601 datetime. Returns only items updated from this instant. |
| professional_id | integer | Filter by professional id (from bydoctor_list_professionals). |
{
"name": "bydoctor_list_appointments",
"title": "List appointments",
"description": "List clinic appointments, oldest update first, with filters for date range, status, modality, professional, patient and room. Use updated_since to sync only what changed. Returns results[] plus next/previous cursor URLs. GET /appointments.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cursor": {
"type": "string",
"description": "Cursor from the previous page's next URL. Do not build it yourself."
},
"status": {
"enum": [
"requested",
"scheduled",
"confirmed",
"checked_in",
"completed",
"no_show",
"cancelled"
],
"type": "string",
"description": "Filter by appointment status."
},
"room_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Filter by room id (from bydoctor_list_rooms).",
"exclusiveMinimum": 0
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest start date, YYYY-MM-DD."
},
"modality": {
"enum": [
"in_person",
"telehealth"
],
"type": "string",
"description": "Filter by modality."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Items per page (default 50, max 100).",
"exclusiveMinimum": 0
},
"patient_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Filter by patient id (from bydoctor_list_patients).",
"exclusiveMinimum": 0
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest start date, YYYY-MM-DD."
},
"updated_since": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T([01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|[+-](?:[01]\\d|2[0-3]):?[0-5]\\d)?$",
"description": "ISO 8601 datetime. Returns only items updated from this instant."
},
"professional_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Filter by professional id (from bydoctor_list_professionals).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List appointments",
"readOnlyHint": true
}
}Get one appointment by its UUID id, with patient, professional, room, type, status and times. GET /appointments/{id}.
| Parameter | Type | Description |
|---|---|---|
| appointment_id * | string | Appointment UUID (bydoctor_list_appointments). |
{
"name": "bydoctor_get_appointment",
"title": "Get an appointment",
"description": "Get one appointment by its UUID id, with patient, professional, room, type, status and times. GET /appointments/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"appointment_id"
],
"properties": {
"appointment_id": {
"type": "string",
"pattern": "^[0-9a-fA-F-]{36}$",
"description": "Appointment UUID (bydoctor_list_appointments)."
}
}
},
"annotations": {
"title": "Get an appointment",
"readOnlyHint": true
}
}Find clinic patients by exact CPF or phone, or by partial name. CPF, e-mail, birth date and gender are never returned. Use this before creating an appointment to avoid duplicate patients. GET /patients.
| Parameter | Type | Description |
|---|---|---|
| cpf | string | Exact CPF, with or without punctuation. Not returned by the API. |
| name | string | Partial name, case and accent insensitive. |
| phone | string | Exact phone in any format, e.g. (11) 98765-4321. |
| active | boolean | true = active only, false = inactive only. Omit for both. |
| cursor | string | Cursor from the previous page's next URL. Do not build it yourself. |
| page_size | integer | Items per page (default 50, max 100). |
| updated_since | string | ISO 8601 datetime. Returns only items updated from this instant. |
{
"name": "bydoctor_list_patients",
"title": "Find patients",
"description": "Find clinic patients by exact CPF or phone, or by partial name. CPF, e-mail, birth date and gender are never returned. Use this before creating an appointment to avoid duplicate patients. GET /patients.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cpf": {
"type": "string",
"description": "Exact CPF, with or without punctuation. Not returned by the API."
},
"name": {
"type": "string",
"description": "Partial name, case and accent insensitive."
},
"phone": {
"type": "string",
"description": "Exact phone in any format, e.g. (11) 98765-4321."
},
"active": {
"type": "boolean",
"description": "true = active only, false = inactive only. Omit for both."
},
"cursor": {
"type": "string",
"description": "Cursor from the previous page's next URL. Do not build it yourself."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Items per page (default 50, max 100).",
"exclusiveMinimum": 0
},
"updated_since": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T([01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|[+-](?:[01]\\d|2[0-3]):?[0-5]\\d)?$",
"description": "ISO 8601 datetime. Returns only items updated from this instant."
}
}
},
"annotations": {
"title": "Find patients",
"readOnlyHint": true
}
}Get one patient by id: name, phone, active flag and timestamps. GET /patients/{id}.
| Parameter | Type | Description |
|---|---|---|
| patient_id * | integer | Patient id (from bydoctor_list_patients). |
{
"name": "bydoctor_get_patient",
"title": "Get a patient",
"description": "Get one patient by id: name, phone, active flag and timestamps. GET /patients/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"patient_id"
],
"properties": {
"patient_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Patient id (from bydoctor_list_patients).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get a patient",
"readOnlyHint": true
}
}List the active professionals who see patients: id, name and main specialty. Use the id as professional_id. GET /professionals.
| Parameter | Type | Description |
|---|---|---|
| cursor | string | Cursor from the previous page's next URL. Do not build it yourself. |
| page_size | integer | Items per page (default 50, max 100). |
{
"name": "bydoctor_list_professionals",
"title": "List professionals",
"description": "List the active professionals who see patients: id, name and main specialty. Use the id as professional_id. GET /professionals.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cursor": {
"type": "string",
"description": "Cursor from the previous page's next URL. Do not build it yourself."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Items per page (default 50, max 100).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List professionals",
"readOnlyHint": true
}
}Get one active professional by id: name and specialty. GET /professionals/{id}.
| Parameter | Type | Description |
|---|---|---|
| professional_id * | integer | Professional id (from bydoctor_list_professionals). |
{
"name": "bydoctor_get_professional",
"title": "Get a professional",
"description": "Get one active professional by id: name and specialty. GET /professionals/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"professional_id"
],
"properties": {
"professional_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Professional id (from bydoctor_list_professionals).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get a professional",
"readOnlyHint": true
}
}List the active clinic rooms: id and name. Empty when the clinic does not use rooms. Use the id as room_id. GET /rooms.
| Parameter | Type | Description |
|---|---|---|
| cursor | string | Cursor from the previous page's next URL. Do not build it yourself. |
| page_size | integer | Items per page (default 50, max 100). |
{
"name": "bydoctor_list_rooms",
"title": "List rooms",
"description": "List the active clinic rooms: id and name. Empty when the clinic does not use rooms. Use the id as room_id. GET /rooms.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cursor": {
"type": "string",
"description": "Cursor from the previous page's next URL. Do not build it yourself."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Items per page (default 50, max 100).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List rooms",
"readOnlyHint": true
}
}Get one active room by id: name. GET /rooms/{id}.
| Parameter | Type | Description |
|---|---|---|
| room_id * | integer | Room id (from bydoctor_list_rooms). |
{
"name": "bydoctor_get_room",
"title": "Get a room",
"description": "Get one active room by id: name. GET /rooms/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"room_id"
],
"properties": {
"room_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Room id (from bydoctor_list_rooms).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get a room",
"readOnlyHint": true
}
}List the active appointment types, such as consultation or follow-up: id and name. Use the id as appointment_type_id. GET /appointment-types.
| Parameter | Type | Description |
|---|---|---|
| cursor | string | Cursor from the previous page's next URL. Do not build it yourself. |
| page_size | integer | Items per page (default 50, max 100). |
{
"name": "bydoctor_list_appointment_types",
"title": "List appointment types",
"description": "List the active appointment types, such as consultation or follow-up: id and name. Use the id as appointment_type_id. GET /appointment-types.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cursor": {
"type": "string",
"description": "Cursor from the previous page's next URL. Do not build it yourself."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Items per page (default 50, max 100).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List appointment types",
"readOnlyHint": true
}
}Get one active appointment type by id: name. GET /appointment-types/{id}.
| Parameter | Type | Description |
|---|---|---|
| appointment_type_id * | integer | Appointment type id (from bydoctor_list_appointment_types). |
{
"name": "bydoctor_get_appointment_type",
"title": "Get an appointment type",
"description": "Get one active appointment type by id: name. GET /appointment-types/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"appointment_type_id"
],
"properties": {
"appointment_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Appointment type id (from bydoctor_list_appointment_types).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get an appointment type",
"readOnlyHint": true
}
}WRITE: books a new in-person appointment with status scheduled, for an existing patient, professional and appointment type. Teleconsults are not created by the API. Needs the appointments:write scope. POST /appointments.
| Parameter | Type | Description |
|---|---|---|
| note | string | Free-text note, up to 2000 characters. |
| room_id | integer | Room id (bydoctor_list_rooms). Required when the clinic uses rooms for this slot. |
| start_at * | string | Start time, e.g. 2026-10-03T14:00:00-03:00. Seconds must be 00. Without an offset, America/Sao_Paulo is used. |
| patient_id * | integer | Patient id (find or create with bydoctor_list_patients / bydoctor_create_patient). |
| idempotency_key | string | Optional. Reuse the same key to retry the same request safely; the API returns the first result. |
| professional_id * | integer | Professional id (bydoctor_list_professionals). |
| appointment_type_id * | integer | Appointment type id (bydoctor_list_appointment_types). Required. |
{
"name": "bydoctor_create_appointment",
"title": "Create an in-person appointment",
"description": "WRITE: books a new in-person appointment with status scheduled, for an existing patient, professional and appointment type. Teleconsults are not created by the API. Needs the appointments:write scope. POST /appointments.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"patient_id",
"professional_id",
"appointment_type_id",
"start_at"
],
"properties": {
"note": {
"type": "string",
"maxLength": 2000,
"description": "Free-text note, up to 2000 characters."
},
"room_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Room id (bydoctor_list_rooms). Required when the clinic uses rooms for this slot.",
"exclusiveMinimum": 0
},
"start_at": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T([01]\\d|2[0-3]):[0-5]\\d:00(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)?$",
"description": "Start time, e.g. 2026-10-03T14:00:00-03:00. Seconds must be 00. Without an offset, America/Sao_Paulo is used."
},
"patient_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Patient id (find or create with bydoctor_list_patients / bydoctor_create_patient).",
"exclusiveMinimum": 0
},
"idempotency_key": {
"type": "string",
"minLength": 1,
"description": "Optional. Reuse the same key to retry the same request safely; the API returns the first result."
},
"professional_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Professional id (bydoctor_list_professionals).",
"exclusiveMinimum": 0
},
"appointment_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Appointment type id (bydoctor_list_appointment_types). Required.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Create an in-person appointment",
"destructiveHint": true
}
}WRITE: changes only the fields you send: start_at, professional_id, room_id, note, or status (scheduled or confirmed only). A confirmed appointment accepts only a status change; move it back to scheduled first to reschedule. Needs appointments:write. PATCH /appointments/{id}.
| Parameter | Type | Description |
|---|---|---|
| note | string | |
| status | string | New status: scheduled or confirmed. |
| room_id | integer | |
| start_at | string | Start time, e.g. 2026-10-03T14:00:00-03:00. Seconds must be 00. Without an offset, America/Sao_Paulo is used. |
| appointment_id * | string | Appointment UUID (bydoctor_list_appointments). |
| professional_id | integer |
{
"name": "bydoctor_update_appointment",
"title": "Update an appointment",
"description": "WRITE: changes only the fields you send: start_at, professional_id, room_id, note, or status (scheduled or confirmed only). A confirmed appointment accepts only a status change; move it back to scheduled first to reschedule. Needs appointments:write. PATCH /appointments/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"appointment_id"
],
"properties": {
"note": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"scheduled",
"confirmed"
],
"type": "string",
"description": "New status: scheduled or confirmed."
},
"room_id": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"start_at": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T([01]\\d|2[0-3]):[0-5]\\d:00(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)?$",
"description": "Start time, e.g. 2026-10-03T14:00:00-03:00. Seconds must be 00. Without an offset, America/Sao_Paulo is used."
},
"appointment_id": {
"type": "string",
"pattern": "^[0-9a-fA-F-]{36}$",
"description": "Appointment UUID (bydoctor_list_appointments)."
},
"professional_id": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Update an appointment",
"readOnlyHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}WRITE: cancels an in-person appointment that is scheduled (move a confirmed one back to scheduled first). Repeating the cancel returns the same result. Needs appointments:write. POST /appointments/{id}/cancel.
| Parameter | Type | Description |
|---|---|---|
| appointment_id * | string | Appointment UUID (bydoctor_list_appointments). |
{
"name": "bydoctor_cancel_appointment",
"title": "Cancel an appointment",
"description": "WRITE: cancels an in-person appointment that is scheduled (move a confirmed one back to scheduled first). Repeating the cancel returns the same result. Needs appointments:write. POST /appointments/{id}/cancel.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"appointment_id"
],
"properties": {
"appointment_id": {
"type": "string",
"pattern": "^[0-9a-fA-F-]{36}$",
"description": "Appointment UUID (bydoctor_list_appointments)."
}
}
},
"annotations": {
"title": "Cancel an appointment",
"idempotentHint": true,
"destructiveHint": true
}
}WRITE: creates a patient record and returns its id for bydoctor_create_appointment. Search by CPF or phone first to avoid duplicates; a CPF already used by another patient in the clinic is refused (409). Needs patients:write. POST /patients.
| Parameter | Type | Description |
|---|---|---|
| cpf | string | CPF, with or without punctuation. Write-only: never returned. |
| name * | string | Full name, up to 255 characters. |
| string | E-mail. Write-only: never returned. | |
| phone | string | Mobile with area code, e.g. (11) 98765-4321 or +5511987654321. |
| gender * | string | Required by the clinic: M, F or O. |
| birth_date | string | Birth date, YYYY-MM-DD. Write-only: never returned. |
| idempotency_key | string | Optional. Reuse the same key to retry the same request safely; the API returns the first result. |
{
"name": "bydoctor_create_patient",
"title": "Create a patient",
"description": "WRITE: creates a patient record and returns its id for bydoctor_create_appointment. Search by CPF or phone first to avoid duplicates; a CPF already used by another patient in the clinic is refused (409). Needs patients:write. POST /patients.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"name",
"gender"
],
"properties": {
"cpf": {
"type": "string",
"maxLength": 20,
"description": "CPF, with or without punctuation. Write-only: never returned."
},
"name": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Full name, up to 255 characters."
},
"email": {
"type": "string",
"maxLength": 100,
"description": "E-mail. Write-only: never returned."
},
"phone": {
"type": "string",
"maxLength": 40,
"description": "Mobile with area code, e.g. (11) 98765-4321 or +5511987654321."
},
"gender": {
"enum": [
"M",
"F",
"O"
],
"type": "string",
"description": "Required by the clinic: M, F or O."
},
"birth_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Birth date, YYYY-MM-DD. Write-only: never returned."
},
"idempotency_key": {
"type": "string",
"minLength": 1,
"description": "Optional. Reuse the same key to retry the same request safely; the API returns the first result."
}
}
},
"annotations": {
"title": "Create a patient",
"destructiveHint": true
}
}WRITE: changes only the fields you send. Send null to clear phone, email, cpf or birth_date; name and gender cannot be cleared. A CPF used by another patient is refused (409). Needs patients:write. PATCH /patients/{id}.
| Parameter | Type | Description |
|---|---|---|
| cpf | any | Write-only: never returned. |
| name | string | |
| any | Write-only: never returned. | |
| phone | any | |
| gender | string | one of ["M","F","O"] |
| birth_date | any | YYYY-MM-DD. Write-only: never returned. |
| patient_id * | integer | Patient id (bydoctor_list_patients). |
{
"name": "bydoctor_update_patient",
"title": "Update a patient",
"description": "WRITE: changes only the fields you send. Send null to clear phone, email, cpf or birth_date; name and gender cannot be cleared. A CPF used by another patient is refused (409). Needs patients:write. PATCH /patients/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"patient_id"
],
"properties": {
"cpf": {
"anyOf": [
{
"type": "string",
"maxLength": 20
},
{
"type": "null"
}
],
"description": "Write-only: never returned."
},
"name": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"email": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
],
"description": "Write-only: never returned."
},
"phone": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
]
},
"gender": {
"enum": [
"M",
"F",
"O"
],
"type": "string"
},
"birth_date": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date, YYYY-MM-DD."
},
{
"type": "null"
}
],
"description": "YYYY-MM-DD. Write-only: never returned."
},
"patient_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Patient id (bydoctor_list_patients).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Update a patient",
"readOnlyHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Tools for ByDoctor, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "What appointments do we have with Dr. Silva next week?"; "Find the patient with phone (11) 98765-4321 and book a follow-up on Thursday at 14:00."; "Which appointments were changed since yesterday?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes ByDoctor data. Free plan: 50 tool calls per month. Run bydoctor_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run bydoctor_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run bydoctor_upgrade without a plan: it returns both plans, each with a payment link for the user to open. bydoctor_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.