ClinicalTrials.gov Natural Language API Server
ClinicalTrials.gov 자연어 API를 위한 MCP 서버
이 MCP(모델 제어 프로토콜) 서버를 사용하면 자연어를 사용하여 ClinicalTrials.gov에 쿼리를 보낼 수 있습니다. OpenAI의 GPT 모델을 사용하여 쿼리를 API 매개변수로 변환하고 구조화된 결과를 반환합니다.
특징
자연어 쿼리를 수락합니다(예: "캐나다에서 완료된 3상 당뇨병 임상 시험 결과를 보여주세요")
OpenAI API를 사용하여 ClinicalTrials.gov API 매개변수를 구문 분석하고 매핑합니다.
구문 분석된 매개변수와 결과를 모두 반환합니다.
Related MCP server: Clinical Trials MCP Server
요구 사항
파이썬 3.8 이상
requirements.txt의 종속성OpenAI API 키(
OPENAI_API_KEY환경 변수로 설정)
서버 실행
종속성 설치:
지엑스피1
OpenAI API 키를 설정하세요:
export OPENAI_API_KEY=sk-...서버를 시작합니다:
uvicorn server:app --reload
용법
cURL 예제
curl -X POST "http://127.0.0.1:8000/query" \
-H "Content-Type: application/json" \
-d '{"query": "Show me completed phase 3 diabetes trials in Canada"}'파이썬 예제
import requests
query = "Show me completed phase 3 diabetes trials in Canada"
response = requests.post(
"http://127.0.0.1:8000/query",
json={"query": query}
)
print(response.json())MCP란 무엇인가요?
MCP(모델 제어 프로토콜)는 자연어 API와 구조화된 API 사이의 제어 계층 역할을 하는 AI 기반 API를 구축하기 위한 패턴입니다. 이 서버는 LLM을 사용하여 사용자 의도를 해석하고 이를 API 호출에 매핑하여, 복잡한 데이터를 일반 언어로 접근할 수 있도록 합니다.
사용자 정의
더 많은 쿼리 유형이나 API를 지원하기 위해
server.py에서 프롬프트를 수정하거나 매개변수 스키마를 추가할 수 있습니다.
질문이나 개선 사항이 있으시면 이슈나 홍보글을 올려주세요!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.
Clinical trial search and status from ClinicalTrials.gov
Search and read ClinicalTrials.gov studies, sites and outcomes.
Provide structured access to ClinicalTrials.gov data for searching, retrieving, and analyzing clin…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables searching and retrieving information from the ClinicalTrials.gov database of over 400,000 clinical studies, including trial details, eligibility criteria, locations, and results across 220+ countries.5-
- AlicenseBqualityDmaintenanceEnables searching and querying clinical trials from ClinicalTrials.gov with intelligent filtering for recruiting studies, geographic search, and detailed trial information including contacts and eligibility criteria.36MIT
- AlicenseNot gradedqualityBmaintenanceWraps the ClinicalTrials.gov API v2 to enable querying clinical trials data through natural language.109 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and retrieving detailed clinical trial information from ClinicalTrials.gov via the official API.1-