ClinicalTrials.gov Natural Language API Server
Сервер MCP для API естественного языка ClinicalTrials.gov
Этот сервер MCP (Model Control Protocol) позволяет вам запрашивать ClinicalTrials.gov, используя естественный язык. Он использует модели GPT OpenAI для перевода вашего запроса в параметры API и возвращает структурированные результаты.
Функции
Принимает запросы на естественном языке (например, «Покажите мне завершенные исследования диабета 3 фазы в Канаде»)
Использует API OpenAI для анализа и сопоставления с параметрами API ClinicalTrials.gov
Возвращает как проанализированные параметры, так и результаты
Related MCP server: Clinical Trials MCP Server
Требования
Питон 3.8+
Зависимости в
requirements.txtКлюч API OpenAI (задается как переменная среды
OPENAI_API_KEY)
Запуск сервера
Установить зависимости:
pip install -r requirements.txtУстановите свой ключ API OpenAI:
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 (Model Control Protocol) — это шаблон для создания API на основе ИИ, которые действуют как контрольный слой между естественным языком и структурированными API. Этот сервер использует LLM для интерпретации намерений пользователя и сопоставления их с вызовами API, делая сложные данные доступными через простой язык.
Настройка
Вы можете изменить приглашение или добавить дополнительную схему параметров в
server.pyдля поддержки большего количества типов запросов или API.
Если у вас есть вопросы или предложения по улучшению, создайте тему или отправьте PR!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables 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.376MIT
- AlicenseAqualityDmaintenanceEnables conversational access to 400,000+ clinical trials on ClinicalTrials.gov, allowing users to search, compare, and retrieve trial details using plain English through MCP-compatible clients like Cursor and Claude Desktop.53MIT
- Alicense-qualityCmaintenanceWraps the ClinicalTrials.gov API v2 to enable querying clinical trials data through natural language.12MIT
Related MCP Connectors
ClinicalTrials MCP — wraps ClinicalTrials.gov API v2 (free, no auth)
Search ClinicalTrials.gov — find studies, retrieve results, match patients to eligible trials.
AI-moderated research platform: create and launch studies and query interview results.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuaiyuZhang/clinical-trial-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server