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
}'
Metadata
Release files for pubmed-mcp-tool 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pubmed_mcp_tool-0.1.0.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pubmed_mcp_tool-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / pubmed_mcp_tool-0.1.0.tar.gz
| Download URL | pubmed_mcp_tool-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08ad9896bbd983561c34f0a3bda3c2f76bb778efda3096001cc7be312adf03fa
|
|
BLAKE2b-256 checksum How to use checksums |
a8a40210b1d2c694e36b5cd687d883ca9fe14bc1d7b0da677dbcd774d847b8b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.10
|
Release files / pubmed_mcp_tool-0.1.0-py3-none-any.whl
| Download URL | pubmed_mcp_tool-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdf433032d359feddcd5c546d1aeffd8403047bea7f6ca857e740473a912f976
|
|
BLAKE2b-256 checksum How to use checksums |
2fbb7473f2d777038533d81feb5fca3375f86f4ab6fbb781c8a4748dbfa1d419
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.10
|
Security for pubmed-mcp-tool 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.