Skip to content
mcp/skillhub

Clinicaltrialsgov MCP Server

by cyanheadsio.github.cyanheads/clinicaltrialsgov-mcp-serverv2.10.0

Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.

99Node.jsstdioremoteofficial registry

context tax

~7,232 tok/turn7 tools

security

100/100

cold start

pending

freshness

Active26d ago

Our reading of Clinicaltrialsgov, from the data

Clinicaltrialsgov is an MCP server from cyanheads, listed in the official MCP Registry.

Its 7 tools add about 7,232 tokens to every model turn (measured 2026-10-19).

Maintenance is active: the last public signal was 26 days ago (2026-10-17).

It runs either locally over stdio or as a hosted endpoint.

Install Clinicaltrialsgov MCP server

Install in Claude Code

claude mcp add clinicaltrialsgov -- npx -y clinicaltrialsgov-mcp-server

Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works

npx mcpskillhub test clinicaltrialsgov-mcp-server

Configuration

VariableRequiredSecretDescription
CT_API_BASE_URL——ClinicalTrials.gov API base URL.
CT_REQUEST_TIMEOUT_MS——Per-request timeout in milliseconds.
CT_MAX_PAGE_SIZE——Maximum page size cap.
MCP_LOG_LEVEL——Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPE——Selects the HTTP transport.
MCP_HTTP_HOST——The hostname for the HTTP server.
MCP_HTTP_PORT——The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATH——The endpoint path for the MCP server.
MCP_AUTH_MODE——Authentication mode to use: 'none', 'jwt', or 'oauth'.

Remote endpoints

  • streamable-httphttps://clinicaltrials.caseyjhand.com/mcp

Context tax

Connecting this server adds ~7,232 tokens of tool definitions to every model turn (heavy, 7 tools). Measured 2026-10-19 via its hosted endpoint; o200k tokenizer, worst case for clients that load all tools up front. How we measure

ModelPer 1,000 turnsWith prompt caching
Claude Opus 5.5$28.93$1.45
Claude Sonnet 5.5$14.46$1.45
Claude Haiku 5.5$0.723—

Input prices as of 2026-10-06. Excludes your own prompt and output.

Tools (7)

  • clinicaltrials_search_studies2,199 tok

    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.

  • clinicaltrials_get_study_count1,545 tok

    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).

  • clinicaltrials_get_study_results1,292 tok

    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. 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

  • clinicaltrials_find_eligible826 tok

    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 a

  • clinicaltrials_get_study_record571 tok

    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.

  • clinicaltrials_get_field_definitions429 tok

    Resolve valid field names from the ClinicalTrials.gov data model — the canonical PascalCase identifiers (OverallStatus, EnrollmentCount, LeadSponsorName) accepted by the `fields`, `advancedFilter`, and `sort` parameters of other tools, and as input to clinicaltrials_get_field_values. 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

  • clinicaltrials_get_field_values225 tok

    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.

Security signals

100/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.

Deductions

No findings from the checks that ran.

Checks

  • ✓Repository hygiene (archived, activity, license, security policy)
  • ✓Tool descriptions (prompt-injection and hidden-text heuristics)
  • ○Package metadata (install scripts, provenance) — pending
  • ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending

Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules

Freshness

Active — last maintenance signal 26d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-10-17 · 26d ago · GitHub

  2. Latest release

    2026-10-14 · 30d ago · GitHub · v2.10.0

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-10-14 · 30d ago · official registry · v2.10.0

FAQ

›How do I install the Clinicaltrialsgov MCP server in Claude Code?

Run: claude mcp add clinicaltrialsgov -- npx -y clinicaltrialsgov-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does Clinicaltrialsgov require an API key?

No required environment variables are declared in its published metadata.

›Can I use Clinicaltrialsgov as a remote (hosted) MCP server?

Yes — it offers both a hosted endpoint and a local stdio package.

›Is Clinicaltrialsgov in the official MCP registry?

Yes, as io.github.cyanheads/clinicaltrialsgov-mcp-server.

›How many tokens does Clinicaltrialsgov add to my context?

Its tool definitions total about 7,232 tokens, resent on every turn.

Sources and method

Official MCP Registry entry
updated 2026-10-14
GitHub repository
fetched 2026-10-19
Package registry (npm / PyPI)
listed
Last checked against all sources
2026-10-19

The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.