# clinicaltrialsgov-mcp-server

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

- **URL**: https://www.freshcrate.ai/projects/clinicaltrialsgov-mcp-server
- **Author**: cyanheads
- **Category**: MCP Servers
- **Latest version**: `v2.6.4` (2026-06-05)
- **License**: Apache-2.0
- **Source**: https://github.com/cyanheads/clinicaltrialsgov-mcp-server
- **Homepage**: https://www.npmjs.com/package/clinicaltrialsgov-mcp-server
- **Language**: TypeScript
- **GitHub**: 65 stars, 21 forks
- **Registry**: github
- **Tags**: `ai-agent`, `api-client`, `bioinformatics`, `clinical-trials`, `clinicaltrials`, `clinicaltrials-gov`, `eligibility-criteria`, `health-tech`, `llm-agent`, `typescript`

## Description

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

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v2.6.4` | 2026-06-05 | High | Remove SQLite study mirror; fix find_eligible recruiting filter  Removes the opt-in local SQLite study mirror (CT_MIRROR_*). The FTS5 index cannot reproduce ClinicalTrials.gov's server-side field-scoped search — condition counts diverged 4–5× from live (#68), fields selection was silently dropped and pagination was broken (#66), and the metadata-only schema could not return resultsSection at all (#65). Search, count, and record lookups now always use the live API.  Removed:  - Local SQLite mirro |
| `v2.5.4` | 2026-05-31 | High | Two bug fixes: dead error contract, status-label misses  The batch-fallback for get-study-results converts batch errors to per-ID fetchErrors, making the ids_not_found contract dead documentation. The field-values validator misdirected agents reaching for common status labels.  Fixed:  - **get-study-results**: drop unreachable ids_not_found error contract — invalid NCT IDs surface in fetchErrors, not as a thrown error (#55) - **get-field-values**: auto-correct RecruitmentStatus/RecruitingStatus |
| `v2.4.12` | 2026-05-23 | High | mcp-ts-core ^0.9.1 → ^0.9.6, zod added, manifest.json + .mcpbignore scaffolded, install badges, action-first descriptions |
| `main@2026-05-16` | 2026-05-16 | High | Latest activity on main branch |
| `v2.1.0` | 2026-04-06 | High | Latest release: v2.1.0 |

## Dependency audit

- **Score**: 100/100
- **Total deps**: 17
- **Resolved**: 17
- **Unresolved**: 0
- **License conflicts**: 0
- **Warnings**: 0
- **Scanned**: 2026-06-01

## Citation

- HTML: https://www.freshcrate.ai/projects/clinicaltrialsgov-mcp-server
- Markdown: https://www.freshcrate.ai/projects/clinicaltrialsgov-mcp-server.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/clinicaltrialsgov-mcp-server/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
