Skip to main content
Glama

OpenFDA MCPサーバー

OpenFDA APIから医薬品情報を照会するためのModel Context Protocol (MCP) サーバーです。

機能

  • ブランド名で医薬品ラベル情報を取得

  • ジェネリック(有効成分)名で医薬品情報を取得

  • ジェネリック医薬品のすべてのブランドバージョンを取得

  • 医薬品の有害事象(副作用)レポートを取得(ブランド名またはジェネリック名)

  • 特定の企業が製造したすべての医薬品を取得

  • 包括的な医薬品安全性情報(警告、禁忌、相互作用、注意事項など)を取得

  • NDC(米国医薬品コード)形式の正規化と検証

  • クエリ失敗時の役立つエラーメッセージと提案

  1. OpenFDA APIキーの設定

    このMCPサーバーがOpenFDA APIにアクセスするには、OpenFDA APIキーが必要です。 プロジェクトのルートに .env ファイルを作成し、以下の行を追加してください:

    OPENFDA_API_KEY=your_openfda_api_key_here

    注意: 実際のAPIキーをバージョン管理システムにコミットしないでください。 APIキーは OpenFDA API Key Registration から取得できます。

  2. MCPサーバー設定例

    このサーバーをより大規模なMCPシステムと統合する場合、設定は以下のようになります:

     {
       "mcpServers": {
           "openfda": {
               "command": "npx",
               "args": [
                   "@ythalorossy/openfda"
               ],
               "env": {
                   "OPENFDA_API_KEY": "*****************************************"
               },
               "timeout": 60000,
               "autoApprove": [
                   "get-drug-by-name",
                   "get-drug-by-generic-name",
                   "get-drug-adverse-events",
                   "get-drugs-by-manufacturer",
                   "get-drug-safety-info",
                   "get-drug-by-ndc",
                   "get-drug-by-product-ndc"
               ]
           }
       }
     }

    アスタリスクの部分を実際のAPIキーに置き換えるか、.env ファイルから読み込まれるようにしてください。

Related MCP server: Healthcare MCP Server

ローカルで実行するには?

git clone https://github.com/ythalorossy/openfda.git
cd openfda
npm install
npm run build

次にサーバーを起動します:

node bin/index.js

または、npxで直接使用します:

npx @ythalorossy/openfda

設定

必要な環境変数があれば、.env ファイルを作成してください。

ライセンス

MIT

コーヒーを奢る

coff.ee/ythalorossy

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - A tier

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/ythalorossy/openfda'

If you have feedback or need assistance with the MCP directory API, please join our Discord server