Skip to main content
Glama
huygena-mcp
by huygena

huygena-mcp

An MCP server that lets an AI agent check whether a paper can be re-run, draft the run manifest, and verify the results against tolerances written before the run.

huygena-mcp puts the two open-source Huygena libraries behind the Model Context Protocol:

  • huygena-intake turns a DOI, arXiv, bioRxiv or PubMed ID into a replication brief. It covers the paper's own code (checked on GitHub), its data, its license and a readiness verdict with reasons.

  • huygena-verify lints run manifests, hashes evidence folders, computes per-claim verdicts and re-checks certificates offline, and reads Huygena's live contracts on Robinhood Chain.

Paper lookups use public APIs with no keys. On-chain reads use plain JSON-RPC with no key and no wallet. All other tools run locally. The server never writes files, signs anything, posts a bounty, starts a run or spends money.

Tools

Tool

Input

What it returns

Network

paper_intake

input, full_text?, check_repos?

Replication brief: metadata, access and license, primary vs mentioned code links with reachability on any host, data links and accessions, availability statements, readiness ready / partial / not_ready with a reason per check

Crossref, arXiv, bioRxiv, NCBI, Europe PMC, code hosts

literature_search

query, limit?, sort?, timeout_seconds?

Europe PMC hits with DOI, PMID/PMCID, year, journal, open-access flag, citation count

Europe PMC

draft_manifest

input, resolve_commit?

A manifest.v0 YAML skeleton for the paper, its lint report, a to-do list and the abstract

as paper_intake, plus one git request when the paper links a tag or branch

validate_manifest

manifest

Schema and lint findings (severity, rule id, path) and the manifest hash a certificate anchors

none

compare_claims

manifest, results (1 or 2 nodes), partial_factor?

Per-claim verdict, delta and reason; mismatches between nodes; results that ran a different manifest

none

hash_bundle

path, ignore?

Evidence bundle: SHA-256 and size per file, and a root hash you can recompute with sha256sum

none

verify_bundle

path, expected, ignore?

Match or not, with every modified, added and missing file

none

verify_certificate

certificate, manifest?, bundle_path?, ignore?, onchain?

Each check as pass, fail, skipped or planned. With onchain: true, the certificate is compared with its record in HuygenaCertificates

none, or Robinhood Chain RPC with onchain

read_bounties

id?, paper?, limit?

USDG bounties in HuygenaEscrow: status, USDG escrowed, deadline, fee and confirmer share fixed at creation, settling certificate. One by id, per paper, or the newest

Robinhood Chain RPC

read_certificate

run_id

One certificate from HuygenaCertificates: paper key, bounty, manifest hash, bundle root, attestation hashes, both nodes, one verdict per claim, evidence link, publication time

Robinhood Chain RPC

Notes on the inputs:

  • Document inputs (manifest, results, certificate, expected) take inline text or a path to a .yaml, .yml or .json file under the server root.

  • expected also takes a bare root hash.

  • Every tool returns a short text summary, the same data as JSON text, and structuredContent.

Verdicts are Replicated, Partially replicated, Failed and Could not run. With two nodes, a claim gets a verdict only when both agree. Failed means the result was not reproduced with the published code and data. It never means fraud.

Resources

URI

Content

huygena://schema/manifest.v0

JSON Schema for run manifests

huygena://schema/results.v0

JSON Schema for one node's results

huygena://schema/bundle.v0

JSON Schema for evidence bundles

huygena://schema/certificate.v0

JSON Schema for certificates

huygena://rules/verdicts

Tolerance and verdict rules (draft v0), from huygena-verify's SPEC.md

huygena://spec/v0

The full huygena-verify SPEC

Related MCP server: io.github.xngg1021/academic-research-kernel

Setup

Node 20 or newer.

Claude Code

claude mcp add huygena -- npx -y github:huygena/huygena-mcp

The file tools only read under the folder you start Claude Code in. To point them at another folder:

claude mcp add huygena -e HUYGENA_MCP_ROOT=/path/to/replications -- npx -y github:huygena/huygena-mcp

Claude Desktop, Cursor and other clients

Claude Desktop uses claude_desktop_config.json. Cursor uses ~/.cursor/mcp.json or .cursor/mcp.json in a project.

{
  "mcpServers": {
    "huygena": {
      "command": "npx",
      "args": ["-y", "github:huygena/huygena-mcp"],
      "env": {
        "HUYGENA_MCP_ROOT": "/path/to/replications"
      }
    }
  }
}

Set HUYGENA_MCP_ROOT for desktop clients. They often start servers in /, and in that case the file tools stay off (see Filesystem access).

How the GitHub install works

The package is not on npm yet. npx github:huygena/huygena-mcp clones this repo, installs huygena-intake and huygena-verify from GitHub, and runs each repo's prepare script to build it. The first start takes about half a minute. Later starts come from the npx cache.

This path was tested with npm 11. pnpm 12 blocks git-hosted sub-dependencies and their build scripts by default, so pnpm dlx will not work. Use npx, or build from source.

Build from source

Clone the three repos next to each other. In this repo, pnpm-workspace.yaml links ../huygena-intake and ../huygena-verify in place of the GitHub copies.

git clone https://github.com/huygena/huygena-intake.git
git clone https://github.com/huygena/huygena-verify.git
git clone https://github.com/huygena/huygena-mcp.git
(cd huygena-intake && pnpm install && pnpm build)
(cd huygena-verify && pnpm install && pnpm build)
cd huygena-mcp && pnpm install && pnpm build
claude mcp add huygena -- node "$PWD/dist/index.js"

Configuration

Variable

Default

HUYGENA_MCP_ROOT

the working directory

The only folder the file tools may read. If unset and the working directory is /, file tools are off

HUYGENA_MAILTO

none

Contact email for Crossref's polite pool and NCBI. Sent only to those two

HUYGENA_RPC_URL

a public Robinhood Chain RPC

JSON-RPC endpoint for read_bounties, read_certificate and verify_certificate with onchain

Logs go to stderr. Stdout carries the MCP protocol.

Example

These are real responses from pnpm smoke on 2026-11-25: the built server over stdio, live APIs for the paper, huygena-verify's examples/ for the rest. Long output is trimmed where marked.

paper_intake { "input": "10.1038/s41586-021-03819-2" } (13.9 s; Europe PMC was slow that day)

Highly accurate protein structure prediction with AlphaFold
John Jumper, Richard Evans, Alexander Pritzel +31 more · Nature · 2021
doi:10.1038/s41586-021-03819-2  PMID 34265844  PMC8371605
Open access: yes, CC-BY-4.0 (Crossref license) · full text read from PMC (NCBI) PMC8371605

Readiness  READY  All 5 core checks pass
  pass  code_found              The paper links its own code: github.com/deepmind/alphafold
  pass  code_reachable          github.com/google-deepmind/alphafold is live on GitHub (default
                                branch main, last push 2026-04-22)
  pass  code_license            Apache-2.0 (license file in github.com/google-deepmind/alphafold)
  pass  data_found              16 links to datasets or database records
  pass  open_access             Free to read (CC-BY-4.0); source: Crossref license
  warn  code_snapshot           Code lives only in a git repository that can change after
                                publication; a run must pin a commit (advisory)
  pass  availability_statement  Found: code availability and data availability (advisory)

Code  1 from the paper, 21 tools mentioned
  github.com/deepmind/alphafold
      live · Apache-2.0 · 14,956 stars · branch main · last push 2026-04-22
      Repository moved: deepmind/alphafold now redirects to google-deepmind/alphafold
[…]

draft_manifest { "input": "10.1038/s41586-021-03819-2" }

Draft manifest for: Highly accurate protein structure prediction with AlphaFold
paper doi:10.1038/s41586-021-03819-2 · readiness READY · code github.com/google-deepmind/alphafold@c77e5d2a8961d1a353632c462914ff0a32a950f6 (default branch head) · 10 of 16 data links
lint: 14 errors, 1 warning. Errors are the parts a person must fill in; the draft is not runnable until lint passes.

spec: manifest.v0
paper: "doi:10.1038/s41586-021-03819-2"
title: "Highly accurate protein structure prediction with AlphaFold"
claims:
  - id: todo.claim_1
    description: "<which number this is, e.g. Table 2 AUROC on the test split>"
    # reported: <the value printed in the paper>
    # tolerance: <abs band, or { abs: <number>, rel: <fraction> }>
env:
  container: "<registry/image>@sha256:<64-hex digest>"
  # c77e5d2a8961d1a353632c462914ff0a32a950f6 is the head of main today, not necessarily the commit the paper used. The paper was published 2021-07-15; check the tags and releases from then.
  code: "github.com/google-deepmind/alphafold@c77e5d2a8961d1a353632c462914ff0a32a950f6"
  data:
    - url: "https://www.wwpdb.org/ftp/pdb-ftp-sites"
      sha256: "<sha256 of the downloaded file>"
    - url: "https://www.rcsb.org/structure/6Y4F"  # pdb 6Y4F
      sha256: "<sha256 of the downloaded file>"
[… 8 more data entries, seeds and run settings, then the to-do list]

The draft pins what it can verify and leaves the rest as placeholders that lint flags:

  • paper comes from the paper record. code is pinned to a commit read over the git protocol (what git ls-remote does, on any git host, no token), and the comment says which commit that is.

  • Claims, the container digest, data hashes and seeds are placeholders. They have to come from a person reading the paper.

compare_claims { "manifest": "examples/manifest.yaml", "results": ["examples/results.node-a.json", "examples/results.node-b.json"] }

6 claims · nodes node-a + node-b · rules v0-draft, partial factor 3
2 Replicated · 1 Partially replicated · 1 Failed · 1 Could not run · 1 mismatch
manifest sha256:3183bd7cd87ba9fcafeed9723ab55255e3d07bcf4b76be55c1759c72d911fbce

  table_2.auroc                Replicated            reported 0.912  node-a=0.9104 node-b=0.9109
                               within ±0.005, on both nodes
  table_2.auprc                Replicated            reported 0.687  node-a=0.6791 node-b=0.6802
                               within ±0.01374, on both nodes
  figure_3b.slope              Partially replicated  reported 0.84  node-a=0.79 node-b=0.788
                               outside ±0.02, within partial ±0.06, same direction, on both nodes
  table_3.hazard_ratio         Failed                reported 0.71  node-a=1.04 node-b=1.05
                               opposite side of the value of no effect (1) from the paper, on both nodes
  table_4.ece                  MISMATCH              reported 0.031  node-a=0.0335 node-b=0.0362
                               nodes disagree: node-a Replicated (within ±0.004); node-b Partially replicated (outside ±0.004, within partial ±0.012, same direction)
  supp_table_2.external_auroc  Could not run         reported 0.874  node-a=- node-b=-
                               external validation cohort is not public (data access agreement required), on both nodes

Failed means not reproduced with the published code and data. It never means fraud.

The example paper, values and nodes are made up for huygena-verify's examples. The DOI uses 10.5555, the prefix Crossref reserves for examples.

read_bounties with no arguments, read live from the escrow:

0 bounties created in HuygenaEscrow 0xBfac5B4610489fAd1363D1813A9c610fa1559835 on Robinhood Chain (chain id 4663).
No bounties yet.

verify_certificate on the example certificate, with the manifest and evidence folder:

OK    no check failed · 8 pass · 0 fail · 1 skipped · 1 planned
  […]
  planned  attestation-signature  not implemented in this version: checking the report against NVIDIA remote attestation and Intel TDX quote verification
  skipped  onchain-record         not requested; pass onchain (CLI: --onchain) to read the record from Robinhood Chain

Filesystem access

hash_bundle, verify_bundle, verify_certificate (with bundle_path) and file-path document inputs read from disk. They are fenced in:

  • One root folder. It is HUYGENA_MCP_ROOT, or the working directory when that is unset. Paths are resolved against it.

  • No escaping. A path is resolved to its real path first, with symlinks followed. If the result is outside the root, the call fails with outside_root. That covers .., absolute paths and symlinks inside the root that point out.

  • No whole-disk default. If HUYGENA_MCP_ROOT is unset and the server starts in /, which some desktop clients do, file tools return no_root. Inline documents still work. Setting HUYGENA_MCP_ROOT=/ turns full access on, if you mean it.

  • Read only. Nothing is written, and file contents are never sent over the network.

  • Limits. Document files are capped at 5 MB. Hashing streams files, so evidence folders can be any size. Symlinks inside an evidence folder are not followed and are listed as skipped.

Errors

Failures come back as MCP tool errors, as code: message text the model can act on. They never crash the server or show up as protocol errors. The codes are:

  • From intake: invalid_id, not_found, upstream, timeout.

  • From the file tools: outside_root, no_root, not_a_directory.

  • From documents and verdicts: invalid_manifest, invalid_results, invalid_expected, compare_failed.

  • From on-chain reads: rpc_error.

A slow Europe PMC does not fail paper_intake: the brief comes back with a note in warnings.

In progress

These are in progress, and no tool here pretends they are live:

  • Replication and research runs over MCP (whitepaper utility 41). An agent requests a replication on a paper, a GPU TEE node re-runs it, a second node confirms, and the certificate goes on-chain. The contracts are live; GPU TEE runs and confirmation nodes are in progress. Bounties are posted from the app (https://dapp.huygena.xyz/new) with the funder's own wallet, not from this server.

  • Agent payments over x402 (utility 42). Agents pay for runs per call in USDG, without an account.

  • Attestation signature checks in verify_certificate. Reported as planned until attestation verification exists.

How it fits Huygena

Huygena is a replication market for science. Agents re-run computational papers on GPU TEEs, a second node confirms the result, and the outcome becomes an on-chain certificate. This server covers the steps around the run:

  • Before: is the paper re-runnable, and what exactly must be pinned.

  • After: do the numbers hold, and does the evidence match the certificate.

All of these work today.

Development

pnpm install            # links ../huygena-intake and ../huygena-verify (build them first)
pnpm typecheck && pnpm test && pnpm build
pnpm smoke              # built server over stdio, live APIs for AlphaFold 2, verify's examples for the rest

Tests run offline. They use an in-memory MCP client, recorded API responses, and huygena-verify's examples/. CI checks out the two sibling repos next to this one and builds them first.

License

Apache-2.0. Copyright 2026 Huygena.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      B
      maintenance
      Enables deterministic, harness-neutral research workflows by unifying research object identity, evidence receipts, claim-evidence graphs, and append-only decision logs, along with specialized scholarly skills for literature analysis, reproducibility audits, and multi-agent review.
      18
      1
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI coding agent to take a research paper from arXiv, record its claims, build and run an implementation, measure the results, and receive a verdict for each claim. Every action is kept in a hash-chained evidence log, so the generated code folder and reproduction report can be checked without trusting the agent.
      25 PyPI
      3
      MIT