{"_id":"@akshay89/clinical-trials-mcp","name":"@akshay89/clinical-trials-mcp","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@akshay89/clinical-trials-mcp","version":"1.0.0","description":"MCP server for searching and analyzing clinical trials from ClinicalTrials.gov","type":"module","main":"dist/mcp/server.js","bin":{"clinical-trials-mcp":"dist/mcp/server.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start:mcp":"node dist/mcp/server.js","format":"prettier --write src/**/*.ts","prepublishOnly":"npm run build"},"keywords":["clinical-trials","mcp","medical-research","healthcare","data-extraction"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/akshay3001/clinical-trials-mcp.git"},"engines":{"node":">=22.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.4","better-sqlite3":"^11.7.0","papaparse":"^5.4.1","zod":"^3.24.1"},"devDependencies":{"@types/better-sqlite3":"^7.6.12","@types/node":"^22.10.2","@types/papaparse":"^5.3.15","@typescript-eslint/eslint-plugin":"^8.18.2","@typescript-eslint/parser":"^8.18.2","prettier":"^3.4.2","tsx":"^4.19.2","typescript":"^5.7.2"},"_id":"@akshay89/clinical-trials-mcp@1.0.0","gitHead":"3b595a55f48fa189876cfd73d00535c33dd429f8","types":"./dist/mcp/server.d.ts","bugs":{"url":"https://github.com/akshay3001/clinical-trials-mcp/issues"},"homepage":"https://github.com/akshay3001/clinical-trials-mcp#readme","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-i8ZrLHPireIQ6E4FbupA17hgdPS0JVTVktpH2ZgPUmsAWKimC164+k/2uAOqq/3h4Izc7A2ykDybL/BmBJXFIg==","shasum":"82ec6aba5e88c0e7c9b76a9ecd46e498d013d06d","tarball":"https://registry.npmjs.org/@akshay89/clinical-trials-mcp/-/clinical-trials-mcp-1.0.0.tgz","fileCount":30,"unpackedSize":1233226,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHFGd+gDnSdzMXY4+vVx9Lo7FAcZlRwK33nT+phtOtM5AiEAg7sXQEtnuv10hvqExoPCQqEV4uI4HFwUlrSO0/RFX6Q="}]},"_npmUser":{"name":"akshaymhatre89","email":"akshay.mhatre8989@gmail.com"},"directories":{},"maintainers":[{"name":"akshaymhatre89","email":"akshay.mhatre8989@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/clinical-trials-mcp_1.0.0_1768991097204_0.38346208560573336"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-21T10:24:57.147Z","1.0.0":"2026-01-21T10:24:57.333Z","modified":"2026-01-21T10:24:57.496Z"},"maintainers":[{"name":"akshaymhatre89","email":"akshay.mhatre8989@gmail.com"}],"description":"MCP server for searching and analyzing clinical trials from ClinicalTrials.gov","homepage":"https://github.com/akshay3001/clinical-trials-mcp#readme","keywords":["clinical-trials","mcp","medical-research","healthcare","data-extraction"],"repository":{"type":"git","url":"git+https://github.com/akshay3001/clinical-trials-mcp.git"},"bugs":{"url":"https://github.com/akshay3001/clinical-trials-mcp/issues"},"license":"MIT","readme":"# Clinical Trials MCP Server\n\nExtract and analyze clinical trial data from ClinicalTrials.gov with AI-powered search and summarization.\n\n## Installation\n\n```bash\nnpm install\nnpm run build\n```\n\n## Usage\n\n### MCP Server\n\nAdd to your `mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"clinical-trials\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/clinical-trials/dist/mcp/server.js\"]\n    }\n  }\n}\n```\n\n## Features\n\n- 🔍 **Advanced Search**: Search across 19 specialized areas (conditions, interventions, locations, etc.)\n- 🎯 **Iterative Refinement**: Filter results without re-querying the API\n- 🤖 **AI Integration**: MCP server for conversational access through MCP Client\n- 💾 **Smart Caching**: In-memory and disk caching to minimize API calls\n- 📊 **Flexible Export**: CSV, JSON, JSONL formats\n- 🗄️ **Local Database**: SQLite storage with full-text search\n\n### Iterative Refinement\n\nThe tool creates sessions that allow you to refine searches without hitting the API again:\n\n1. Initial search hits API and stores results\n2. Filter operations work on cached results\n3. Session persists in database for future access\n\n### Smart Caching\n\n- **Memory cache**: 1 minute TTL for instant repeated queries\n- **Disk cache**: 24 hour TTL for persistence\n- **Raw JSONL**: Complete API responses saved for debugging\n\n### Full-Text Search\n\nThe SQLite database includes full-text search indexes on:\n\n- Study titles\n- Summaries\n- Detailed descriptions\n\n### Data Export\n\nExport in multiple formats:\n\n- **CSV**: Ready for Excel/Google Sheets with key columns\n- **JSON**: Full nested structure preserved\n- **JSONL**: One study per line for streaming/processing\n\n## Architecture\n\n- **Core API Client**: Handles ClinicalTrials.gov API v2 communication\n- **Database Layer**: SQLite with normalized schema and full-text search\n- **Caching**: Two-tier caching (memory + disk) for performance\n- **MCP Server**: Model Context Protocol interface for AI assistants\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-af9760db4dc86f01320fee574a78706b"}