DBLP MCP Server
Fetches and caches legal full-text PDFs from ACM using a direct DOI-to-PDF pattern.
Fetches and caches abstracts and legal full-text PDFs from arXiv via the arXiv API and direct PDF lookup.
Downloads official DBLP XML/DTD dumps, imports them into a local SQLite database, and provides search and retrieval of DBLP publications by key, terms, year, contributor, venue, and record type.
Fetches and caches legal full-text PDFs from IEEE by resolving IEEE DOIs and retrieving IEEE stamped PDFs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
DBLP MCP Server
Disclaimer: This project was written entirely by AI-assisted coding agents. Human review is strongly recommended before production use, publication, or security-sensitive deployment.
This project provides a Python MCP server for working with the DBLP computer science bibliography locally. It is designed around a two-step workflow:
download the raw DBLP XML dump from
https://dblp.org/xml/stream that XML into a normalized SQLite database that can be searched without loading the full dataset into RAM
On top of the bibliographic database, the server can also fetch and cache paper abstracts from supported public sources.
Features
download and cache the official DBLP XML dump
stream
.xmland.xml.gzfiles into SQLite using bounded memorysearch publications using SQLite FTS5
inspect one publication by DBLP key
fetch and cache abstracts from modular source providers
fetch and cache legal full-text PDFs plus extracted text from modular source providers
log unsupported abstract sources and provider failures for later development
Related MCP server: XRB MCP
Installation
python -m venv .venv
. .venv/bin/activate
pip install -e .[dev]Configuration
The server reads a small number of environment variables:
DBLP_MCP_DATA_DIR: directory containingdblp.xml.gz,dblp.dtd, anddblp.sqliteDBLP_MCP_BATCH_SIZE: batch size used by the XML importerDBLP_MCP_ENABLE_NETWORK: set to0to disable abstract/fulltext network fetchesDBLP_MCP_ABSTRACT_TIMEOUT_SECONDS: timeout for abstract providersDBLP_MCP_FULLTEXT_TIMEOUT_SECONDS: timeout for fulltext providersDBLP_MCP_DOWNLOAD_TIMEOUT_SECONDS: timeout for privileged DBLP downloadsDBLP_MCP_MAX_FULLTEXT_PDF_BYTES: maximum accepted PDF size for fulltext caching
Default paths are derived from DBLP_MCP_DATA_DIR:
XML dump:
data/dblp.xml.gzDTD file:
data/dblp.dtdSQLite database:
data/dblp.sqlite
Running the MCP server
The server uses MCP stdio transport and is intended to be launched by an MCP client such as LM Studio.
DBLP_MCP_DATA_DIR should be set explicitly for published deployments. By default the server now refuses to start unless the data dir is configured, unless you pass --allow-implicit-data-dir for local-only fallback behavior.
python app.pyBy default, the server starts in unprivileged mode and hides maintenance tools that can download raw DBLP data or rebuild the SQLite database. To expose those tools, launch it with:
python app.py --privilegedWhen run without a connected MCP client, the process exits immediately because stdio closes.
Example LM Studio MCP configuration
{
"mcpServers": {
"dblp": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["app.py"],
"cwd": "/absolute/path/to/repo",
"env": {
"DBLP_MCP_DATA_DIR": "/absolute/path/to/data"
}
}
}
}MCP tools
The following two tools are only exposed when the server is launched with --privileged.
download_dblp_dump
Download the DBLP XML dump or DTD into local storage.
Parameters:
destination: local output pathsource_url: DBLP XML-area URL, defaults tohttps://dblp.org/xml/dblp.xml.gzreplace: iffalse, reuse an existing local file instead of downloading again
Returns:
source URL
destination path (always constrained to
DBLP_MCP_DATA_DIR)file size
SHA-256 digest
timestamp
whether the file came from cache
build_dblp_sqlite
Stream the DBLP XML dump into a searchable SQLite database.
Parameters:
xml_path: path to.xmlor.xml.gzdatabase_path: target SQLite filereplace: rebuild the SQLite file atomicallybatch_size: commit frequency during import
Returns:
source and database paths
whether replace mode was used
import statistics for publications, contributors, identifiers, venue links, and extra fields
Notes:
the importer processes the XML incrementally with
iterparsethe importer always builds a fresh database and swaps it into place on success
incremental append imports are intentionally not supported
search_publications
Search imported publications using structured term groups over the SQLite FTS index.
Parameters:
term_groups: list of OR-groups; the outer list means AND between groupsdatabase_path: SQLite file to search, constrained toDBLP_MCP_DATA_DIRlimit: maximum number of results, from 1 to 1000year_from,year_to: optional year filtersrecord_types: optional DBLP record type filter listcontributor: optional normalized contributor substring filtervenue: optional normalized venue substring filter
Returns:
the normalized
term_groupsresult count
compact publication summaries by default
optional contributor and venue lists when explicitly requested
get_publication
Fetch one publication by canonical DBLP key.
Parameters:
dblp_key: DBLP record key such asconf/icse/GropengiesserDB25database_path: SQLite file to inspect, constrained toDBLP_MCP_DATA_DIR
Returns:
bibliographic core fields
contributors
venues
full
abstract, if one has already been fetched and cachedoptional identifiers, extra sparse fields, and fulltext metadata when explicitly requested
fetch_publication_abstract
Fetch an abstract for an imported publication and cache it in SQLite.
Parameters:
dblp_key: DBLP key of an imported publicationdatabase_path: SQLite file to updaterefresh: iftrue, bypass the cached abstract and try the providers again
Behavior:
resolves the publication from local SQLite
derives provider lookup identifiers from stored DBLP identifiers and fields
tries source-specific providers in order
stores successful abstract fetches in
publication_abstractswrites success/failure/unsupported entries to
abstract_fetch_logs
Result statuses:
cached: a stored abstract was returned without network accessfetched: a provider returned a new abstract and it was storedunsupported: no supported provider could be derived from the publication metadatanot_found: supported providers ran but did not produce an abstract
Current providers:
openalex: DOI-based lookup through the public OpenAlex APIarxiv: arXiv lookup through the public arXiv API
Current full-text providers:
arxiv_pdf: direct arXiv PDF lookupieee_pdf: IEEE DOI resolution followed by IEEE stamp PDF retrievalacm_pdf: ACM direct DOI-to-PDF patternopenalex_pdf: OpenAlex-discovered open-access PDF URLs
fetch_publication_abstracts
Fetch abstracts for a whole list of imported publications.
Parameters:
dblp_keys: list of DBLP keysdatabase_path: SQLite file to updaterefresh: iftrue, bypass cached abstracts for every requested key
Returns:
a
summaryobject with counts forfetched,cached,unsupported,not_found,missing, anderrora
resultslist with one structured result per requested key
This tool is intended for batch use cases where partial success is acceptable. Missing or unsupported records do not stop the rest of the batch.
fetch_publication_fulltext
Fetch a legal full-text PDF and extracted text for one imported publication.
Parameters:
dblp_key: DBLP key of an imported publicationdatabase_path: SQLite file to updaterefresh: iftrue, bypass the cached fulltext and retry the providers
Returns:
provider and source metadata
local cached PDF path relative to
DBLP_MCP_DATA_DIRSHA-256, size, and page count
a token-efficient
excerptandtext_lengthby defaultoptional full extracted text when explicitly requested
image_statuspluspage_image_paths(currently text-only / unsupported by default)
fetch_publication_fulltexts
Fetch legal full-text PDFs and extracted text for a whole list of imported publications.
Parameters:
dblp_keys: list of DBLP keysdatabase_path: SQLite file to updaterefresh: iftrue, bypass cached fulltext entries for each requested key
Returns:
a
summaryobject with counts forfetched,cached,unsupported,not_found,missing, anderrora
resultslist with one structured result per requested key
get_recent_fetch_failures
Inspect recent abstract/fulltext fetch failures for operator debugging.
Parameters:
database_path: SQLite file to inspect, constrained toDBLP_MCP_DATA_DIRcategory: one ofall,abstract, orfulltextlimit: maximum rows to return, from 1 to 200
Returns failure log entries with category, provider, attempted URL, status, error code, and timestamp.
get_dblp_status
Report the state of the SQLite database.
Parameters:
database_path: SQLite file to inspect
Returns:
whether the file exists
database size in bytes
counts for publications, contributors, cached abstracts, abstract fetch logs, cached fulltexts, and fulltext fetch logs
the most recent import runs
Helper CLI
A small helper CLI exists for local development:
python -m dblp_mcp.cli download --destination data/dblp.xml.gz
python -m dblp_mcp.cli import --xml-path data/dblp.xml.gz --database-path data/dblp.sqlite
python -m dblp_mcp.cli search --database-path data/dblp.sqlite --query "graph neural networks"
python -m dblp_mcp.cli get --database-path data/dblp.sqlite --dblp-key "conf/icse/GropengiesserDB25"The abstract-fetching workflow is currently exposed through MCP, not through the helper CLI.
Architecture overview
Core modules:
src/dblp_mcp/server.py: MCP tool definitions and top-level server wiringsrc/dblp_mcp/cli.py: local helper CLI for download/import/search/get workflowssrc/dblp_mcp/downloader.py: DBLP XML/DTD download logic and file cachingsrc/dblp_mcp/importer.py: streaming XML-to-SQLite importersrc/dblp_mcp/database.py: SQLite connection settings, schema creation, and additive schema helperssrc/dblp_mcp/search.py: publication search, publication lookup, and database status reportingsrc/dblp_mcp/abstracts/: modular abstract provider system and orchestrationsrc/dblp_mcp/fulltext/: modular legal full-text provider system, cache, and extraction
Abstract provider architecture
Abstract fetching is intentionally separate from DBLP XML import.
abstracts/base.py: provider protocol plus shared lookup/result dataclassesabstracts/registry.py: ordered provider registryabstracts/service.py: publication resolution, provider selection, caching, and log writingabstracts/providers/openalex.py: DOI-backed abstract fetcher using OpenAlexabstracts/providers/arxiv.py: arXiv-backed abstract fetcher using the arXiv API
This keeps source-specific logic isolated so new providers can be added without changing the importer.
Data model
The SQLite schema is normalized around imported DBLP metadata and post-import enrichments.
Core bibliographic tables
publications: one row per imported DBLP recordcontributors: normalized author/editor namespublication_contributors: ordered author/editor linksvenues: normalized journal, conference, series, publisher, and school namespublication_venues: publication-to-venue links with relation types and orderingpublication_identifiers: DOI, URL, EE, ISBN, ISSN, and related stable identifierspublication_fields: sparse XML fields that do not justify dedicated columnsimport_runs: import provenance, counts, and statuspublication_search: FTS5 index built from titles, contributors, and venues
Abstract and full-text enrichment tables
publication_abstracts: cached abstract text plus provider, source URL, and fetch timestampabstract_fetch_logs: one row per abstract fetch outcome, including unsupported sources and provider errorspublication_fulltexts: cached full-text PDF metadata plus extracted textfulltext_fetch_logs: one row per full-text fetch outcome, including unsupported sources and provider errors
publication_abstracts stores the best known cached abstract for a publication. abstract_fetch_logs is intentionally append-only operational telemetry for developers who want to see where support is missing or broken.
Example workflows
Build the local DBLP database
python -m dblp_mcp.cli download --destination data/dblp.xml.gz
python -m dblp_mcp.cli import --xml-path data/dblp.xml.gz --database-path data/dblp.sqlite
python -m dblp_mcp.cli search --database-path data/dblp.sqlite --query "graph neural networks"Fetch and inspect an abstract through MCP
Call
fetch_publication_abstract(dblp_key="conf/icse/GropengiesserDB25")orfetch_publication_abstracts(...)Call
get_publication(dblp_key="conf/icse/GropengiesserDB25")Inspect the returned
abstractobject
Monitor abstract support coverage
Call
get_dblp_status()Check
abstractsandabstract_fetch_logsInspect
abstract_fetch_logsdirectly in SQLite when you need provider-level debugging
Current limitations
abstract and full-text fetching are on-demand, not bulk background enrichment
only OpenAlex and arXiv providers are implemented today
no abstract/fulltext CLI command exists yet
abstracts are cached in SQLite but not indexed in the current FTS table
unsupported or blocked sources are logged for later provider implementation
Publication files
This repository includes:
LICENSE(MIT)CHANGELOG.mdSECURITY.mdCONTRIBUTING.mdGitHub Actions CI in
.github/workflows/ci.yml
Additional controls:
DBLP_MCP_ENABLE_ABSTRACT_NETWORK=0disables abstract providers onlyDBLP_MCP_ENABLE_FULLTEXT_NETWORK=0disables fulltext providers onlybatch tools enforce configurable limits for abstract and fulltext requests
DBLP_MCP_PROVIDER_DELAY_MIN_SECONDS/DBLP_MCP_PROVIDER_DELAY_MAX_SECONDSadd a small randomized default delay before provider requests; provider-specific overrides use names likeDBLP_MCP_PROVIDER_DELAY_OPENALEX_MIN_SECONDSandDBLP_MCP_PROVIDER_DELAY_IEEE_PDF_MAX_SECONDS
Accepted term_groups shape:
term_groupsmust be a list of string lists only
Valid examples:
[["Florian Brandherm"]][["graph"], ["neural"], ["networks"]][["graph", "neural"], ["networks"]]
Meaning:
each inner list is an OR group
the outer list combines those groups with AND
Invalid example:
[{"operator": "AND", "terms": ["Florian Brandherm"]}]
The MCP tool does not accept object-based term-group syntax.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Search DataCite datasets and software, fetch DOI metadata, trace relations, format citations.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables searching and retrieving academic papers from arXiv and DBLP databases with advanced filtering options. Supports downloading PDFs and provides detailed paper information including titles, authors, abstracts, and publication dates.3MIT
- FlicenseAqualityCmaintenanceEnables local, provenance-aware literature search and retrieval for X-ray binary research, with tools for querying papers, fetching paper details, and accessing source information.3-
- FlicenseCqualityBmaintenanceEnables users to build and query a project-local literature database by ingesting papers from Semantic Scholar, PubMed, arXiv, and OpenAlex, caching open-access PDFs, extracting full text, ranking results, and exposing MCP tools for search, seeds, feedback, and pipeline status over stdio.16-
- AlicenseNot gradedqualityAmaintenanceEnables searching biomedical literature across PubMed and Europe PMC, fetching article metadata and open-access full text through PMC, Europe PMC, and Unpaywall fallbacks, formatting citations, resolving partial references and identifiers, and grounding queries in MeSH vocabulary, all over stdio or Streamable HTTP.9 npmMIT