PubMed文献检索MCP工具
Project description
PubMed MCP工具
基于FastMCP构建的PubMed文献检索MCP服务器。
功能
- 基于关键词检索PubMed文献
- 返回文献标题、作者、发表日期、期刊等信息
- 提供PubMed链接
安装和运行
安装依赖
uv sync
运行服务器
# 使用uv运行
uv run main.py
# 或者直接运行
python main.py
服务器将在 http://localhost:8000 启动
使用示例
服务器启动后,可以使用以下工具:
search_pubmed
- 功能: 基于关键词检索PubMed文献
- 参数:
keyword(str): 搜索关键词max_results(int, 可选): 最大返回结果数,默认10
- 返回: 包含文献信息的字典
API端点
POST /mcp/tools/search_pubmed: 调用文献检索工具
示例请求
curl -X POST http://localhost:8000/mcp/tools/search_pubmed \
-H "Content-Type: application/json" \
-d '{
"keyword": "COVID-19",
"max_results": 5
}'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pubmed_mcp_tool-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pubmed_mcp_tool-0.1.0.tar.gz.
File metadata
- Download URL: pubmed_mcp_tool-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08ad9896bbd983561c34f0a3bda3c2f76bb778efda3096001cc7be312adf03fa
|
|
| MD5 |
5d6e0ce4ce97854e9f4d6b7302e07c4c
|
|
| BLAKE2b-256 |
a8a40210b1d2c694e36b5cd687d883ca9fe14bc1d7b0da677dbcd774d847b8b0
|
File details
Details for the file pubmed_mcp_tool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pubmed_mcp_tool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdf433032d359feddcd5c546d1aeffd8403047bea7f6ca857e740473a912f976
|
|
| MD5 |
69c50335c15a2abc73bb85f8d7d3ead7
|
|
| BLAKE2b-256 |
2fbb7473f2d777038533d81feb5fca3375f86f4ab6fbb781c8a4748dbfa1d419
|