Skip to main content
Glama

ClinicalTrials.gov Natural Language API Server

by HuaiyuZhang

ClinicalTrials.gov 自然言語 API 用 MCP サーバー

このMCP(モデル制御プロトコル)サーバーを使用すると、自然言語でClinicalTrials.govにクエリを実行できます。OpenAIのGPTモデルを使用してクエリをAPIパラメータに変換し、構造化された結果を返します。

特徴

  • 自然言語クエリを受け入れます(例:「カナダで完了した第 3 相糖尿病試験を表示してください」)
  • OpenAI API を使用して ClinicalTrials.gov API パラメータを解析し、マッピングします。
  • 解析されたパラメータと結果の両方を返します

要件

  • Python 3.8以上
  • requirements.txt内の依存関係
  • OpenAI API キー( OPENAI_API_KEY環境変数として設定)

サーバーの実行

  1. 依存関係をインストールします:
    pip install -r requirements.txt
  2. OpenAI API キーを設定します。
    export OPENAI_API_KEY=sk-...
  3. サーバーを起動します。
    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 を開いてください。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

ユーザーは、複雑な API パラメータの代わりに自然言語を使用して ClinicalTrials.gov にクエリを実行し、平易な英語のリクエストを構造化された API 呼び出しに変換し、整理された臨床試験データを返すことができます。

  1. 特徴
    1. 要件
      1. サーバーの実行
        1. 使用法
          1. cURLの例
          2. Pythonの例
        2. MCPとは何ですか?
          1. カスタマイズ

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Enables extracting data from websites using natural language prompts, allowing users to specify exactly what content they want in plain English and returning structured JSON data.
              Last updated -
              1
              666
              6
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              Provides access to the ClinicalTrials.gov AACT database, enabling analysis of clinical trial data, tracking development trends, and generating therapeutic landscape insights.
              Last updated -
              15
              Python
              GPL 3.0
              • Apple
            • -
              security
              A
              license
              -
              quality
              Provides AI assistants with direct query access to the AACT (Aggregate Analysis of ClinicalTrials.gov) database, allowing structured retrieval and analysis of clinical trial data.
              Last updated -
              15
              Python
              GPL 3.0
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables Claude Desktop to search clinicaltrials.gov for matching clinical trials based on genetic mutations provided in natural language queries.
              Last updated -
              Python
              MIT License
              • Apple

            View all related MCP servers

            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