{"data":{"name":"io.github.cyanheads/clinicaltrialsgov-mcp-server","title":null,"description":"Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.","version":"2.10.0","websiteUrl":null,"repositoryUrl":"https://github.com/cyanheads/clinicaltrialsgov-mcp-server","remotes":[{"url":"https://clinicaltrials.caseyjhand.com/mcp","type":"streamable-http"}],"packages":[{"version":"2.10.0","identifier":"clinicaltrialsgov-mcp-server","runtimeHint":"stdio","registryType":"npm","runtimeArguments":null,"environmentVariables":null},{"version":"2.10.0","identifier":"clinicaltrialsgov-mcp-server","runtimeHint":"streamable-http","registryType":"npm","runtimeArguments":null,"environmentVariables":null}],"status":"active","isLatest":true,"publishedAt":"2026-10-14T15:36:19.561Z","updatedAt":"2026-10-14T15:36:19.561Z","source":"official-registry","verification":"official","confidence":100,"stars":null,"sources":[{"stars":null,"title":null,"source":"official-registry","sourceId":"io.github.cyanheads/clinicaltrialsgov-mcp-server","updatedAt":"2026-10-14T15:36:19.561Z","confidence":100,"websiteUrl":null,"description":"Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.","verification":"official","repositoryUrl":"https://github.com/cyanheads/clinicaltrialsgov-mcp-server"}],"toolIndex":{"tools":[{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_find_eligible","title":"Clinicaltrials Find Eligible","description":"Find candidate clinical trials for a patient profile. Provide age, sex, conditions, and location to get studies with their demographic limits, contact information, and recruiting locations. Candidates are matched on age, sex, location, recruitment status, and ClinicalTrials.gov's fuzzy condition search only — inclusion/exclusion criteria are not checked, and a candidate can exclude the requested condition, so review each one's criteria with clinicaltrials_get_study_record before treating it as a match. Results are re-ranked so studies whose own condition matches a requested condition surface above tangential matches from ClinicalTrials.gov's fuzzy condition search. Each candidate returns only the sites matching the requested location (capped by locationLimit), not the study's full registered site list — a large trial can register hundreds of sites worldwide. When none of a candidate's matched sites is recruiting, one recruiting site is added so an enrollable site is never hidden behind a closer closed one: the one nearest the matched sites by their published coordinates, in the requested country whenever a site there recruits, carrying distanceMi, or the first in match order when coordinates are missing. Fetch a study's complete record with clinicaltrials_get_study_record.","inputSchema":{"type":"object","properties":{"age":{"type":"integer","minimum":0,"maximum":120,"description":"Patient age as a whole number in ageUnit (years unless ageUnit says otherwise)."},"ageUnit":{"description":"Unit age is given in: years (default), months, weeks, or days; case and singular forms are accepted. Use a smaller unit for an infant or young child whose eligibility window is narrower than a year — age 7 with ageUnit \"months\" matches a study registered for 6 Months to 8 Months, which no whole number of years reaches. ClinicalTrials.gov compares ages across units, so the unit only sets how precisely age is stated.","type":"string","enum":["years","months","weeks","days"]},"sex":{"type":"string","enum":["FEMALE","MALE","ALL"],"description":"Patient's biological sex. Use 'ALL' to include studies regardless of sex restrictions."},"conditions":{"type":"array","items":{"type":"string"},"description":"Medical conditions or diagnoses, e.g. [\"Type 2 Diabetes\", \"Hypertension\"]. Each entry is matched as a condition: an entry containing whitespace is quoted and matches as a phrase, and any other entry is sent as written, punctuation included (double quotes are stripped from every entry); multiple entries are combined with OR, so studies for any listed condition qualify. Returned studies are re-ranked so those whose own condition list names a requested condition rank above tangential matches the upstream fuzzy search pulls in via the MeSH umbrella."},"location":{"type":"object","properties":{"country":{"type":"string","description":"Country name, e.g. \"United States\". Common synonyms rank sites as the registry spelling does: USA and US as United States, UK and England as United Kingdom, Czech Republic as Czechia, Republic of Korea as South Korea, and PR, GU, VI, AS, and MP as the US territories, which the registry files as countries."},"state":{"description":"State or province, compared with the state the site files. A US state or DC abbreviation (WA, DC) is compared as its full name when the country is the United States or a synonym for it. With city also given, a site that files no state still matches; without city, only sites filing this state match.","type":"string"},"city":{"description":"City name.","type":"string"}},"required":["country"],"additionalProperties":false,"description":"Patient location as `{ country (required), state?, city? }`. Country is required; state/city narrow the match. Every part given must hold for the same study site: country and state are compared with the site's filed country and state, while city is matched against the site's whole location text, so a site filed under a borough or neighbouring town that names the city still counts. For radius-based geographic search, use clinicaltrials_search_studies with geoFilter."},"healthyVolunteer":{"default":false,"description":"Whether the patient is a healthy volunteer. When true, only studies accepting healthy volunteers are queried.","type":"boolean"},"recruitingOnly":{"default":true,"description":"Only include actively recruiting studies.","type":"boolean"},"maxResults":{"default":10,"description":"Maximum candidates to return. Default 10; a larger value returns at most 50 and says so in truncated/shown/cap when more studies match, and the searchCriteria replay through clinicaltrials_search_studies pages the rest.","type":"integer","minimum":1,"maximum":9007199254740991},"locationLimit":{"default":10,"description":"Cap on the sites returned per candidate. Each candidate keeps only the sites matching the requested location at the narrowest level that matched (city, else state, else country), capped at this many; the rest of the study's registered sites are omitted. The cap governs those matched sites — when none of them is recruiting, one recruiting site is added on top of it (the nearest to any matched site, measured before this cap, when coordinates allow — in the requested country whenever a site there recruits), so a candidate can carry one site more than this. Raise it to see more nearby sites — there is no upper bound, and a limit past the matched sites returns all of them — or fetch the complete site list with clinicaltrials_get_study_record. Each candidate reports totalLocations / matchedLocations / locationsTruncated / nearestRecruitingSiteAdded in locationSummary only when the bound actually dropped sites.","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["age","sex","conditions","location"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"1223ec21ae98348f42a26208d45f6ffa9f4c9f5e2c25989e825bdf9a4646ff80","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"},{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_get_field_definitions","title":"Clinicaltrials Get Field Definitions","description":"Resolve valid field names from the ClinicalTrials.gov data model — the canonical PascalCase identifiers (OverallStatus, EnrollmentCount, LeadSponsorName) the other tools take. Every record piece works in clinicaltrials_search_studies `fields`; a leaf piece (sourceType other than STRUCT) also works in `AREA[…]` expressions in `advancedFilter` and the query parameters, and as input to clinicaltrials_get_field_values (LocationGeoPoint aside); a leaf of a date or integer type (NormalizedDate, PartialDate, DateTimeMinutes, integer, long, short) also works in `sort`. An index-only piece (drill with includeIndexedOnly, e.g. NumLocations) works wherever a leaf does except `fields`. Select a mode: `\"search\"` — keyword search returning ranked matches (pass `query`, e.g. \"enrollment\", \"sponsor\", \"adverse events\"); `\"drill\"` — drill into a specific section by dot-notation path (pass `path`, e.g. \"protocolSection.designModule\"); `\"overview\"` — top-level summary of all sections (no additional args).","inputSchema":{"type":"object","properties":{"mode":{"type":"string","enum":["search","drill","overview"],"description":"Operation mode. \"search\" — keyword search (requires `query`); \"drill\" — drill into a section by path (requires `path`); \"overview\" — list all top-level sections (no other args needed)."},"query":{"description":"search mode only. Keyword to search field names by — e.g., \"enrollment\", \"sponsor\", \"adverse events\". Returns matching field names ranked by relevance with their full paths and data types.","type":"string"},"path":{"description":"drill mode only. Dot-notation path to drill into — e.g., \"protocolSection.designModule\", \"protocolSection.eligibilityModule\", \"resultsSection\". Returns the section's individual fields.","type":"string"},"limit":{"default":20,"description":"search mode only. Maximum results to return. Default: 20. A value at or past the match count returns every match.","type":"integer","minimum":1,"maximum":9007199254740991},"includeIndexedOnly":{"description":"drill mode only. Also list index-only pieces (search-index fields such as StudyFirstPostYear, NumLocations) alongside the record fields. They work in `AREA[…]`, in `sort` (the integer counts), and in clinicaltrials_get_field_values, but not in clinicaltrials_search_studies `fields`; search mode never lists them. Default: false.","type":"boolean"}},"required":["mode"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"a00aa8d102b4bc2adc6279b7462e6f49d16bae93e14e5e0f3077cc267c08ff6d","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"},{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_get_field_values","title":"Clinicaltrials Get Field Values","description":"Discover valid values for ClinicalTrials.gov fields with study counts per value. Use to explore available filter options before building a search — e.g., valid OverallStatus, Phase, InterventionType, StudyType, or LeadSponsorClass values.","inputSchema":{"type":"object","properties":{"fields":{"anyOf":[{"type":"string","description":"A single PascalCase leaf piece name."},{"type":"array","items":{"type":"string"},"description":"Multiple PascalCase leaf piece names (at least one required)."}],"description":"PascalCase leaf piece name(s) to get value statistics for — an empty list is rejected, not treated as \"every field\". Index-only pieces count too (NumLocations, StudyFirstPostYear — listed by clinicaltrials_get_field_definitions in drill mode with includeIndexedOnly), as do legacy alt names such as OVERALL-STATUS; a search area such as ConditionSearch does not. A group of fields (LeadSponsor, ConditionMesh) is refused with its leaf pieces named (LeadSponsorName, ConditionMeshTerm), and a full path as clinicaltrials_get_field_definitions prints it (\"protocolSection.statusModule.overallStatus\") is read as its piece name. A comma- or pipe-joined string (\"Phase,StudyType\") is split into separate names. Examples: OverallStatus, Phase, StudyType, Sex, LeadSponsorClass. Use clinicaltrials_get_field_definitions with a query to find more field names."}},"required":["fields"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"e36c4239738d0be29a560f0c4af5bfacb97d692eced0d08602271cb84156d974","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"},{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_get_study_count","title":"Clinicaltrials Get Study Count","description":"Get total clinical trial study count from ClinicalTrials.gov matching a query, without fetching study data. Fast and lightweight. Use for quick statistics or to build breakdowns by calling multiple times with different filters (e.g., count by phase, count by status, count recruiting vs completed for a condition).","inputSchema":{"type":"object","properties":{"query":{"description":"General free-text search across all fields. Runs the 57-field relevance search ClinicalTrials.gov publishes for this parameter — NCTId, NCTIdAlias, OrgStudyId, SecondaryId, Acronym, BriefTitle, OfficialTitle, Condition, InterventionName, InterventionOtherName, Phase, StdAge, StudyType, BriefSummary, outcome measures and their descriptions, LeadSponsorName, CollaboratorName, the Location* fields, the Design* fields, and the ConditionAncestorTerm/InterventionAncestorTerm MeSH umbrellas — so a hit need not carry your term in the field you had in mind. Plain words plus AND, OR, NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression — those work here as well as in advancedFilter, so AREA[Phase]PHASE2 is accepted in this parameter; a stray bracket fails. `( )` group sub-expressions and work when matched; `,` acts as AND. The dedicated *Query parameters (conditionQuery, interventionQuery, etc.) scope a search to one field.","type":"string"},"conditionQuery":{"description":"Condition/disease-specific search. E.g., \"Type 2 Diabetes\", \"non-small cell lung cancer\". Matches Condition, BriefTitle, OfficialTitle, ConditionMeshTerm, ConditionAncestorTerm, Keyword, and NCTId. ConditionAncestorTerm is the MeSH umbrella above the conditions a study itself lists, so results run broader than those lists — a study can match a parent term it never names. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"interventionQuery":{"description":"Intervention/treatment search. E.g., \"pembrolizumab\", \"cognitive behavioral therapy\". Matches InterventionName, InterventionType, ArmGroupType, InterventionOtherName, BriefTitle, OfficialTitle, ArmGroupLabel, InterventionMeshTerm, Keyword, InterventionAncestorTerm, InterventionDescription, and ArmGroupDescription. InterventionAncestorTerm is the MeSH umbrella above the interventions a study itself lists, so results run broader than those lists. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"locationQuery":{"description":"Location search — city, state, country, or facility name. Matches LocationCity, LocationState, LocationCountry, LocationFacility, and LocationZip; a study matches when any of its sites does. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"sponsorQuery":{"description":"Sponsor/collaborator name search. Matches LeadSponsorName, CollaboratorName, and OrgFullName. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"titleQuery":{"description":"Search within study titles and acronyms only. Matches Acronym, BriefTitle, and OfficialTitle. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"outcomeQuery":{"description":"Search within outcome measure fields. Matches PrimaryOutcomeMeasure, SecondaryOutcomeMeasure, OtherOutcomeMeasure, and OutcomeMeasureTitle, plus their description counterparts PrimaryOutcomeDescription, SecondaryOutcomeDescription, OtherOutcomeDescription, OutcomeMeasureDescription, and OutcomeMeasurePopulationDescription — so a term appearing only in outcome prose still matches. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"statusFilter":{"description":"Filter by study status. Omit to count all statuses — an empty list is rejected, not treated as \"no filter\". Values: RECRUITING, COMPLETED, ACTIVE_NOT_RECRUITING, NOT_YET_RECRUITING, ENROLLING_BY_INVITATION, SUSPENDED, TERMINATED, WITHDRAWN, UNKNOWN, WITHHELD, NO_LONGER_AVAILABLE, AVAILABLE, APPROVED_FOR_MARKETING, TEMPORARILY_NOT_AVAILABLE.","anyOf":[{"type":"string","description":"A single status value."},{"type":"array","items":{"type":"string"},"description":"Multiple status values (OR)."}]},"phaseFilter":{"description":"Filter by trial phase. Omit to count all phases — an empty list is rejected, not treated as \"no filter\". Values: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA. Case and spacing variants (\"Phase 3\", \"early phase 1\", \"Not Applicable\") are accepted, and a list or a comma- or pipe-joined string matches any of the phases. Each entry must name a phase — put search expressions (OR, NOT, AREA[…]) in advancedFilter.","anyOf":[{"type":"string","description":"A single phase value."},{"type":"array","items":{"type":"string"},"description":"Multiple phase values (OR)."}]},"advancedFilter":{"description":"Advanced filter using AREA[FieldName]value syntax. Examples: \"AREA[StudyType]INTERVENTIONAL\", \"AREA[EnrollmentCount]RANGE[100, 1000]\", \"AREA[Phase]PHASE2 AND AREA[StudyType]INTERVENTIONAL\", \"(AREA[Phase]PHASE3 OR AREA[Phase]PHASE4) AND AREA[StudyType]INTERVENTIONAL\". AND/OR/NOT join complete AREA[FieldName]value expressions; parentheses group them. Call clinicaltrials_get_field_definitions to find AREA[]-compatible field names. A field name — a record field, an index-only piece such as NumLocations, or a search area such as ConditionSearch — that differs from the spelling AREA[] accepts only by case (AREA[overallstatus]) is corrected before the request, here and in the query parameters, and searchCriteria shows the expression as sent.","type":"string"},"includeUnknownEnrollment":{"default":false,"description":"Include studies whose EnrollmentCount is the upstream \"unknown\" sentinel (99999999). Excluded by default — the sentinel pollutes RANGE[N, MAX] queries. Set true for data-quality audits.","type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"93c8cee761311ce8c45584681ee71cf6f7d3941397936da1c83e9673526524cc","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"},{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_get_study_record","title":"Clinicaltrials Get Study Record","description":"Fetch a single clinical trial study by NCT ID from ClinicalTrials.gov. Returns the full study record including protocol details, eligibility criteria, outcomes, arms, interventions, contacts, and locations. Optional locationLimit / outcomeLimit / referenceLimit / nearLocation parameters trim locations, outcomes, and references — original totals are preserved in `filtersApplied` only when a cap actually trims the set.","inputSchema":{"type":"object","properties":{"nctId":{"type":"string","pattern":"^NCT\\d{8}$","description":"NCT identifier — format `NCT` followed by 8 digits (e.g., `NCT03722472`)."},"locationLimit":{"description":"Optional cap on the number of locations returned. Omit for no cap (full upstream list); 0 leaves the locations out; a value at or past the list length also returns every location. Pairs naturally with nearLocation for narrowing a large multi-site trial. Original total preserved in filtersApplied.totalLocations only when the cap trims the list.","type":"integer","minimum":0,"maximum":9007199254740991},"outcomeLimit":{"description":"Optional cap on the number of secondary and other outcomes returned. Omit for no cap (full upstream lists); 0 leaves the secondary and other outcomes out; a value at or past a list length also returns that whole list. Primary outcomes are never capped. Original totals preserved in filtersApplied.totalSecondaryOutcomes / totalOtherOutcomes only when the cap trims a list.","type":"integer","minimum":0,"maximum":9007199254740991},"referenceLimit":{"description":"Optional cap on the number of references returned. Omit for no cap (full upstream list); 0 leaves the references out; a value at or past the list length also returns every reference. Original total preserved in filtersApplied.totalReferences only when the cap trims the list. seeAlsoLinks are never capped.","type":"integer","minimum":0,"maximum":9007199254740991},"nearLocation":{"description":"Filter returned locations to those within radius of (lat, lon) and sort by distance. Adds distanceMi to each location. Locations without published coordinates are dropped — most US sites carry them; international sites less reliably so. Distances reflect ClinicalTrials.gov geocoding granularity — typically city-centroid, not facility-level — so multiple sites in the same city resolve to near-identical distances. For broader geographic filtering across studies, use clinicaltrials_search_studies with geoFilter.","type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude in decimal degrees."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude in decimal degrees."},"radiusMi":{"default":50,"description":"Radius in miles, at least 1. Default 50. A radius past the farthest site keeps every site with published coordinates.","type":"number","minimum":1}},"required":["lat","lon"],"additionalProperties":false}},"required":["nctId"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"70caab40bf51a265b65421956f508ba14c09cf1168d461751dd5c36c7fafb3b8","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"},{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_get_study_results","title":"Clinicaltrials Get Study Results","description":"Fetch clinical trial results data from ClinicalTrials.gov for completed studies — outcome measures with statistics, adverse events, participant flow, baseline characteristics, and results metadata (limitations & caveats, certain-agreement disclosure restrictions, results point of contact). Only available for studies where hasResults is true. Use clinicaltrials_search_studies first to find studies with results. Each call fetches up to 20 distinct NCT IDs and returns any further IDs in deferredNctIds for a follow-up call. A results-rich record can exceed 500KB per study in full mode — bound it with summary=true, narrower sections, or the outcomeLimit / adverseEventLimit caps; outcomeLimit / outcomeOffset also page summarized outcomes. A bounded list is resumable: outcomeOffset / seriousEventOffset / otherEventOffset start the next window, and each study's filtersApplied reports what was trimmed and the next offset for every list left short. A previous (alias) NCT ID resolves to its canonical study, named in canonicalNctId.","inputSchema":{"type":"object","properties":{"nctIds":{"anyOf":[{"type":"string","pattern":"^NCT\\d{8}$","description":"A single NCT ID."},{"type":"array","items":{"type":"string","pattern":"^NCT\\d{8}$"},"maxItems":500,"description":"Multiple NCT IDs, at most 500 entries counting repeats."}],"description":"One or more NCT IDs — an empty list is rejected, and a repeated ID collapses to one results entry in first-occurrence order. A call fetches the first 20 distinct IDs; any further distinct IDs come back unfetched in deferredNctIds, in first-occurrence order, for a follow-up call. A list over 500 entries, repeats included, is rejected. E.g., \"NCT12345678\" or [\"NCT12345678\", \"NCT87654321\"]. Use summary=true for large batches to avoid large payloads."},"sections":{"description":"Filter which sections to return. Values: outcomes, adverseEvents, participantFlow, baseline, moreInfo. Omit for all sections — an empty list is rejected, not treated as omission.","anyOf":[{"type":"string","enum":["outcomes","adverseEvents","participantFlow","baseline","moreInfo"],"description":"A single section name."},{"type":"array","items":{"type":"string","enum":["outcomes","adverseEvents","participantFlow","baseline","moreInfo"]},"description":"Multiple section names."}]},"summary":{"default":false,"description":"Return condensed summaries instead of full data. Full mode renders every row and field on both output channels, so a large results set can exceed 500KB per study; summary mode typically cuts that to a few KB, scaling with the measure count rather than to a fixed ceiling. An outcome summary keeps the title, type, timeframe, paramType, dispersionType, unit, group/class/analysis counts, per-group denominators, a top-line projection of a single class/category cell — labelled with the class and category titles it came from, that class’s own denominators, and a count of the siblings it omits — and the first statistical analysis with its group description and compared groups named by title. The measurements outside that cell and the remaining analyses are dropped; re-run with summary=false to reach them. outcomeLimit / outcomeOffset page the summarized outcome list as they page full mode; the adverse-event bounds do not apply here, since topEvents ranks the whole event list. For a middle ground, keep full mode and cap the two lists that carry the bulk with outcomeLimit / adverseEventLimit.","type":"boolean"},"outcomeLimit":{"description":"Optional cap on the number of outcome measures returned per study, taken in the order ClinicalTrials.gov publishes them. Omit for no cap (every measure); a limit at or past the list length returns the whole list. Applies in both modes: each surviving measure keeps its complete groups/classes/measurements/analyses tree in full mode, or its whole summary projection with summary: true. Upstream total preserved in filtersApplied.totalOutcomes only when the cap trims the list.","type":"integer","minimum":1,"maximum":9007199254740991},"adverseEventLimit":{"description":"Optional cap on the number of serious and other adverse events returned per study, applied to each list separately in upstream order. Omit for no cap (every event); a limit at or past a list’s length returns that whole list. Applies to full mode only — summary mode already ranks the top 20 by the most participants affected in any one event group. Event groups are never capped. Upstream totals preserved in filtersApplied.totalSeriousEvents / totalOtherEvents only when the cap trims a list.","type":"integer","minimum":1,"maximum":9007199254740991},"outcomeOffset":{"description":"Optional index of the first outcome measure to return, in the order ClinicalTrials.gov publishes them. Omit or 0 to start at the first. Pair with outcomeLimit to page a long list: each response reports filtersApplied.nextOutcomeOffset for the study, and the list is exhausted when that field is absent. Applied to every study in the call. An offset at or past the end returns an empty list with filtersApplied.totalOutcomes stating the upstream length, not an error. Works in summary mode too, paging the summarized measures. Rejected when sections excludes outcomes.","type":"integer","minimum":0,"maximum":9007199254740991},"seriousEventOffset":{"description":"Optional index of the first serious adverse event to return, in upstream order. Omit or 0 to start at the first. Pages independently of otherEventOffset — the two lists have uncorrelated lengths — and pairs with adverseEventLimit, which bounds each list separately. Continue from filtersApplied.nextSeriousEventOffset until that field is absent. Applied to every study in the call. Rejected with summary: true or when sections excludes adverseEvents.","type":"integer","minimum":0,"maximum":9007199254740991},"otherEventOffset":{"description":"Optional index of the first other (non-serious) adverse event to return, in upstream order. Omit or 0 to start at the first. Pages independently of seriousEventOffset and pairs with adverseEventLimit. Continue from filtersApplied.nextOtherEventOffset until that field is absent. Applied to every study in the call. Rejected with summary: true or when sections excludes adverseEvents.","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["nctIds"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"5cfef0c9521bd2808d7e78b8de3d7092731b3f668566d9cc5b536c0f7219aa3e","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"},{"serverName":"io.github.cyanheads/clinicaltrialsgov-mcp-server","endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","name":"clinicaltrials_search_studies","title":"Clinicaltrials Search Studies","description":"Search for clinical trial studies from ClinicalTrials.gov. Supports full-text and field-specific queries, status/phase/geographic filters, pagination, sorting, and field selection. Returns a compact per-study index by default; pass the fields parameter to get specific leaves at full fidelity — full study records are ~70KB each.","inputSchema":{"type":"object","properties":{"query":{"description":"General free-text search across all fields. Runs the 57-field relevance search ClinicalTrials.gov publishes for this parameter — NCTId, NCTIdAlias, OrgStudyId, SecondaryId, Acronym, BriefTitle, OfficialTitle, Condition, InterventionName, InterventionOtherName, Phase, StdAge, StudyType, BriefSummary, outcome measures and their descriptions, LeadSponsorName, CollaboratorName, the Location* fields, the Design* fields, and the ConditionAncestorTerm/InterventionAncestorTerm MeSH umbrellas — so a hit need not carry your term in the field you had in mind. Plain words plus AND, OR, NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression — those work here as well as in advancedFilter, so AREA[Phase]PHASE2 is accepted in this parameter; a stray bracket fails. `( )` group sub-expressions and work when matched; `,` acts as AND. The dedicated *Query parameters (conditionQuery, interventionQuery, etc.) scope a search to one field.","type":"string"},"conditionQuery":{"description":"Condition/disease-specific search. E.g., \"Type 2 Diabetes\", \"non-small cell lung cancer\". Matches Condition, BriefTitle, OfficialTitle, ConditionMeshTerm, ConditionAncestorTerm, Keyword, and NCTId. ConditionAncestorTerm is the MeSH umbrella above the conditions a study itself lists, so results run broader than those lists — a study can match a parent term it never names. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"interventionQuery":{"description":"Intervention/treatment search. E.g., \"pembrolizumab\", \"cognitive behavioral therapy\". Matches InterventionName, InterventionType, ArmGroupType, InterventionOtherName, BriefTitle, OfficialTitle, ArmGroupLabel, InterventionMeshTerm, Keyword, InterventionAncestorTerm, InterventionDescription, and ArmGroupDescription. InterventionAncestorTerm is the MeSH umbrella above the interventions a study itself lists, so results run broader than those lists. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"locationQuery":{"description":"Location search — city, state, country, or facility name. Matches LocationCity, LocationState, LocationCountry, LocationFacility, and LocationZip; a study matches when any of its sites does. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"sponsorQuery":{"description":"Sponsor/collaborator name search. Matches LeadSponsorName, CollaboratorName, and OrgFullName. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"titleQuery":{"description":"Search within study titles and acronyms only. Matches Acronym, BriefTitle, and OfficialTitle. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"outcomeQuery":{"description":"Search within outcome measure fields. Matches PrimaryOutcomeMeasure, SecondaryOutcomeMeasure, OtherOutcomeMeasure, and OutcomeMeasureTitle, plus their description counterparts PrimaryOutcomeDescription, SecondaryOutcomeDescription, OtherOutcomeDescription, OutcomeMeasureDescription, and OutcomeMeasurePopulationDescription — so a term appearing only in outcome prose still matches. Plain words plus AND/OR/NOT. `[ ]` are valid only inside an AREA[FieldName]value or RANGE[min, max] expression, which this parameter accepts; a stray bracket fails. `( )` group sub-expressions when matched; `,` acts as AND.","type":"string"},"statusFilter":{"description":"Filter by study status. Omit to search all statuses — an empty list is rejected, not treated as \"no filter\". Values: RECRUITING, COMPLETED, ACTIVE_NOT_RECRUITING, NOT_YET_RECRUITING, ENROLLING_BY_INVITATION, SUSPENDED, TERMINATED, WITHDRAWN, UNKNOWN, WITHHELD, NO_LONGER_AVAILABLE, AVAILABLE, APPROVED_FOR_MARKETING, TEMPORARILY_NOT_AVAILABLE.","anyOf":[{"type":"string","description":"A single status value."},{"type":"array","items":{"type":"string"},"description":"Multiple status values (OR)."}]},"phaseFilter":{"description":"Filter by trial phase. Omit to search all phases — an empty list is rejected, not treated as \"no filter\". Values: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA. Case and spacing variants (\"Phase 3\", \"early phase 1\", \"Not Applicable\") are accepted, and a list or a comma- or pipe-joined string matches any of the phases. Each entry must name a phase — put search expressions (OR, NOT, AREA[…]) in advancedFilter.","anyOf":[{"type":"string","description":"A single phase value."},{"type":"array","items":{"type":"string"},"description":"Multiple phase values (OR)."}]},"advancedFilter":{"description":"Advanced filter using AREA[FieldName]value syntax. Examples: \"AREA[StudyType]INTERVENTIONAL\", \"AREA[EnrollmentCount]RANGE[100, 1000]\", \"AREA[Phase]PHASE2 AND AREA[StudyType]INTERVENTIONAL\", \"(AREA[Phase]PHASE3 OR AREA[Phase]PHASE4) AND AREA[StudyType]INTERVENTIONAL\". \"AREA[HasResults]true\" restricts to studies with posted results. AND/OR/NOT join complete AREA[FieldName]value expressions; parentheses group them. Call clinicaltrials_get_field_definitions to find AREA[]-compatible field names. A field name — a record field, an index-only piece such as NumLocations, or a search area such as ConditionSearch — that differs from the spelling AREA[] accepts only by case (AREA[overallstatus]) is corrected before the request, here and in the query parameters, and searchCriteria shows the expression as sent.","type":"string"},"geoFilter":{"description":"Geographic proximity filter. Format: distance(lat,lon,radius), where radius carries a `mi` or `km` suffix — e.g. \"distance(47.6062,-122.3321,50mi)\" for studies within 50 miles of Seattle. The suffix is required: a radius with no unit is rejected, as are a non-positive radius, a latitude outside [-90, 90], and a longitude outside [-180, 180]. When set, each study's locations are re-sorted by proximity to the center so the nearest matched site leads, annotated with its distance in miles; the full location list is preserved.","type":"string"},"nctIds":{"description":"Filter to specific NCT IDs for batch lookups. Omit to search every study — an empty list is rejected, not treated as \"no filter\". Repeated IDs collapse to one, first occurrence kept. One request carries as many leading IDs as fit ClinicalTrials.gov's URL length limit beside the other parameters — about 560 when nothing else is set, fewer beside long queries or field lists — and the rest come back unqueried in deferredNctIds, in order, for a follow-up call; every page of a walk queries the same IDs. A list over 1000 entries, repeats included, is rejected. Supplying this lifts the default unknown-enrollment exclusion, so an ID you name is never filtered out of its own lookup.","anyOf":[{"type":"string","pattern":"^NCT\\d{8}$","description":"A single NCT ID."},{"type":"array","items":{"type":"string","pattern":"^NCT\\d{8}$"},"maxItems":1000,"description":"Multiple NCT IDs (OR), at most 1000 entries counting repeats."}]},"fields":{"description":"PascalCase piece names to return, leaves or groups (a group such as StatusModule returns all of its fields); strongly recommended since full records are ~70KB. Omit for the compact index projection — an empty list is rejected, not treated as omission. A comma- or pipe-joined entry (\"NCTId,BriefTitle\") is split into separate names, and a full path as clinicaltrials_get_field_definitions prints it (\"protocolSection.statusModule.overallStatus\") is sent as its piece name. Common leaves: NCTId, BriefTitle, BriefSummary, OverallStatus, Phase, LeadSponsorName, Condition. Call clinicaltrials_get_field_definitions with a concept query (e.g., \"adverse events\", \"eligibility\") to find the exact leaf for any concept. Naming ResultsSection, or a module or group under it (OutcomeMeasuresModule, AdverseEventsModule), caps the page at 10 studies, since one record with posted results can run past 1 MB; a leaf under it (OutcomeMeasureTitle) keeps the server's usual cap.","type":"array","items":{"type":"string"}},"sort":{"description":"Sort order. Format: FieldName:asc or FieldName:desc. E.g., \"LastUpdatePostDate:desc\", \"EnrollmentCount:desc\". Max 2 fields comma-separated. Only date and numeric fields sort — those whose clinicaltrials_get_field_definitions type is NormalizedDate, PartialDate, DateTimeMinutes, integer, long, or short — plus \"@relevance\", which ranks by match to the query; a bare \"relevance\" is sent as \"@relevance\". For \"largest trials\" queries, pair EnrollmentCount:desc with advancedFilter \"AREA[StudyType]INTERVENTIONAL\" — the top enrollment counts are observational registry/claims studies enrolling tens of millions. Enrollment counts are sponsor-reported and not validated upstream beyond the unknown-enrollment sentinel exclusion.","type":"string"},"pageSize":{"default":10,"description":"Results per page. Default 10; a larger value returns at most this server's per-page cap (200 unless the operator changed it; 10, or the operator's cap if lower, when fields names ResultsSection or a module or group under it, or cannot be checked for one) and says so in truncated/shown/cap, with nextPageToken to page the rest. The cap sits below ClinicalTrials.gov's own page maximum of 1000 because full study records run to tens of KB each, and one with posted results can run past 1 MB.","type":"integer","minimum":1,"maximum":9007199254740991},"pageToken":{"description":"Pagination cursor: a previous response's nextPageToken, passed back unchanged with the same criteria. Tokens expire when ClinicalTrials.gov refreshes its data.","type":"string"},"countTotal":{"default":true,"description":"Include total study count in response. Only computed on the first page.","type":"boolean"},"includeUnknownEnrollment":{"default":false,"description":"Include studies whose EnrollmentCount is the upstream \"unknown\" sentinel (99999999). Excluded by default — the sentinel pollutes RANGE[N, MAX] queries and EnrollmentCount:desc sorts. Set true for data-quality audits or when targeting unknown-enrollment studies specifically.","type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false},"annotations":{"readOnlyHint":true,"idempotentHint":true,"openWorldHint":true},"definitionHash":"acb27ec0611ee6743ba76863389767b243457e7e8ee7daad9e8b06c0acd60bd3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-19T07:46:26.501Z","metadataTrust":"untrusted"}],"endpoints":[{"endpointFingerprint":"60208687aac01e65f9e89a6924cf381b200f03d361ad90a787d18fa8edfe42d8","protocol":"streamable-http","status":"indexed","toolCount":7,"observedAt":"2026-11-19T07:46:26.501Z"}],"authentication":"unknown"},"connectionConfigurations":{"status":"ready","authentication":"not embedded","clients":{"Claude Desktop":{"mcpServers":{"io.github.cyanheads/clinicaltrialsgov-mcp-server":{"url":"https://clinicaltrials.caseyjhand.com/mcp"}}},"Cursor":{"mcpServers":{"io.github.cyanheads/clinicaltrialsgov-mcp-server":{"url":"https://clinicaltrials.caseyjhand.com/mcp"}}},"VS Code":{"servers":{"io.github.cyanheads/clinicaltrialsgov-mcp-server":{"type":"http","url":"https://clinicaltrials.caseyjhand.com/mcp"}}}}},"resourceType":"mcp-server","callable":true,"runtime":{"callable":true,"protocols":["mcp"]},"interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://clinicaltrials.caseyjhand.com/mcp"},{"protocol":"mcp","package":"clinicaltrialsgov-mcp-server","registryType":"npm","version":"2.10.0"},{"protocol":"mcp","package":"clinicaltrialsgov-mcp-server","registryType":"npm","version":"2.10.0"}],"profile":{"apiVersion":"1","schemaVersion":"1","id":"mcp-server:io.github.cyanheads%2Fclinicaltrialsgov-mcp-server","resourceType":"mcp-server","canonicalUrl":"https://www.agentsjunction.com/api/v1/servers/io.github.cyanheads%2Fclinicaltrialsgov-mcp-server","name":"io.github.cyanheads/clinicaltrialsgov-mcp-server","description":"Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.","interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://clinicaltrials.caseyjhand.com/mcp"},{"protocol":"mcp","package":"clinicaltrialsgov-mcp-server","registryType":"npm","version":"2.10.0"},{"protocol":"mcp","package":"clinicaltrialsgov-mcp-server","registryType":"npm","version":"2.10.0"}],"capabilities":[],"identity":{"source":"official-registry","websiteUrl":null,"repositoryUrl":"https://github.com/cyanheads/clinicaltrialsgov-mcp-server","version":"2.10.0"},"verification":{"state":"official","confidence":100},"operations":{"resourceType":"mcp-server","name":"io.github.cyanheads/clinicaltrialsgov-mcp-server","status":"online","lastCheckedAt":"2026-11-20T09:17:59.675Z","lastSuccessfulCheck":"2026-11-20T09:17:59.675Z","latencyMs":229,"consecutiveFailures":0,"isStale":false,"checks":{"endpointReachable":true,"protocolValid":true,"agentCardValid":null,"mcpHandshakeValid":true},"lastSeen":null,"lastSuccessfulInteraction":null,"lastHealthCheck":"2026-11-20T09:17:59.675Z","source":{"type":"health-check","url":null},"observedAt":"2026-11-20T09:17:59.675Z"},"security":null,"timestamps":{"createdAt":"2026-10-14T15:36:19.561Z","updatedAt":"2026-10-14T15:36:19.561Z","observedAt":"2026-11-20T09:17:59.675Z"},"compatibility":{"serverVersion":"2.10.0","protocolVersions":[{"protocol":"mcp","version":null}]}}}}