Skip to main content
Glama

MedAdapt Content Server

by ryoureddy

MedAdapt内容服务器

专为 Claude Desktop 设计的模型上下文协议 (MCP) 服务器,通过从 PubMed、NCBI Bookshelf 和用户提供的文档中获取和处理教育资源来增强 AI 辅助医学学习。

概述

MedAdapt 内容服务器与 Claude Desktop 集成,提供用于搜索、检索和分析医学教育内容的工具。它充当 Claude 与医学知识源之间的桥梁,从而增强 AI 辅助学习体验。

快速入门

# Clone the repository git clone https://github.com/ryoureddy/medadapt-content-server.git cd medadapt-content-server # Install dependencies pip install -r requirements.txt # Run the server python content_server.py

特征

  • 内容搜索:跨多个来源搜索医学教育内容
  • 资源检索:获取完整的文章、书籍章节和用户文档
  • 主题概述:生成医学主题的全面概述
  • 学习资源:根据主题和学生水平推荐合适的学习资源
  • 学习计划:创建包含目标和资源的结构化学习计划
  • 内容分析:从医学资源中提取关键点、方法和发现
  • 用户内容:导入并分析用户提供的文档

安装

标准安装

  1. 克隆存储库:
git clone https://github.com/ryoureddy/medadapt-content-server.git cd medadapt-content-server
  1. 创建虚拟环境(可选但推荐):
python -m venv .venv source .venv/bin/activate # On Windows, use: .venv\Scripts\activate
  1. 安装依赖项:
pip install -r requirements.txt
  1. 配置(可选):

用法

运行服务器

python content_server.py

与 Claude Desktop 集成

  1. 打开 Claude 桌面
  2. 前往设置 → 模型上下文协议 → 添加服务器
  3. 使用位于以下位置的claude_desktop_config.json文件中的以下 JSON 进行配置:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "medadapt": { "command": "/path/to/python", "args": [ "/path/to/medadapt-content-server/content_server.py" ], "env": { "DB_PATH": "/path/to/medadapt-content-server/medadapt_content.db" } } } }

/path/to/python替换为你的实际 Python 路径(例如/opt/anaconda3/bin/pythonC:\Python311\python.exe )。将/path/to/medadapt-content-server/替换为你克隆的存储库的绝对路径。

重要提示DB_PATH环境变量确保使用绝对路径创建和访问数据库文件,从而防止常见的文件访问错误。

填充初始主题映射

python populate_topics.py

测试

运行测试来验证一切是否正常:

python test_server.py

Claude 的示例用法

场景 1:学习医学主题

用户提示 Claude:

I'd like to learn about the cardiac cycle. Can you provide a big picture overview and help me understand the key concepts?

场景 2:查找特定资源

用户提示 Claude:

I need to find recent research articles about COVID-19 treatment options. Can you help me find relevant resources?

场景3:制定学习计划

用户提示 Claude:

I'm a second-year medical student studying neurology. Can you create a learning plan for understanding stroke pathophysiology?

可用工具

服务器为Claude提供了以下工具:

  • search_medical_content :使用过滤器搜索医疗内容
  • get_resource_content :检索特定资源的完整内容
  • get_topic_overview :生成医学主题的全面概述
  • suggest_learning_resources :获取个性化资源推荐
  • import_user_document :上传用户提供的学习资料
  • generate_learning_plan :创建具有目标的结构化学习计划
  • extract_article_key_points :从医学文章中提取关键发现

故障排除

常见问题和解决方案

  1. 数据库连接错误
    • 症状sqlite3.OperationalError: unable to open database file
    • 解决方案:确保在 Claude Desktop 配置中正确设置DB_PATH环境变量,指向应用程序具有写入权限的绝对路径。
  2. 文件路径错误
    • 症状No such file or directory错误
    • 解决方案:确保 Claude Desktop 配置中的所有路径都是绝对路径,没有多余的引号或转义字符。
  3. API 速率限制
    • 症状:PubMed 或 NCBI Bookshelf 响应缓慢或失败
    • 解决方案:获取 NCBI API 密钥并将其添加到您的.env文件中
  4. 克劳德桌面连接
    • 症状:Claude 无法连接到 MCP 服务器
    • 解决方案:验证服务器是否在终端窗口中运行,并在 Claude Desktop 中正确配置

项目结构

medadapt-content-server/ │ ├── content_server.py # Main MCP server implementation ├── database.py # SQLite database interface ├── pubmed_utils.py # PubMed API utilities ├── bookshelf_utils.py # NCBI Bookshelf utilities ├── populate_topics.py # Script to populate initial topic data ├── test_server.py # Test script ├── requirements.txt # Python dependencies ├── .env.example # Example environment variables └── README.md # Documentation

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

致谢

  • NCBI 提供对 PubMed 和 Bookshelf API 的访问
  • 克劳德的人类学和 MCP 集成能力
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

专门的模型上下文协议服务器,通过将 Claude Desktop 连接到 PubMed、NCBI Bookshelf 和用户文档来搜索、检索和分析医学教育内容,从而增强 AI 辅助医学学习。

  1. 概述
    1. 快速入门
      1. 特征
        1. 安装
          1. 标准安装
        2. 用法
          1. 运行服务器
          2. 与 Claude Desktop 集成
          3. 填充初始主题映射
          4. 测试
        3. Claude 的示例用法
          1. 场景 1:学习医学主题
          2. 场景 2:查找特定资源
          3. 场景3:制定学习计划
        4. 可用工具
          1. 故障排除
            1. 常见问题和解决方案
          2. 项目结构
            1. 执照
              1. 致谢

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that provides health data from the Senechal API to LLM applications, enabling AI assistants to access, analyze, and respond to personal health information.
                  Last updated -
                  Python
                  GPL 3.0
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.
                  Last updated -
                  19
                  TypeScript
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  🔍 Enable AI assistants to search and access medRxiv papers through a simple MCP interface. The medRxiv MCP Server provides a bridge between AI assistants and medRxiv's preprint repository through the Model Context Protocol (MCP). It allows AI models to search for health sciences preprints and acce
                  Last updated -
                  1
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.
                  Last updated -
                  275
                  JavaScript
                  • 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/ryoureddy/medadapt-content-server'

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