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
要件
Python 3.8以上
requirements.txt内の依存関係OpenAI API キー(
OPENAI_API_KEY環境変数として設定)
サーバーの実行
依存関係をインストールします:
pip install -r requirements.txtOpenAI 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"}'Pythonの例
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でパラメーター スキーマを追加したりできます。
質問や改善点については、問題または PR を開いてください。
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.92 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and retrieving detailed clinical trial information from ClinicalTrials.gov via the official API.1-