github analyzed 2f85404

clinicaltrialsgov-mcp-server

github

MCP server for the ClinicalTrials.gov v2 API. Search trials, retrieve study details and results, and match patients to eligible trials.

maintainer
cyanheads
license
Apache-2.0
first seen
2026-05-22
last seen
2026-06-16
releases · 30d
17
short id

Drift inferred · capture-to-capture

No drift recorded — single capability capture; advisories appear once its surface changes.

capabilities7 tools
transport stdio · streamable-http · http counts 7 tools · 0 res · 1 prompts permission surface via registry introspection

tools

  • clinicaltrials_find_eligible

    Match patient demographics and conditions to eligible recruiting clinical trials. Provide age, sex, conditions, and location to find studies with matching eligibility criteria, contact information, and recruiting locations.

    in ▸ age sex location conditions maxResults recruitingOnly healthyVolunteer

  • clinicaltrials_get_field_definitions

    Get field definitions from the ClinicalTrials.gov study data model. Returns the field tree with piece names (used in the fields parameter and AREA[] filters), data types, and nesting structure. Call with no path for a top-level overview, then drill into a section with the path parameter to see its fields.

    in ▸ path includeIndexedOnly

  • clinicaltrials_get_field_values

    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.

    in ▸ fields

  • clinicaltrials_get_study_count

    Get total study count 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).

    in ▸ query phaseFilter sponsorQuery statusFilter advancedFilter conditionQuery interventionQuery

  • clinicaltrials_get_study_record

    Fetch a single clinical study by NCT ID. Returns the full study record including protocol details, eligibility criteria, outcomes, arms, interventions, contacts, and locations.

    in ▸ nctId

  • clinicaltrials_get_study_results

    Fetch trial results data for completed studies — outcome measures with statistics, adverse events, participant flow, and baseline characteristics. Only available for studies where hasResults is true. Use clinicaltrials_search_studies first to find studies with results.

    in ▸ nctIds summary sections

  • clinicaltrials_search_studies

    Search for clinical trial studies from ClinicalTrials.gov. Supports full-text and field-specific queries, status/phase/geographic filters, pagination, sorting, and field selection. Use the fields parameter to reduce payload size — full study records are ~70KB each.

    in ▸ sort query fields nctIds pageSize geoFilter pageToken countTotal titleQuery phaseFilter outcomeQuery sponsorQuery statusFilter locationQuery advancedFilter conditionQuery interventionQuery

prompts

  • analyze_trial_landscape Guides analysis of a clinical trial landscape using the ClinicalTrials.gov MCP tools. Adaptable workflow for breakdowns by status, phase, sponsor, geography, etc.
skills & danger signalsgithub-tarball
prompt-surface shipped agent-instruction files + hidden-content / dangerous-code findings — quoted from the analyzed source

analyzed commit 2f85404 · analyzer v17 · 2d ago

skills & prompt files 34

code evidencevv2.6.5 · github-tarball
evidence-backed findings quoted directly from the published source artifact — not inferred

filesystem 13

  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/build-changelog.ts :32 import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/build.ts :17 import { readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/check-docs-sync.ts :22 import { existsSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/check-skill-versions.ts :33 import { existsSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/check-skills-sync.ts :37 import { existsSync, readdirSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/clean-mcpb.ts :25 import { existsSync, statSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/clean.ts :15 import { readdir, rm } from 'node:fs/promises';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/devcheck.ts :3 import { existsSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/lint-mcp.ts :19 import { existsSync, readdirSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/lint-packaging.ts :43 import { existsSync, readdirSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/list-skills.ts :21 import { existsSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/release-github.ts :33 import { existsSync, readFileSync } from 'node:fs';
  • fs cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/tree.ts :24 import type { Dirent } from 'node:fs';

shell / exec 7

  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/build.ts :16 import { execFile } from 'node:child_process';
  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/check-framework-antipatterns.ts :38 import { spawnSync } from 'node:child_process';
  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/check-skill-versions.ts :32 import { spawnSync } from 'node:child_process';
  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/clean-mcpb.ts :24 import { execFileSync } from 'node:child_process';
  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/devcheck.ts :2 import { type ChildProcess, spawn, spawnSync } from 'node:child_process';
  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/lint-packaging.ts :42 import { execFileSync } from 'node:child_process';
  • shell cyanheads-clinicaltrialsgov-mcp-server-2f85404/scripts/release-github.ts :32 import { spawnSync } from 'node:child_process';

network 1

  • net cyanheads-clinicaltrialsgov-mcp-server-2f85404/src/services/clinical-trials/clinical-trials-service.ts :394 const res = await fetch(url, {

declared dependencies 17

  • @cyanheads/mcp-ts-core@^0.10.6
  • pino-pretty@^13.1.3
  • zod@^4.4.3
  • @biomejs/biome@^2.4.16
  • @cloudflare/workers-types@4.20260611.1
  • @types/bun@^1.3.14
  • @types/node@25.9.3
  • @vitest/coverage-istanbul@^4.1.8
  • depcheck@^1.4.7
  • fast-check@^4.8.0
  • husky@^9.1.7
  • ignore@^7.0.5
  • tsc-alias@^1.8.17
  • typedoc@^0.28.19
  • typescript@^6.0.3
  • vite@^8.0.16
  • vitest@^4.1.8