cern-opendata-mcp-server MCP Server
Search CERN Open Data, fetch records, files, analysis environments, CMS good-run lists, HLT paths.
cern-opendata-mcp-server scores 67 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 8 tools. Filed under Data and analytics. GitHub shows 1 stars. Package registries report about 638 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
67 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
78/100 for listing completeness. Lost points: 7 of 8 tools barely described, short summary.
How quality is graded
Where the 67 comes from
22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cyanheads-cern-opendata-mcp-server": { "command": "npx", "args": [ "-y", "@cyanheads/cern-opendata-mcp-server@0.4.0" ], "env": { "CERN_OPENDATA_CLAMP_LIMITS": "true", "MCP_LOG_LEVEL": "info" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
CERN_OPENDATA_CLAMP_LIMITS | Optional | Serve oversized page requests at the tool's cap. Set false to reject them. |
MCP_LOG_LEVEL | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
CERN_OPENDATA_CLAMP_LIMITS | Optional | Serve oversized page requests at the tool's cap. Set false to reject them. |
MCP_TRANSPORT_TYPE | Optional | Selects the HTTP transport. |
MCP_HTTP_HOST | Optional | The hostname for the HTTP server. |
MCP_HTTP_PORT | Optional | The port to run the HTTP server on. |
MCP_HTTP_ENDPOINT_PATH | Optional | The endpoint path for the MCP server. |
MCP_AUTH_MODE | Optional | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
MCP_LOG_LEVEL | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
Tools8Tool docs quality grade F
All capabilities<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
ctx.logtoollogging and ctx.enrich for notices and paging context
About
Public Hosted Server: https://cern-opendata.caseyjhand.com/mcp
Overview
Particle-physics data from the CERN Open Data Portal: collision and simulated datasets, analysis software, and documentation from ALICE, ATLAS, CMS, LHCb, and more. Search with live facet counts, open records with license and citation, list data files, assemble a record's analysis environment, and look up CMS good-run lists and trigger paths. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
Tools
| Tool | Description |
|---|---|
cern_opendata_search_records | Search datasets, software, environments, documentation and supplementary records with exact-vocabulary filters and live facet counts |
cern_opendata_get_records | Fetch full metadata for up to 20 records a call by recid, DOI, CMS dataset path or documentation slug, with license and citation |
cern_opendata_list_files | Page through a record's file indexes and files: XRootD URIs, HTTPS URLs, sizes, checksums, tape availability |
cern_opendata_get_analysis_env | Assemble a record's analysis environment: container images, CMSSW release, global tag, linked environment and software records, guide sections |
cern_opendata_get_validated_runs | Get a CMS validated-run (good-run) list for a dataset, a list or a run period, with luminosity-section ranges |
cern_opendata_search_trigger_paths | Look up CMS High-Level Trigger paths by name or prefix, parsed into run ranges, versions and L1 seeds |
cern_opendata_list_reference | Decode the vocabulary the other tools accept: experiments, record types, energies, formats, physics categories, LHCb stripping, identifiers, query syntax, licensing, run periods |
Resources
| Resource | Description |
|---|---|
cern-opendata://record/{recid} | One record's metadata, license and citation, in the cern_opendata_get_records record shape |
Tool-only clients get the same data from cern_opendata_get_records.
Agent skill
cern-opendata-guide connects dataset discovery, file indexes, analysis environments, CMS certification and trigger evidence. It covers identifier sources and checks to make before treating a result as complete. The guide ships with plugin installs, npm, Docker and the Claude Desktop bundle. MCP clients can discover it through the Skills extension and its SDK-generated skill resources, alongside the record resource above. No prompts are registered.
Capability reference
cern_opendata_search_records tool
- Optional
query(an OpenSearchquery_string, up to 500 characters) plus OR-list filterstype,experiment,category(physics category,Higgs Physics::Standard Model),keywords,collision_energy,collision_type,file_type,availability,collection, and the LHCbmagnet_polarity,stripping_streamandstripping_version, each an array of values;year_from/year_toandmin_events/max_eventsbound the data-taking year and event count sort(bestmatch,mostrecentfor newestdate_publishedfirst,title,title_desc),limitup to 1,000 (default 10) andpagefrom 1, counting pages of the limit applied.page × limitpast 10,000 fails aspage_window_exceeded- Compact
hitswith recids, plus thirteen livefacetsthat each ignore their own filter (typeandcategorywith up to 10 secondary values each, andsubtypes_other_countorsubcategories_other_countwhen the portal cuts that list);applied_filtersechoes what ran, and values outside the verified vocabulary appear underunrecognized_values
cern_opendata_get_records tool
ids: up to 100 recids, DOIs, CMS dataset paths (/Primary/Era/TIER) or documentation slugs, mixed in one array; the first 20 distinct are looked up and the rest returned indeferred- Each record carries a
licensewith itsbasis(record,cern_terms_default,not_stated) and, when it has a DOI, a readycitation - Documentation and news bodies come in slices of up to 30,000 characters:
body_offsetwith that one id reads on from thebody_next_offsetthe last slice returned - Simulated datasets can include ordered
methodology_stepsand across_sectionwith the portal’s values and units. Setinclude_scripts: trueto retrieve inline production scripts as text. When scripts are omitted, the record gives their count and the call to retrieve them. - Records also return what they state of a
variablesdictionary (name, type, unit, description), a physicscategory, pile-up (pileup_html, with the pile-up datasets underlinks),keywords, and the LHCbmagnet_polarityandstrippingstream and version - Unresolved identifiers land in
missingwithinterpreted_asand guidance instead of failing the call; file lists come fromcern_opendata_list_files
cern_opendata_list_files tool
- Without
index, a record page lists file indexes first, then regular files. With an index key, it pages through that index’s member files. limitup to 2,000 (default 50), continued withnext_cursor; each file carriesxrootd_uri,size_in_bytes,checksumandavailability, anhttps_urlwhen one can be built from its key or EOS path, andkeyorfilenameas the portal states them, and each index auri_list_urllisting every XRootD URI in it- Files marked
on demandsit on tape and must be requested on the record's portal page first; an umbrella record with no files of its own returns its child recids underchildren
cern_opendata_get_analysis_env tool
recidrequired;softwarecarries the record's own container images, CMSSW release, global tag and environment recidenvironment_records(condition, VM, validation) for the record's run periods andexample_softwarethat declares it works with the record, up to 50 between them;guidesquotes the linked section of the first two portal guides, each capped at 12,000 characters, with the[label]: urlreference definitions the quote links through from elsewhere in the guide, and a cut names thecern_opendata_get_recordsbody_offsetthat reads on from it- Always
separately_licensed: true; linked records or guides that can't be read leave anoticeinstead of failing the call
cern_opendata_get_validated_runs tool
- Exactly one of
recid(a CMS collision dataset or a validated-run list) orrun_period(Run2012B;2012Balso matches);variantfullormuons_only;run_min/run_max;limitup to 2,000 (default 200) - A dataset
recidbounds the runs to the dataset's first and last listed run, echoed inrun_bounds; when several lists match,matched_listsnames them and no runs are read - Each run carries
lumi_sectionsandlumi_ranges;list.https_urldownloads the whole list file. CMS only: other records fail asno_validated_runs
cern_opendata_search_trigger_paths tool
path: an exact name (HLT_IsoMu24,AlCa_EcalPi0) or a prefix with one trailing*(HLT_IsoMu*); a name without theHLT_prefix is matched against record path names in the case given and also searched withHLT_added, and a_v<n>version suffix is dropped; optionalyear,limitup to 625 (default 10) andpage- Each per-year record is parsed into the primary
datasetsits title names,first_seen,last_seen, per-version run ranges with theirl1_seed, and HLT menu record links;parsed: falsemarks a record to read from itsabstract_html - CMS open data from 2011–2016 only
cern_opendata_list_reference tool
- Optional
topic:experiments,record_types,collision_energies,collision_types,file_types,availability,categories,lhcb,identifiers,query_syntax,licensingorrun_periods; omit it for every table - Static and offline;
categories,lhcbandrun_periodsare dated snapshots, while the search facets andcern_opendata_get_validated_runsread the live portal
cern-opendata://record/{recid} resource
- One record by
recid(6004, or a prefixed recid such asatlas-160006; leading zeros ignored) asapplication/json, in thecern_opendata_get_recordsrecord shape: metadata (including production steps and cross section when stated), license and citation, with inline scripts omitted recidcomes fromcern_opendata_search_records; reads carry a 15-minute public cache hint
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
CERN Open Data-specific:
- Keyless and read-only; it never stages tape files or writes anything
- One shared pacer at 50 requests a minute, under the portal's published 60 per client IP, and one 50-second deadline per call across queue wait and retries
- Filter values canonicalized against the portal's verified vocabulary (
13 tev→13TeV,lhcb→LHCb,Pb-Pb→PbPb,dataset/collision→Dataset::Collision); unknown values are sent as given and flagged - Tape-resident (
ondemand) records are included in every search and lookup, where the portal otherwise drops them silently - File manifests, and file indexes read on their own, are cached for 15 minutes, so paging through a record's or an index's files costs one read
- Lookup hits are cached for 15 minutes within an 8 MiB cache shared by the record tool and resource. A repeated lookup or body continuation reuses a cached hit.
Agent-friendly output:
HTML image sources and alt text survive as literal  references within the existing fenced or escaped text rendering; they do not become active image embeds. Original HTML remains available in structuredContent.
- Provenance on every response:
portal_urlon each hit and record, alicensewith itsbasis, a DOIcitation, andapplied_filtersoreffectiveQueryechoing what ran - Graceful partial results: unresolved ids land under
missingwith guidance, and unreadable linked records or guides incern_opendata_get_analysis_envsurface as anoticerather than a failure - Discriminated outputs:
kind,license.basis,interpreted_as,scope,variant,run_bounds.sourceandparsedlet callers branch on data, not string parsing - Portal text kept as data: titles, descriptions, guide sections and file names are fenced or escaped in
content[]and relayed as received (HTML in_htmlfields) instructuredContent
Data and licensing
Portal metadata and datasets are CC0 under the CERN Open Data Terms of Use. Software, container images, documentation and guide code are licensed separately, per record (software is commonly GPL). cern_opendata_get_records reports each record's license and its basis: record when the record states one, cern_terms_default for a dataset that states none (CC0), and not_stated otherwise.
CERN asks reusers to cite each dataset's DOI in applications and publications; cern_opendata_get_records returns a ready citation for every record with a DOI.
This server is an independent project and is not affiliated with or endorsed by CERN.
Known limitations
- 60 requests a minute per client IP. The portal publishes this limit; the server paces itself to 50 a minute, and a call that cannot start within its deadline fails as
rate_limitedwithretryAfter. A hosted deployment shares one budget across every user behind its egress IP.cern_opendata_get_analysis_envandcern_opendata_get_validated_runscost 2–4 requests each. - 10,000-result window. Search and trigger-path paging reach only the first 10,000 matches; narrow deeper result sets with filters.
- Facet lists are partial. Terms facets return the first 10 values alphabetically (
file_typeup to 100), with the rest counted inother_count, and eachtypeandcategorybucket its first 10 secondary values, with the rest counted insubtypes_other_countorsubcategories_other_count(an unfiltered search hidesSupplementaries::Triggerthis way). These are summed counts of values, not record counts;cern_opendata_list_referencelists every value, and aPrimary::Secondaryfilter'stotalCountcounts its records. - Tape-resident files. Files with availability
on demandmust be requested on the record's portal page before download; staging them is a write and out of scope. A record whose availability isondemandlists none of its files through the API, socern_opendata_list_filesreports only the count and size its metadata states. - CMS-only run lists and triggers. Trigger records cover 2011–2016, and trigger detail is limited to what each record's abstract states.
cern_opendata_search_trigger_pathsreturns no prescale factors: they are in each HLT menu record's configuration file (itsPrescaleServiceblock, listed bycern_opendata_list_fileswith themenu_recid), and the CMS luminosity records (collectionCMS-Luminosity-Information) log which prescale column applied by run and luminosity section. Muons-only run lists do not exist for Commissioning2010, Run2010B or the 2011 ReReco list. - Glossary entries are not served. The portal's glossary links answer 404, so search excludes them.
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http cern-opendata-mcp-server https://cern-opendata.caseyjhand.com/mcp
Every caller of the hosted instance shares one portal request budget of 50 requests a minute. For sustained use, run your own instance.
Or run it locally:
claude mcp add cern-opendata-mcp-server -- npx -y @cyanheads/cern-opendata-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"cern-opendata-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/cern-opendata-mcp-server"]
}
}
}
No API key or account is required. For Docker or a source build, see Running the server.
Configuration
By default, a list tool serves an oversized limit at its cap and reports the applied value. To continue a search whose requested size was clamped to 50, pass limit: 50 to keep the same offsets.
| Variable | Description | Default |
|---|---|---|
CERN_OPENDATA_CLAMP_LIMITS | Serve oversized page requests at the tool’s cap. Set false to advertise the cap as a schema maximum and reject larger requests. | true |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | HTTP server port. | 3010 |
MCP_HTTP_HOST | HTTP server host. | 127.0.0.1 |
MCP_HTTP_ENDPOINT_PATH | Literal HTTP endpoint path. | /mcp |
MCP_PUBLIC_URL | Public HTTP(S) base URL for reverse-proxy deployments. Omit credentials, query parameters, and fragments. | Unset |
MCP_SESSION_MODE | HTTP session mode: stateless, stateful, or auto. | stateless |
MCP_AUTH_MODE | Authentication: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (debug, info, warning, error, etc.). | info |
LOGS_DIR | Directory for log files (Node.js only). Relative paths resolve from the server package. | <app-root>/logs |
OTEL_ENABLED | Enable OpenTelemetry. | false |
See .env.example for the common framework overrides.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
git clone https://github.com/cyanheads/cern-opendata-mcp-server.git
cd cern-opendata-mcp-server
bun install
cp .env.example .env
# optional: adjust transport, logging, or telemetry settings
-
Build and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdio -
Run checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite
Streamable HTTP
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/cern-opendata-mcp-server:latest
The image defaults to HTTP transport, stateless sessions, and logs to /var/log/cern-opendata-mcp-server. For stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/cern-opendata-mcp-server:latest"]. To build locally, run docker build -t cern-opendata-mcp-server .; OpenTelemetry peers are installed by default, and --build-arg OTEL_ENABLED=false omits them.
Project structure
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point: registers tools, the record resource and published skills, sets server instructions, starts the portal client. |
src/mcp-server/tools | Tool definitions (*.tool.ts), shared input helpers and list enrichment. |
src/mcp-server/resources | The cern-opendata://record/{recid} resource definition. |
src/mcp-server/record-schema.ts | Record output schema shared by cern_opendata_get_records and the resource. |
src/services/cern-opendata | Portal client (pacing, retries, deadline, caches), normalization, vocabulary tables, text rendering, trigger parsing. |
tests/ | Unit and tool tests, mirroring the src/ structure, run against fixture portal responses. |
skills/ | Published cern-opendata-guide for agents calling the tools. |
framework-skills/ | Development skills for agents maintaining the server. |
docs/design.md | Tool surface, verified portal behavior, and design decisions. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor logging andctx.enrichfor notices and paging context - Register new tools and resources in the barrels in
src/mcp-server/*/definitions/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Frequently asked questions
What is cern-opendata-mcp-server MCP Server?
Search CERN Open Data, fetch records, files, analysis environments, CMS good-run lists, HLT paths.
How do I install cern-opendata-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. cern-opendata-mcp-server MCP Server runs locally from the npm package @cyanheads/cern-opendata-mcp-server with the command npx -y @cyanheads/cern-opendata-mcp-server@0.4.0.
Is cern-opendata-mcp-server MCP Server free and open source?
Yes. cern-opendata-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does cern-opendata-mcp-server MCP Server support remote (HTTP) connections?
Yes. cern-opendata-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does cern-opendata-mcp-server MCP Server provide?
cern-opendata-mcp-server MCP Server provides 8 tools, including cern_opendata_get_analysis_env, cern_opendata_get_records, cern_opendata_get_validated_runs, and cern_opendata_list_files. See the full tool list for descriptions and parameters.
How is cern-opendata-mcp-server MCP Server's trust score calculated?
cern-opendata-mcp-server MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.