cds-mcp
This MCP server enables searching, retrieving, and browsing documents from the CERN Document Server (CDS).
Search CDS documents (
search_cds_documents): Search using keywords with optional filters for experiment (e.g., ATLAS, CMS, LHCb, ALICE), document type (e.g., Article, Thesis, Report), date ranges, sort order (most recent, best match, most cited), and result size (up to 100).Get document details (
get_cds_document_details): Retrieve full metadata for a specific document by its MCP ID (cds:123456), including the complete abstract, authors, and other metadata.Get document files (
get_cds_document_files): Fetch file information and direct download URLs for a specific document by its MCP ID.List CERN experiments (
get_cds_experiments): Browse common CERN experiments available as search filters.List document types (
get_cds_document_types): Browse available CDS document types to use as search filters.Browse collections (
list_cds_collections): Explore the hierarchical taxonomy of CDS collections and sub-collections to identify the correct search keys for filtering.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cds-mcp find recent papers from the ATLAS experiment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CDS MCP Server
A Model Context Protocol (MCP) server for integrating with CERN Document Server (CDS), built on the Invenio digital library framework.
As of July 28, 2026, CDS places its public search, export, API, and OAI routes behind an Anubis JavaScript proof-of-work challenge. Non-browser clients receive HTML instead of record data, so this MCP server cannot currently query CDS. The CDS team must provide a machine-accessible route or exempt the documented API routes before service can be restored.
Features
Search CDS documents with filters for experiments, document types, and date ranges
Get detailed document information including full abstracts, authors, and metadata
Access document files with download URLs and file metadata
Browse experiments and document types for better search filtering
Related MCP server: Primo MCP Server
Installation
Requires Python 3.10+.
Quickstart (recommended)
No installation needed, just use uvx to run directly:
uvx cds-mcpFrom PyPI
pip install cds-mcpFrom source
git clone https://github.com/MohamedElashri/cds-mcp
cd cds-mcp
uv syncUsage
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"cds": {
"command": "uvx",
"args": ["cds-mcp"]
}
}
}Note for macOS users: If you see an error about uvx not being found, you may need to provide the absolute path. Claude Desktop does not support ~ or $HOME expansion.
Run
which uvxin your terminal to find the path (e.g.,/Users/yourusername/.local/bin/uvx).Use that absolute path in the
commandfield:
"command": "/Users/yourusername/.local/bin/uvx"Claude Code
Project-specific (default) — installs in the current directory's configuration:
claude mcp add cds-mcp -- uvx cds-mcpGlobal — installs for your user account (works in all projects):
claude mcp add --scope user cds-mcp -- uvx cds-mcpManual Configuration — you can also manually edit your global config at ~/.claude.json (on Linux/macOS) or %APPDATA%\Claude\claude.json (on Windows):
{
"mcpServers": {
"cds": {
"command": "uvx",
"args": ["cds-mcp"]
}
}
}GitHub Copilot
Add to your VS Code settings.json:
{
"mcp": {
"servers": {
"cds": {
"command": "uvx",
"args": ["cds-mcp"]
}
}
}
}Or add a .vscode/mcp.json to your project:
{
"servers": {
"cds": {
"command": "uvx",
"args": ["cds-mcp"]
}
}
}Gemini CLI
Add to your ~/.gemini/settings.json:
{
"mcpServers": {
"cds": {
"command": "uvx",
"args": ["cds-mcp"]
}
}
}Direct usage
# Run with uvx (no install needed)
uvx cds-mcp
# Or if installed from PyPI
cds-mcp
# Or from source
uv run cds-mcpAuthentication & Access Control
CDS does not document an API key or OIDC audience for its legacy /search
JSON endpoint. Although this repository contains experimental CERN OIDC
client-credentials code, obtaining a token does not authenticate a request to
CDS: API-access tokens require a target audience that accepts the token, and a
client-credentials token represents an application identity rather than the
CERN user whose experiment memberships grant access to restricted records.
Do not create a Personal API request or OIDC application for this server until CDS Support confirms:
The supported machine-to-machine endpoint and authentication scheme.
The exact OIDC audience, if bearer tokens are supported.
Whether access to restricted records requires a user-delegated flow.
Which API paths are exempt from the Anubis browser challenge.
Tools
search_cds_documents: Search CDS with various filtersget_cds_document_details: Get detailed information about a specific documentget_cds_document_files: Get file information and download URLsget_cds_experiments: List available CERN experiments for filteringget_cds_document_types: List available document types for filtering
Development
git clone https://github.com/MohamedElashri/cds-mcp
cd cds-mcp
uv sync
uv run python tests/test_integration.py # Test real CDS API integration
uv run python tests/test_mcp_server.py # Test MCP server functionalityLicense
MIT License - see LICENSE for details.
Available Tools
6 toolsget_cds_document_detailsA
Get detailed information about a specific CDS document including full abstract, authors, and metadata
Inputs: mcp_id (required).
get_cds_document_filesB
Get file information and download URLs for a specific CDS document
Inputs: mcp_id (required).
get_cds_document_typesA
Get a list of common CDS document types that can be used for filtering searches
Inputs: no named parameters.
get_cds_experimentsA
Get a list of common CERN experiments that can be used for filtering searches
Inputs: no named parameters.
list_cds_collectionsA
Browse the hierarchical taxonomy of CERN Document Server (CDS) collections and sub-collections. Use this tool BEFORE searching if you are unsure which collection or category to search in. It returns the exact search keys that can be passed into the doc_type argument of search_cds_documents.
Inputs: no named parameters.
search_cds_documentsA
Search CDS documents with various filters including experiment, document type, and date range
Inputs: query (required), experiment, doc_type, from_date, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: details, files, filter lists (types and experiments), collection browsing, and searching. No overlap exists.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., get_cds_document_details, search_cds_documents), making them predictable.
With 6 tools, the set is well-scoped for a read-only document server API, covering search, retrieval, and exploration without excess.
The tool surface covers core operations: searching with filters, retrieving details and files, browsing taxonomy, and accessing filter options. No obvious gaps for the stated domain.
Maintenance
Related MCP Connectors
Hosted MCP server for finding authoritative primary data sources and official portals.
MCP server for innovationlab documentation, generated by doc2mcp.
MCP server for opencode documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseAqualityCmaintenanceA comprehensive MCP server for interacting with Zenodo records, enabling search, retrieval, citation generation, and file downloads.56Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for searching Ex Libris Primo library catalogues and subscribed databases, enabling search, record retrieval, autocomplete, citation generation, and export to BibTeX, RIS, or CSV.59MIT
- AlicenseAqualityCmaintenanceMCP server for searching and retrieving arXiv papers with full-text PDF extraction.52MIT
- AlicenseAqualityDmaintenanceAn MCP server for discovering, retrieving, citing, and evaluating scientific records from the Zenodo repository.18MIT