BnF API Server

BnF API 服务器

模型客户端协议 (MCP) 服务器用于访问法国国家图书馆 (BnF) 的 Gallica API 并生成顺序搜索报告。

特征

  • 在 Gallica 中搜索:在 Gallica 数字图书馆中搜索文档、图像、地图和其他资源
  • 顺序报告:自动创建任何主题的结构化研究报告
  • 图表集成:在生成的报告中包含相关图像和地图
  • 格式化引文:自动生成具有正确格式引文的参考书目

设施

先决条件

  • Python 3.8 或更高版本
  • Pip(Python 包管理器)

安装步骤

  1. 克隆存储库
    git clone https://github.com/votre-nom/mcp-bnf.git cd mcp-bnf
  2. 安装依赖项
    pip install -r requirements.txt

使用 Claude Desktop 进行配置

  1. 如果尚未安装 Claude Desktop,请安装它
  2. 打开Claude桌面配置
    • 访问 Claude 桌面设置
    • 打开配置文件(通常位于%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替换为安装目录的实际路径。

  1. 保存配置文件并重新启动Claude Desktop

MCP 工具可用

配置完成后,Claude Desktop 中将提供以下工具:

在 Gallica 搜索

允许您使用不同的标准(标题、作者、主题、日期、文档类型)在 BnF 的 Gallica 数字图书馆中搜索文档。

生成连续报告

使用法国资源创建有关任何主题的综合研究报告。报告包括:

  • 格式化的参考书目
  • 简介
  • 历史背景
  • 分析
  • 结论
  • 相关图片和地图(可选)

项目结构

mcp-bnf/ │ ├── bnf_server.py # Serveur MCP principal ├── requirements.txt # Dépendances du projet │ └── bnf_api/ # Package API BnF ├── __init__.py # Exports du package ├── api.py # Client API Gallica BnF ├── search.py # Fonctions de recherche ├── config.py # Constantes et configuration └── sequential_reporting.py # Outil de génération de rapports séquentiels

使用

配置 Claude Desktop 后,您可以指示 Claude 使用 BnF 工具来执行以下操作:

  1. 搜索文件
    • “在 Gallica 中搜索有关维克多·雨果的书籍”
    • “寻找 19 世纪巴黎的地图”
  2. 生成报告
    • “撰写一份关于法国印象派的报告”
    • “用图片生成一份关于法国托管时期黎巴嫩历史的报告”

发展

为项目做出贡献:

  1. 分叉存储库
  2. 为您的功能创建一个分支( git checkout -b feature/nouvelle-fonctionnalite
  3. 提交您的更改( git commit -am 'Ajouter une nouvelle fonctionnalité'
  4. 推送到分支( git push origin feature/nouvelle-fonctionnalite
  5. 创建拉取请求

执照

该项目是开源的。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

模型客户端协议服务器使用户能够搜索法国国家图书馆的 Gallica 数字图书馆并生成带有格式化引文和相关图像的结构化顺序研究报告。

  1. Fonctionnalités
    1. Installation
      1. Prérequis
      2. Étapes d'installation
    2. Configuration avec Claude Desktop
      1. Outils MCP disponibles
        1. Recherche dans Gallica
        2. Génération de rapports séquentiels
      2. Structure du projet
        1. Utilisation
          1. Développement
            1. Licence

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that provides access to the DBLP computer science bibliography database, allowing AI models to search publications, process citations, and generate accurate BibTeX entries.
                Last updated -
                6
                1
                Python
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.
                Last updated -
                854
                4
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables conversational searching of NIH-funded research projects and publications through the NIH RePORTER database.
                Last updated -
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables Claude to perform advanced web research with intelligent search queuing, enhanced content extraction, and deep research capabilities.
                Last updated -
                53
                TypeScript
                MIT License
                • Apple

              View all related MCP servers

              ID: hzm56qlvk9