- PubMed MCP Server
PubMed MCP Server
Content
PubMed MCP Server
项目简介
PubMed MCP Server 是一个基于 fastapi-mcp 的服务,提供了对 PubMed 数据库的访问接口。该服务允许用户搜索 PubMed 文章、获取文章元数据以及下载 PMC 文章的 PDF 文件
基本功能:
- 搜索文章:根据关键词搜索 PubMed 数据库中的文章
- 获取元数据:获取特定 PubMed ID 的文章详细信息,包括标题、摘要、作者、关键词等
- 下载 PDF:下载 PMC 文章的 PDF 文件到本地
安装与配置
- 克隆仓库
git clone https://github.com/yourusername/pubmed-mcp-server.git
cd pubmed-mcp-server
# 安装 uv 工具,用于管理虚拟环境和依赖项同步
pip install uv
- 创建并激活虚拟环境
uv sync
source .venv/bin/activate # Linux/Mac
# 或
.venv\Scripts\activate # Windows
配置
创建 .env 文件来自定义配置:
DOWNLOAD_PATH=/path/to/store/pdfs
默认情况下,PDF 文件将保存在 /tmp/pubmed-pdfs 目录下。
使用方法
uv run main.py
服务器将在 http://localhost:8977 上运行。
然后你可以在 mcp client 中配置这个endpoint,并使用SSE模式
项目结构
.
├── app/ # API 应用定义
│ └── pubmed.py # PubMed API 端点
├── core/ # 核心功能
│ └── config.py # 配置管理
├── service/ # 服务层
│ ├── __init__.py # 基础 URL 和工具函数
│ ├── file.py # 文件下载功能
│ └── search.py # PubMed 搜索和解析功能
├── tests/ # 测试目录
├── .env # 环境变量配置
├── main.py # 应用入口
└── pyproject.toml # 项目依赖
许可证
本项目采用 MIT 许可证。详情请参阅 LICENSE 文件。
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic