BnF API 服务器是一个基于 MCP(模型 - 客户端 - 协议)的服务器,可用于访问法国国家图书馆(BnF)的 Gallica API,并生成序列研究报告,为用户提供便捷的文献搜索和报告生成服务。
git clone https://github.com/votre-nom/mcp-bnf.git
cd mcp-bnf
pip install -r requirements.txt
%APPDATA%\Claude\claude_desktop_config.json)。{
"bnf": {
"command": "py",
"args": [
"c:\\chemin\\vers\\mcp-bnf\\bnf_server.py"
],
"cwd": "c:\\chemin\\vers\\mcp-bnf"
}
将 chemin\\vers\\mcp-bnf 替换为您的实际安装路径。
3. 保存配置文件 并重新启动 Claude Desktop。
配置完成后,以下工具将在 Claude Desktop 中可用:
mcp-bnf/
│
├── bnf_server.py # 主 MCP 服务器
├── requirements.txt # 项目依赖项
│
└── bnf_api/ # BnF API 包
├── __init__.py # 包导出
├── api.py # Gallica BnF 客户端
├── search.py # 搜索功能
├── config.py # 常数和配置
└── sequential_reporting.py # 序列报告生成工具
配置完成后,您可以在 Claude Desktop 中使用以下命令:
要为项目做出贡献:
git clone https://github.com/votre-nom/mcp-bnf.git
cd mcp-bnf
pip install -r requirements.txt
python test_bnf_api.py
git add .
git commit -m "您的提交信息"
git push origin main
该项目受 [许可证名称] 许可证的保护。