Skip to main content
Glama
ukicar

Gallica/BnF MCP Server

by ukicar

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort to listen on for HTTP server3000
LOG_LEVELNoLogging level: error, warn, info, debuginfo
HTTP_RETRIESNoMaximum number of retry attempts3
HTTP_TIMEOUTNoHTTP request timeout in milliseconds30000
MCP_ICON_URLNoAbsolute URL to icon - defaults to /icon.svg relative to server URL/icon.svg
GALLICA_SRU_URLNoSRU search endpointhttps://gallica.bnf.fr/SRU
GALLICA_BASE_URLNoBase URL for Gallica APIhttps://gallica.bnf.fr
DEFAULT_MAX_RECORDSNoDefault maximum search results10
DEFAULT_START_RECORDNoDefault starting record for pagination1

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_by_title

Search for documents in the Gallica digital library by title.

search_by_author

Search for documents in the Gallica digital library by author.

search_by_subject

Search for documents in the Gallica digital library by subject.

search_by_date

Search for documents in the Gallica digital library by date. Accepts YYYY, YYYY-MM, or YYYY-MM-DD format.

search_by_document_type

Search for documents in the Gallica digital library by document type (e.g., monographie, periodique, image, manuscrit, carte, musique, etc.).

advanced_search

Perform an advanced search using custom CQL query syntax. Examples: dc.creator all "Victor Hugo" and dc.type all "monographie", dc.subject all "Paris" and dc.type all "carte", dc.language all "eng".

natural_language_search

Search the Gallica digital library using natural language. This is a simplified search that uses the "gallica all" operator to search across all fields.

get_item_details

Get full metadata for a Gallica item by its ARK identifier. Returns bibliographic data, available formats, and helpful URLs.

get_item_pages

Enumerate pages of a document. Returns logical page numbers, IIIF image URLs, and text availability flags.

get_page_image

Get IIIF image URL for a specific page. Returns URL and metadata, not binary data.

get_page_text

Retrieve OCR or TEI text for a specific page when available. Returns null if text is not available.

sequential_reporting

Generate a research report in a sequential, step-by-step manner using Gallica BnF sources.

This tool follows a sequential approach to report generation:

  1. Initialize with a topic

  2. Search for sources

  3. Create bibliography

  4. Create content sections in order

Parameters:

  • topic: Research topic (only needed for initialization)

  • page_count: Number of pages for the report (default: 4)

  • source_count: Number of sources to find (default: 10)

  • search_sources: Set to true to search for sources after initialization

  • section_number: Current section number (1-based)

  • total_sections: Total number of sections in the report

  • title: Title of the current section

  • content: Content for the current section

  • is_bibliography: Whether this section is the bibliography

  • sources_used: List of source IDs used in this section

  • next_section_needed: Whether another section is needed

  • include_graphics: Whether to include images and maps in the report

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ukicar/sweet-bnf'

If you have feedback or need assistance with the MCP directory API, please join our Discord server