Skip to main content
Glama
Barbaroso

OSCAR MCP Server

by Barbaroso

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OSCAR_DATA_DIRNoPath to the folder containing oscar.db. Overrides auto-detection.
OSCAR_MCP_INCLUDE_PIINo1 to include personal identifiers. Off by default.0
OSCAR_MCP_SQL_TIMEOUTNoSeconds a run_sql query may run before it is cancelled.10

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_profilesA

List OSCAR profiles with their data coverage. Call this first when you do not know which profile or date range is available.

get_device_infoB

Get the therapy devices recorded for a profile, including model and last import time.

list_channelsA

List the data channels OSCAR recorded, mapping numeric channel ids to human readable names such as AHI, Pressure, Leak Rate or Flow Limitation.

describe_databaseA

Describe the OSCAR database: tables, columns, foreign keys, and the join and decoding rules that make a query correct. Read this before writing run_sql.

get_daily_summariesB

Return a night-by-night table of therapy results (usage hours, AHI, event counts, pressure and leak). Dates are ISO format; omit them for all data.

get_statisticsC

Aggregate statistics for a period: usage and compliance, AHI distribution and severity band, event totals, pressure and leak summaries, plus simple trends.

get_daily_detailB

Everything recorded for one night: each session, machine settings in effect, event counts and per-channel statistics. Date must be ISO format.

get_respiratory_eventsB

Individual respiratory events (apneas, hypopneas, RERAs) for one night, with counts by type and an hourly histogram showing when they clustered. Large leak spans are reported separately from respiratory events.

get_therapy_settingsC

Machine settings over time (pressure limits, EPR, mode, ramp, humidity). Set changes_only to report just the nights where a setting changed.

get_session_detailsB

Per-channel statistics for a single session, identified by its session_db_id.

run_sqlA

Run a read-only SELECT against the OSCAR database for analysis the other tools do not cover. Only SELECT/WITH statements are permitted, and a query is cancelled if it exceeds its time budget. Call describe_database first: this schema reuses column names across tables, so a wrong join key returns zero rows instead of an error. For mask, mode and other categorical settings prefer get_therapy_settings, because raw values are device-specific codes whose meaning depends on the channel.

Prompts

Interactive templates invoked by user choice

NameDescription
review_therapyStructured review of the last N nights, with leak checked before AHI.
investigate_leakFind which nights leaked, how badly, and what changed around them.
compare_periodsTest whether something actually changed between two date ranges.
prepare_for_appointmentA factual summary to bring to an appointment, with questions to ask.

Resources

Contextual data attached and managed by the client

NameDescription
Entity and relationship modelHow OSCAR's tables map onto real concepts and how they join. Read before writing SQL with run_sql.
Metric definitionsExact formulas and provenance for AHI, RDI, therapy hours, leak and compliance.
Therapy glossaryApnea, hypopnea, clear airway, RERA, CSR, leak and other terms as OSCAR itself defines them.
Interpretation caveatsThe traps that turn a correct number into a wrong conclusion: leak invalidating AHI, clear-airway events, cross-brand comparison, single-night noise.
Complete data modelEntities, metrics, glossary and caveats in one document.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Barbaroso/oscar-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server