一个MCP(模型-客户端-协议)服务器,用于访问法国国家图书馆(BnF)的Gallica API,并生成顺序研究报告。
克隆仓库:
git clone https://github.com/votre-nom/mcp-bnf.git
cd mcp-bnf
安装依赖项:
pip install -r requirements.txt
如果尚未安装,请安装Claude Desktop。
打开Claude Desktop的配置:
%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替换为您实际安装目录的路径。
配置完成后,以下工具将在Claude Desktop中可用:
允许使用不同的标准(如标题、作者、主题、日期、文档类型)在BnF的数字图书馆Gallica中搜索文档。
使用Gallica的来源创建关于任何主题的完整研究报告。报告包括:
mcp-bnf/
│
├── bnf_server.py # 主MCP服务器
├── requirements.txt # 项目依赖项
│
└── bnf_api/ # BnF API包
├── __init__.py # 包导出
├── api.py # Gallica BnF API客户端
├── search.py # 搜索功能
├── config.py # 常量和配置
└── sequential_reporting.py # 顺序报告生成工具
配置好与Claude Desktop后,您可以要求Claude使用BnF工具:
搜索文档:
生成报告:
要贡献于该项目:
git checkout -b feature/nouvelle-fonctionnalite)git commit -am '添加新功能')git push origin feature/nouvelle-fonctionnalite)本项目是开源的。