{"id":48255412,"url":"https://github.com/mohamedelashri/cds-mcp","last_synced_at":"2026-08-27T20:23:10.901Z","repository":{"id":348218381,"uuid":"1196975449","full_name":"MohamedElashri/cds-mcp","owner":"MohamedElashri","description":"Work in progress MCP server for CDS (CERN document server)","archived":false,"fork":false,"pushed_at":"2026-06-23T19:12:29.000Z","size":426,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T20:05:52.029Z","etag":null,"topics":["cds","cern","mcp","mcp-server"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cds-mcp/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MohamedElashri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-31T08:04:30.000Z","updated_at":"2026-06-23T18:03:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"d58c0c76-fb4a-45c3-9d8d-20175af4f27e","html_url":"https://github.com/MohamedElashri/cds-mcp","commit_stats":null,"previous_names":["mohamedelashri/cds-mcp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/MohamedElashri/cds-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fcds-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fcds-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fcds-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fcds-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohamedElashri","download_url":"https://codeload.github.com/MohamedElashri/cds-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fcds-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36946740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-08-27T02:00:07.166Z","response_time":96,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cds","cern","mcp","mcp-server"],"created_at":"2026-04-04T21:09:39.613Z","updated_at":"2026-08-27T20:23:10.894Z","avatar_url":"https://github.com/MohamedElashri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDS MCP Server\n\nA Model Context Protocol (MCP) server for integrating with CERN Document Server (CDS), built on the Invenio digital library framework.\n\n\u003e [!WARNING]\n\u003e As of July 28, 2026, CDS places its public search, export, API, and OAI\n\u003e routes behind an Anubis JavaScript proof-of-work challenge. Non-browser\n\u003e clients receive HTML instead of record data, so this MCP server cannot\n\u003e currently query CDS. The CDS team must provide a machine-accessible route or\n\u003e exempt the documented API routes before service can be restored.\n\n## Features\n\n- **Search CDS documents** with filters for experiments, document types, and date ranges\n- **Get detailed document information** including full abstracts, authors, and metadata\n- **Access document files** with download URLs and file metadata\n- **Browse experiments and document types** for better search filtering\n\n\n## Installation\n\nRequires Python 3.10+.\n\n### Quickstart (recommended)\n\nNo installation needed, just use [uvx](https://docs.astral.sh/uv/) to run directly:\n\n```bash\nuvx cds-mcp\n```\n\n### From PyPI\n\n```bash\npip install cds-mcp\n```\n\n### From source\n\n```bash\ngit clone https://github.com/MohamedElashri/cds-mcp\ncd cds-mcp\nuv sync\n```\n\n## Usage\n\n### Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"cds\": {\n      \"command\": \"uvx\",\n      \"args\": [\"cds-mcp\"]\n    }\n  }\n}\n```\n\nNote 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.\n\n1. Run `which uvx` in your terminal to find the path (e.g., `/Users/yourusername/.local/bin/uvx`).\n2. Use that absolute path in the `command` field:\n\n```json\n\"command\": \"/Users/yourusername/.local/bin/uvx\"\n```\n\n### Claude Code\n\nProject-specific (default) — installs in the current directory's configuration:\n\n```bash\nclaude mcp add cds-mcp -- uvx cds-mcp\n```\n\nGlobal — installs for your user account (works in all projects):\n\n```bash\nclaude mcp add --scope user cds-mcp -- uvx cds-mcp\n```\n\nManual Configuration — you can also manually edit your global config at `~/.claude.json` (on Linux/macOS) or `%APPDATA%\\Claude\\claude.json` (on Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"cds\": {\n      \"command\": \"uvx\",\n      \"args\": [\"cds-mcp\"]\n    }\n  }\n}\n```\n\n### GitHub Copilot\n\nAdd to your VS Code `settings.json`:\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"cds\": {\n        \"command\": \"uvx\",\n        \"args\": [\"cds-mcp\"]\n      }\n    }\n  }\n}\n```\n\nOr add a `.vscode/mcp.json` to your project:\n\n```json\n{\n  \"servers\": {\n    \"cds\": {\n      \"command\": \"uvx\",\n      \"args\": [\"cds-mcp\"]\n    }\n  }\n}\n```\n\n### Gemini CLI\n\nAdd to your `~/.gemini/settings.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"cds\": {\n      \"command\": \"uvx\",\n      \"args\": [\"cds-mcp\"]\n    }\n  }\n}\n```\n\n### Direct usage\n\n```bash\n# Run with uvx (no install needed)\nuvx cds-mcp\n\n# Or if installed from PyPI\ncds-mcp\n\n# Or from source\nuv run cds-mcp\n```\n\n\n## Authentication \u0026 Access Control\n\nCDS does not document an API key or OIDC audience for its legacy `/search`\nJSON endpoint. Although this repository contains experimental CERN OIDC\nclient-credentials code, obtaining a token does not authenticate a request to\nCDS: API-access tokens require a target audience that accepts the token, and a\nclient-credentials token represents an application identity rather than the\nCERN user whose experiment memberships grant access to restricted records.\n\nDo not create a Personal API request or OIDC application for this server until\nCDS Support confirms:\n\n1. The supported machine-to-machine endpoint and authentication scheme.\n2. The exact OIDC audience, if bearer tokens are supported.\n3. Whether access to restricted records requires a user-delegated flow.\n4. Which API paths are exempt from the Anubis browser challenge.\n\n## Tools\n\n1. **`search_cds_documents`**: Search CDS with various filters\n2. **`get_cds_document_details`**: Get detailed information about a specific document\n3. **`get_cds_document_files`**: Get file information and download URLs\n4. **`get_cds_experiments`**: List available CERN experiments for filtering\n5. **`get_cds_document_types`**: List available document types for filtering\n\n## Development\n\n```bash\ngit clone https://github.com/MohamedElashri/cds-mcp\ncd cds-mcp\nuv sync\nuv run python tests/test_integration.py  # Test real CDS API integration\nuv run python tests/test_mcp_server.py   # Test MCP server functionality\n```\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelashri%2Fcds-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedelashri%2Fcds-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelashri%2Fcds-mcp/lists"}