# smaniches/alphafold-sovereign-mcp [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/smaniches/alphafold-sovereign-mcp  
**GitHub Stars:** 4  
**Views:** 14  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/smaniches-alphafold-sovereign-mcp

## Description
AlphaFold MCP server integrating AlphaFold DB with eight additional public biomedical data sources, backed by a local SQLite knowledge graph for structural-confidence, variant, disease/phenotype, drug-target, and orthology workflows. uvx alphafold-sovereign-mcp

## Tools
Capabilities this server exposes over MCP:

- **lookup_disease** — Retrieve a disease record from the MONDO unified disease ontology.

Returns the canonical MONDO entry with:
- Disease name, definition, synonyms
- ICD-10 / ICD-11 codes (for clinical coding / EHR integration)
- OMIM, Orphanet, MeSH, DOID cross-references
- Immediate parent and child terms in the MONDO hierarchy

Example: ``lookup_disease(mondo_id='MONDO:0005010')``
returns the record for coronary artery disease.
- **search_diseases** — Search for diseases by name or keyword using the MONDO ontology.

Returns a ranked list of matching diseases with MONDO IDs and
cross-references.  Useful for resolving a clinical term to a
canonical identifier before querying targets or phenotypes.

Example: ``search_diseases(query='breast cancer', limit=5)``
- **lookup_phenotype** — Retrieve an HPO phenotype term with associated disease annotations.

Returns:
- Phenotype label, definition, synonyms
- Diseases annotated with this phenotype (from HPO + OMIM + Orphanet)
- Parent phenotype terms

Example: ``lookup_phenotype(hpo_id='HP:0001250')``
returns the Seizure phenotype with ~400 associated diseases.
- **get_gene_phenotype_profile** — Return all HPO phenotypes associated with a gene, plus gnomAD constraint.

Useful for understanding the clinical consequences of variants in a gene
before requesting structural context.

Returns:
- HPO phenotypes linked to the gene (from HPO association database)
- gnomAD LOEUF / pLI constraint scores
- A one-line reading of the LOEUF band (highly constrained, moderately
  constrained, or not constrained by this metric). It reports depletion
  of loss-of-function variants in gnomAD; it does not establish
  haploinsufficiency, and an unconstrained gene can still carry
  pathogenic loss-of-function variants

Example: ``get_gene_phenotype_profile(gene_symbol='SCN1A')``
- **get_disease_targets** — Return top protein targets for a disease with Open Targets evidence scores.

Evidence score breakdown (0–1 per data type):
- ``genetic_association``: GWAS + rare-variant signals
- ``somatic_mutation``: Cancer somatic variant evidence
- ``known_drug``: Approved or clinical-stage drugs
- ``affected_pathway``: Pathway membership (Reactome, SIGNOR)
- ``literature``: Text-mining evidence (Europe PMC)
- ``animal_model``: Knockout / model organism phenotypes
- ``rna_expression``: Differential expression evidence

``drug_count`` is the target's Open Targets drug-and-clinical-candidate
record count (all stages) and ``tractable`` is true when any Open Targets
tractability bucket is set; both are observed per row and are ``null``
only when the source omits them.

Example: ``get_disease_targets(disease_id='MONDO:0007254', limit=15)``
returns top 15 targets for breast carcinoma.
- **get_target_diseases** — Return all diseases associated with a protein target via Open Targets.

Accepts a UniProt accession and returns the full disease landscape
for that target — essential for target-validation and indication-expansion.

Example: ``get_target_diseases(uniprot_id='P04637')``
returns all diseases associated with TP53 / p53.
- **get_common_disease_targets** — Profile the top drug targets for a curated set of common diseases in one call.

Use this for a fast landscape scan across a whole disease area: given a
``category`` (e.g. 'oncology'), it looks up the curated MONDO diseases in that
category and returns each one's top Open Targets evidence-scored targets, in
parallel. To profile a single disease you already have a MONDO ID for, use
``get_disease_targets`` instead — this tool is its category-level,
multi-disease counterpart and does not accept a raw MONDO ID.

Queries Open Targets live. Returns a JSON string with the ``category`` and a
``profile`` object mapping each disease to its MONDO ID and top targets. A
lookup that fails is reported inline as that disease's ``error``, not raised.
``status`` summarises the lookups: ``success`` when every one answered,
``partial`` when some failed, ``error`` when all failed and no targets were
retrieved. ``diseases_requested``, ``diseases_profiled`` (lookups that
succeeded) and ``diseases_failed`` give the counts. A failed lookup is not
evidence that a disease has no associated targets. Returns a JSON error
object listing the valid values when the category — or a ``disease_name``
filter within it — is not recognised.

Input fields:
    params.category: Disease area to profile. One of: cardiovascular, oncology,
        neurodegeneration, metabolic, autoimmune, respiratory, infectious,
        psychiatric, rare.
    params.disease_name: Restrict to one disease within the category (case-
        insensitive substring match, e.g. 'alzheimer'); leave blank to profile
        every disease in the category.
    params.target_limit: Maximum top targets to return per disease (1–50).
- **triage_variant_3d** — Retrieve source-reported variant evidence for research.

Fuses the upstream signals this tool currently wires into a single
prioritised report:

1. **Pathogenicity** — ClinVar interpretation + review status. The
   ``alphamissense_score`` / ``alphamissense_interpretation`` fields
   are always ``null`` / "Not available" here: AlphaMissense is not
   wired into this tool. For an AlphaMissense pathogenicity score use
   ``generate_variant_clinical_report``.
2. **Population genetics** — gnomAD LOEUF / pLI gene-constraint
   scores. Per-variant allele frequencies and the per-ancestry
   breakdown are not wired into this tool.
3. **Disease associations** — a placeholder note pointing at
   ``get_target_diseases()``; the Open Targets / MONDO traversal is
   a roadmap (Wave-3) item.
4. **Structural context** — a text note pointing at
   ``analyze_structural_confidence`` (resolve the gene to a UniProt
   accession first); the AlphaFold pLDDT / PAE join into this report
   is a roadmap (Wave-3) item.

Returns the legacy ``pathogenicity_tier`` key as NOT_ASSESSED. Raw
verified ClinVar classifications remain source-attributed in the
pathogenicity section; they are not converted into a local risk tier.
Gene-relative candidates remain explicitly unverified. AlphaMissense
is not wired into this particular tool. The report is not a calibrated risk estimate.

``status`` summarises the evidence lookups that were attempted:
``success`` when none failed, ``partial`` when some failed and some
answered, ``error`` when all failed and no source evidence was retrieved.
``data_sources_status`` gives each source's state, and ``lookup_summary``
groups the sources into ``attempted``, ``answered``, ``failed`` and
``skipped`` with a reason for each failure. A lookup that finds nothing
(``no_data``) is an answer. gnomAD is skipped, and counts neither way,
when ``include_gnomad`` is false or a transcript's gene could not be
verified. A failed lookup is not evidence about the variant: the fields
it feeds keep their defaults (``clinvar_classification`` "Not provided",
empty ``population_genetics``).

Example: ``triage_variant_3d(hgvs='BRCA1:c.181T>G')``
- **phenotype_to_structures** — Map a clinical phenotype to the protein structures of its disease targets.

Pipeline:
1. Resolve HPO term → associated diseases
2. For each disease → top protein targets (Open Targets)
3. For each target → UniProt ID (for AlphaFold retrieval)

Use the returned UniProt IDs with ``analyze_structural_confidence``
to retrieve AlphaFold structural confidence (pLDDT/PAE).

Example: ``phenotype_to_structures(hpo_id='HP:0002621')``
maps Atherosclerosis → disease targets → UniProt IDs.
- **compare_disease_target_overlap** — Compare the protein target landscapes of two diseases.

Identifies shared and unique targets between two diseases —
a key analysis for drug repurposing, identifying shared mechanisms,
and understanding comorbidity.

Returns:
- Shared targets (present in both disease target sets)
- Unique to Disease A / Disease B
- Jaccard similarity score of target sets
- **resolve_icd10_to_mondo** — Resolve an ICD-10 clinical code to MONDO disease ontology terms.

Enables integration between clinical / EHR data (which uses ICD-10)
and the research-grade MONDO ontology used by Open Targets, HPO, and
this MCP.

Example: ``resolve_icd10_to_mondo(icd10_code='I21.0')``
maps ST-elevation MI (ICD-10) to MONDO coronary disease terms.
- **query_variant_database** — Search the local knowledge graph for stored variants.

Returns variants matching the filter criteria. No upstream API calls are
made — all data is served from the local SQLite knowledge graph, which is
populated only through explicit writes to the knowledge-graph storage API.
Historical SQLite files may retain illustrative rows from older versions;
these should not be interpreted as independently verified biology.

Input fields:
    params.gene: Gene symbol filter.
    params.tier: Clinical tier (HIGH/MEDIUM/LOW/UNKNOWN).
    params.clinvar_class: ClinVar classification string.
    params.min_am_score: Minimum AlphaMissense score.
    params.max_gnomad_af: Maximum gnomAD allele frequency.
    params.limit: Maximum results.
- **query_protein_database** — Recall proteins already stored in the local knowledge graph.

This is a local-recall query, not a live lookup: it returns only proteins that
have previously been written through the knowledge-graph storage API (or
retained from earlier versions of the database). No upstream API is called. To assess a protein that may not be stored yet, use
``assess_target_druggability`` (druggability tier) or
``analyze_structural_confidence`` (pLDDT), which query live sources.

Filters are combined with AND; omit a filter to leave that dimension
unconstrained. Returns a JSON record with the applied ``query``, a
``result_count``, and the matching ``proteins`` rows. The list is empty when
nothing stored matches; an empty result means the local store has no
matching row, not that the protein is absent from upstream biology.

Input fields:
    params.druggability_tier: Keep only proteins whose stored tier equals this
        (HOT, WARM, COLD, or NOT_DRUGGABLE); omit for any tier.
    params.min_plddt: Keep only proteins whose stored mean AlphaFold pLDDT
        (0–100; ≥70 is high confidence) is at least this value.
    params.limit: Maximum rows to return (1–500).
- **get_knowledge_graph_stats** — Return statistics about the local knowledge graph.

Shows entity counts, database size, and last activity — useful for
understanding the current contents and coverage of the local store.
- **export_research_dataset** — Export the stored knowledge-graph data for downstream analysis.

Returns the selected tables as JSON-serialisable dicts, suitable for:
- Loading into pandas DataFrames for ML feature engineering
- Importing into R or Julia for statistical analysis
- Feeding into downstream bioinformatics pipelines

Example (Python)::

    import pandas as pd
    result = await export_research_dataset(ExportInput(tables=["variants"]))
    df = pd.DataFrame(result["data"]["variants"])
    high_tier = df[df["clinical_tier"] == "HIGH"]

Input fields:
    params.tables: Tables to export (empty = the default tables; the field
        description lists them and every other accepted name).
    params.limit_per_table: Maximum rows per table.
- **find_drug_gene_network** — Traverse the local knowledge graph from a seed entity.

Given a seed (UniProt ID, gene symbol, or MONDO disease ID), expands its
immediate neighbourhood in the stored drug-gene-disease graph: a gene
symbol resolves to its encoded proteins and reported variants, a UniProt
accession resolves to its stored protein record, and a MONDO disease
resolves to drugs with an indication for it. The store is populated by the
storage API, or retained from historical database versions.

Input fields:
    params.seed: Starting entity identifier.
    params.max_hops: Graph traversal depth (1–3).
- **generate_variant_clinical_report** — Generate a multi-source variant interpretation report.

Cross-references evidence from up to seven upstream databases for a
single HGVS variant into one structured research report. It preserves
source classifications and computational observations separately; it
does not assign an independent clinical tier or establish ACMG criteria.

1. **Ensembl VEP** — functional consequence, VEP's protein-level HGVS
   (``hgvsp``), SIFT and PolyPhen predictions
2. **ClinVar** — clinical pathogenicity classifications and review status
3. **gnomAD v4** — population allele frequencies (gnomAD v4, ~807k individuals)
4. **AlphaMissense** — deep-learning missense pathogenicity (Cheng et al. 2023)
5. **Open Targets** — disease-gene evidence scores
6. **DisGeNET** — curated gene-disease association scores
7. **ChEMBL** — approved drugs acting on the gene product

The report includes unassessed ACMG-related computational signals,
sequence consequences, and gene-level drug context. It does not compute
variant-specific three-dimensional structural impact.

gnomAD is queried only when the input pins one genomic allele: a versioned
RefSeq coding (``NM_…:c.``) or genomic (``NC_…:g.``) expression that
Ensembl VEP maps to a single GRCh38 single-nucleotide change or simple
insertion/deletion, or a ``chrom-pos-ref-alt`` variant ID.
``unassessed_evidence.population_frequency`` gives the looked-up variant
ID, the per-cohort (exome, genome) counts and an explicit ``lookup_status``;
a variant without a gnomAD record is never reported as allele frequency 0.
Allele frequency and predictor scores (AlphaMissense, SIFT, PolyPhen)
are returned as observations: BA1, BS1, PM2, PP3 and BP4 are
``NOT_ASSESSED``. CADD is not retrieved: ``cadd_phred`` is always null.
``functional_consequence.hgvsp`` is VEP's protein-level HGVS expression
for the canonical Ensembl transcript, such as
``ENSP00000350283.3:p.Cys61Gly`` (``p.Thr125=`` for a synonymous change).
It is empty when VEP reports none, as for an intronic or splice-site change.

Input fields:
    params.hgvs: HGVS expression. Gene-relative expressions discover
        candidate records; clinical source identity requires an exact
        versioned-transcript expression.
    params.include_population_breakdown: Include per-ancestry gnomAD data.
    params.include_drug_context: Include drugs acting on the gene product.
    params.include_literature_evidence: Query PDBe at an explicitly supplied
        UniProt accession and residue. The connection to the HGVS variant
        is NOT independently verified by this operation.
- **assess_target_druggability** — Comprehensive druggability assessment for a protein target.

Integrates four independent druggability signals into a HOT/WARM/COLD/NOT_DRUGGABLE
classification:

1. **Drug precedent** — ChEMBL approved drugs + clinical compounds
2. **Tractability** — Open Targets tractability labels (small-molecule, antibody, PROTAC)
3. **Structural confidence** — AF2 pLDDT (model-local confidence, not binding evidence)
4. **Population constraint** — gnomAD LOEUF (gene-level LoF depletion, not toxicity evidence)

This is an author-defined, uncalibrated research score, not a validated
predictive model, clinical safety result, or independent biological fact.

Input fields:
    params.uniprot_id: UniProt accession.
    params.include_clinical_stage: Include Early Phase 1 through Phase III in drug count.
- **synthesize_protein_dossier** — Generate a complete protein intelligence dossier from 7 data sources.

It assembles disease associations, drug precedent, population
constraint, ClinVar variants, and cross-species orthologs for one
protein into a single structured record. It composes upstream records
and author-defined research heuristics, without issuing clinical conclusions.

Sources fused in parallel:
  - **Open Targets**: disease associations + tractability + drug count
  - **DisGeNET**: curated GDA scores with publication counts
  - **ChEMBL**: approved drugs + MoA + bioactivity
  - **gnomAD**: population constraint (pLI, LOEUF, mis_z)
  - **ClinVar**: pathogenic variants in this gene
  - **Ensembl**: orthologs across 12 species

Input fields:
    params.uniprot_id: UniProt accession.
    params.gene_symbol: HGNC gene symbol.
    params.depth: 'brief' | 'standard' | 'comprehensive'.
- **map_disease_drug_landscape** — Map a bounded, source-attributed therapeutic landscape for a disease.

Returns retrieved approved drugs, pipeline agents, top druggable targets,
and an exploratory summary for a given MONDO disease.

Combines Open Targets evidence with ChEMBL drug indications and
MONDO disease hierarchy to produce a comprehensive landscape report
used in business development, competitive intelligence, and
R&D portfolio decisions.

Input fields:
    params.disease_mondo_id: MONDO disease ID.
- **classify_variant_acmg** — Generate a draft ACMG/AMP variant classification framework.

Reports computational observations that may inform an expert's later
disease-specific ACMG/AMP review. This tool does NOT establish ACMG
criteria or assign a pathogenicity class: generic consequence, model
scores, and population frequencies are insufficient without clinical
disease mechanism, inheritance, and criterion-specific validation.

Candidate signals (``candidate_criteria``; variant-type observations, never met criteria):
  PVS1 — Candidate loss-of-function consequence; mechanism not established
  BP7   — Synonymous consequence; splice impact not assessed

Not assessed (``unassessed_evidence``; raw observations, criteria ``NOT_ASSESSED``):
  BA1 / BS1 / PM2 — gnomAD counts per cohort (exome, genome) for the
    looked-up variant ID, with an explicit ``lookup_status``. gnomAD is
    queried only for a versioned ``NM_…:c.`` or ``NC_…:g.`` expression
    mapped to one GRCh38 single-nucleotide change or simple
    insertion/deletion, or a ``chrom-pos-ref-alt`` ID; a variant without
    a gnomAD record is never reported as allele frequency 0.
  PP3 / BP4 — AlphaMissense score and class, SIFT and PolyPhen as
    reported by their sources; no calibrated evidence strength is derived.
    CADD is not retrieved (``cadd_phred`` is always null).
  ClinVar is returned as independent source context, not as PP5/BP6 evidence.

Input fields:
    params.hgvs: HGVS expression.
    params.inheritance_pattern: Expected inheritance mode.
- **find_drug_repurposing_candidates** — Rank existing clinical-stage drugs as repurposing candidates for a disease.

Surfaces approved or trial-stage drugs whose target carries genetic/association
evidence for the disease — i.e. drug-repurposing hypotheses. For the full
approved-plus-pipeline drug picture of a disease (not only repurposing
candidates), use ``map_disease_drug_landscape`` instead.

How it works: take the top ``target_limit`` Open Targets evidence-scored targets
for the disease; for each, fetch its ChEMBL drugs at or above ``min_phase``; drop
duplicate molecules; rank by
``composite_repurposing_score = OT evidence score × (max ChEMBL phase / 4)``.
Ranking uses clinical and association evidence only — no protein structure.

Returns a JSON record whose ``candidates`` list holds up to 20 drugs (each with
ChEMBL ID, name, max phase, target gene/UniProt, OT evidence score, composite
score, and mechanism), plus the candidate count and the methodology string.
Returns an empty ``candidates`` list with a ``message`` when the disease has no
Open Targets associations. The composite score is a prioritisation aid, not an
efficacy prediction — validate mechanistically before acting on it.

Input fields:
    params.disease_mondo_id: MONDO disease ID to repurpose against, e.g.
        'MONDO:0007254' (breast carcinoma).
    params.target_limit: How many top OT-evidence targets to screen (1–50).
    params.min_phase: Minimum ChEMBL clinical phase to include
        (1 = Phase I, 2 = Phase II, 3 = Phase III, 4 = Approved).
- **analyze_structural_confidence** — Analyze AlphaFold structural confidence using pLDDT and PAE.

Returns a structural reliability summary (not a per-residue profile):
- **pLDDT**: the model's mean confidence (AlphaFold DB ``globalMetricValue``)
  plus a coarse confidence tier
- **PAE** (predicted aligned error): mean and maximum; up to five
  residue pairs more than 10 positions apart with PAE above 15 Å
  (one-based model indices); and ``local_high_pae``, the approximate
  zero-based model indices where a run of locally elevated
  near-diagonal PAE begins (a short stretch much less certain than
  the model as a whole, such as a flexible tail or linker)
- **Domains**: NOT assessed. Near-diagonal PAE does not locate domain
  boundaries; the legacy ``domain_boundaries`` block is kept for
  existing clients with ``n_putative_domains`` null and no candidate
  positions
- **Druggability pre-screen**: model confidence limitations; actual
  ordered fraction and ligand suitability are NOT assessed

pLDDT interpretation:
  > 90: Very high confidence — likely correct at backbone + sidechain level
  70–90: High confidence — backbone correct, some sidechain uncertainty
  50–70: Low confidence — may be IDP or novel fold
  < 50: Very low model confidence; does not establish disorder

Input fields:
    params.uniprot_id: UniProt accession.
- **compute_topology_fingerprint** — Compute an exploratory, rotation-invariant Cα summary vector for an AlphaFold model.

Fetches the AlphaFold model for ``uniprot_id`` and derives an
exploratory 64-slot feature vector from its Cα coordinates. With GUDHI
installed, H0 and H1 are computed on the 15-Å Vietoris-Rips 2-skeleton
and the vector holds 16 summary statistics of their finite bar
lifetimes (eight each); the other 48 slots are zero. H2 is NOT
computed. On this GUDHI path, models longer than 500 residues are
reduced to 500 evenly spaced Cα atoms first, so their Betti numbers
and statistics describe that subsample (``subsampled`` is then true).
Without GUDHI the fallback uses every residue, with no subsampling:
the vector holds eight distance and contact statistics, one of them a
4-Å contact-graph component count, and no persistent homology is
computed.
Betti numbers describe this chosen filtration, not protein domains,
β-barrels, drug cavities, molecular function, or an experimental structure.

Returns the fingerprint vector and its slot layout, the Betti numbers, the
residue counts, and which method ran. Full persistent homology needs the
optional ``[tda]`` extra (``gudhi``); without it a coarse fallback runs that
does NOT compute persistent homology, and the result flags this. Returns a
no-structure result when AlphaFold DB has no model for the accession. This is
a coarse, geometry-only summary — not a substitute for sequence alignment,
RMSD, or functional-homology assessment.

Input fields:
    params.uniprot_id: UniProt accession of the protein to fingerprint,
        e.g. 'P38398' (BRCA1).
- **compare_proteins_topologically** — Compare multiple proteins using a TDA-fingerprint distance.

Computes a pairwise distance matrix between the TDA fingerprints of
the provided proteins.  Distance metric: L2 distance between
length-normalised 64-slot fingerprint vectors (see
``_fingerprint_distance``).  Distance = 0 means identical
fingerprints; larger values mean more divergent fingerprints.  This
is **not** a Wasserstein distance between persistence diagrams.

The vectors hold at most 16 statistics (see
``compute_topology_fingerprint``). With GUDHI (the optional ``[tda]``
extra), a model longer than 500 residues is compared on
500 evenly spaced Cα atoms. Without GUDHI the fallback uses every
residue of every model, with no subsampling, and builds each model's
full pairwise distance matrix, so its cost grows with the square of
the model length. ``protein_metadata`` reports ``n_residues_used`` and
``subsampled`` for each model. In an internal audit of 23 AlphaFold
models run with GUDHI, nearly all of each normalised vector lay in
its two total-persistence components, so the distance mostly tracks
one ratio: total H1 over total H0 persistence. It has no validated
threshold for fold similarity and is not a functional,
sequence-similarity or binding-site measure (LIMITATIONS.md L12).

Input fields:
    params.uniprot_ids: 2–10 UniProt accessions.
- **find_evolutionary_structural_shifts** — Report ortholog sequence identity and exploratory structural distances.

Distances between Cα-derived feature vectors are not calibrated
evolutionary, functional, binding, or antibody cross-reactivity measures.
The GUDHI and geometric-proxy methods are distinguished in each result.
There is deliberately no cross-method conservation ranking.
- **score_binding_pocket_geometry** — Cluster the core residues of an AlphaFold model by geometry.

Not a validated binding-pocket detector; no druggability class is
assigned. Cα atoms closer to the model centroid than the 60th
percentile of centroid distances are grouped greedily: in sequence
order, each unassigned core residue seeds a cluster of the unassigned
core residues within 8 Å of it. A cluster is reported when it has at
least ``min_pocket_residues`` members and a mean pLDDT of at least 50.
No cavity, solvent-accessible surface or ligand is computed.

Each of up to 10 clusters reports its residue numbers, mean pLDDT,
radius of gyration, centroid offset from the model centroid, and
``geometry_score``: an uncalibrated 0 to 100 sum of four equally
weighted sub-scores (residue count, radius of gyration, mean pLDDT,
centroid offset) that only orders the clusters.
``estimated_volume_angstrom3`` is the volume of a sphere with the
cluster's radius of gyration, not a cavity volume.

Validation status: in an internal audit of 19 AlphaFold models the
top-ranked cluster was enriched for the PDBe-KB ligand-binding site in
4 of the 18 proteins that had one, and every reported cluster scored
55 or more (LIMITATIONS.md L11). For existing clients the same
clusters are also returned under the earlier names, as deprecated
aliases: ``putative_pockets`` and ``n_pockets_found``, with entries
keyed ``pocket_id``, ``druggability_index`` and
``druggability_components``; their ``druggability_label`` is
``NOT_ASSESSED``. To locate binding sites, use a dedicated pocket
detector such as fpocket or P2Rank.

Input fields:
    params.uniprot_id: UniProt accession of the AlphaFold model to
        cluster, e.g. 'P24941' (CDK2).
    params.min_pocket_residues: Minimum cluster size, 3 to 20
        (default 4).
- **detect_intrinsically_disordered** — Flag low-confidence modeled regions as intrinsic-disorder candidates.

Reads per-residue AlphaFold pLDDT from PDB C-alpha records and groups
contiguous runs below 50. Low pLDDT may reflect intrinsic disorder,
missing binding partners, alternate conformations, or model uncertainty;
it is NOT independent evidence that a region is disordered.

Returns model-local residue indices, observed PDB chain/residue identifiers,
and positional descriptions of low-pLDDT runs. These labels describe
model geometry, not validated linkers, tails, disorder or function.
Legacy idr_fraction and disordered_residue_count remain deprecated numeric
aliases of low-pLDDT measurements, NOT validated intrinsic-disorder assays.
Prefer low_plddt_* fields for scientific interpretation.
PDB numbering is not mapped to full-length UniProt via SIFTS here.

This implementation is a reproducible screening heuristic, not a validated
disorder predictor, biomolecular mechanism classifier, or clinical result.
For background on intrinsic disorder, see Ruff & Pappu (2021),
J Mol Biol. 433:167208; that paper does not validate these cutoffs or code.

Input fields:
    params.uniprot_id: UniProt accession.
- **get_protein_structure** — Retrieve a protein's AlphaFold model: metadata, download URLs, optional coordinates.

The single entry point for getting the predicted structure itself. Returns the
AlphaFold DB entry metadata — entry ID, model version and creation date,
organism, gene, UniProt description, the amino-acid sequence and its length, and
the model's mean pLDDT — plus stable download URLs for the PDB and mmCIF
coordinate files, the PAE matrix, and the AlphaMissense substitutions
CSV. The PAE image URL is only present in legacy API responses. Set ``include_coordinates`` to embed the full PDB coordinate text directly.

Use the sibling structure tools for *interpretation* rather than retrieval, so
their scopes don't overlap: ``analyze_structural_confidence`` for a pLDDT/PAE
confidence read, ``score_binding_pocket_geometry`` for geometric clusters
of core residues (not validated pockets), ``compute_topology_fingerprint``
for an exploratory Cα summary vector, and
``detect_intrinsically_disordered`` for low-pLDDT intervals. This tool hands you the
structure and its handles; it does not score or interpret the model.

Returns ``structure_available: false`` when no model was retrieved, and
``retrieval_status`` says why. ``no_prediction_returned``: AlphaFold DB answered
without a model for the accession, an expected coverage gap. ``request_failed``:
the request was blocked (offline mode) or failed, which is not evidence that no
prediction exists.

With ``include_coordinates``, ``coordinates_pdb`` is the file that this same
record advertises (``file_urls.pdb``); no second prediction lookup is made.
``coordinates_status`` is ``retrieved``, ``no_coordinates_returned`` (the record
advertises no PDB file, or the file is empty) or ``request_failed`` (the request
for that file failed, HTTP 404 included). ``coordinates_pdb`` is empty unless the
status is ``retrieved``; when it is empty, ``coordinates_error`` gives the reason.

Input fields:
    params.uniprot_id: UniProt accession to retrieve, e.g. 'P38398' (BRCA1).
    params.include_coordinates: Embed the full PDB coordinate text (large);
        default false returns metadata and download URLs only.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "alphafold-sovereign-mcp": {
    "command": "uvx",
    "args": ["alphafold-sovereign-mcp"]
  }
}
```

## Documentation

## What smaniches/alphafold-sovereign-mcp does

smaniches/alphafold-sovereign-mcp is a Python MCP server for structural biology, bioinformatics, and biomedical research workflows. It exposes AlphaFold DB alongside MONDO, HPO, Open Targets, ClinVar, gnomAD, ChEMBL, DisGeNET, and Ensembl. Its tools can connect a disease or phenotype to protein targets, retrieve AlphaFold models and confidence measures, assemble variant evidence, assess target druggability, and summarize protein-level disease, drug, constraint, variant, and orthology information.

The server also includes a SQLite knowledge graph. Local tools can recall stored variants and proteins, traverse nearby drug-gene-disease entities, report database statistics, and export tables for analysis in Python, R, Julia, or other downstream pipelines. Fresh installations rely on explicit writes through the knowledge-graph API rather than automatically persisting every analysis result.

## How it works

In normal online operation, tools query public upstream APIs directly and preserve source attribution in their results. The AlphaFold tools retrieve model metadata, coordinates or download links, pLDDT and PAE information, and AlphaFold-derived geometric summaries. Disease, phenotype, target, drug, and variant workflows combine records from their named sources into structured reports or ranked research outputs.

Set `ALPHAFOLD_OFFLINE=1` to prevent outbound requests before a network connection is opened. In that mode, local knowledge-graph queries remain available while upstream-dependent tools cannot retrieve live records. DisGeNET requires its own free API key when a workflow uses that source.

Several outputs are explicitly heuristic. Druggability classifications, repurposing rankings, pocket scores, topology distances, disorder candidates, and ACMG-related observations are research aids rather than validated clinical conclusions. AlphaFold coordinates represent predictions, not experimental structures, and structural confidence values describe model uncertainty rather than biological certainty.

## Setup and configuration

The package targets Python 3.11 or newer and can be launched with `uvx alphafold-sovereign-mcp`. It runs locally as an MCP process, with stored SQLite data remaining on the local machine. Online use requires network access to the relevant public sources; offline mode is available through `ALPHAFOLD_OFFLINE=1`. The optional `[tda]` extra provides GUDHI for the persistent-homology portion of topology fingerprints. Without it, topology tools use a coarse geometric fallback.

## Tools and capabilities

- Look up and search MONDO diseases, resolve ICD-10 codes, and retrieve HPO phenotypes or gene phenotype profiles.
- Map diseases and phenotypes to Open Targets, compare target overlap, inspect target-associated diseases, and profile curated disease categories.
- Generate multi-source variant reports, draft ACMG/AMP evidence frameworks, and run a narrower ClinVar and constraint triage workflow.
- Retrieve AlphaFold structures and analyze pLDDT, PAE, low-confidence regions, putative pocket geometry, topology fingerprints, and cross-protein or cross-species structural distances.
- Assess protein druggability, assemble protein dossiers, map disease drug landscapes, and rank possible repurposing candidates.
- Query, traverse, inspect, and export the local SQLite knowledge graph.

## Limitations and notes

The project is beta software and its scientific outputs have not been independently validated for production or regulated use. Source records, computational predictions, text-mined evidence, and derived heuristics should be reviewed by qualified researchers. Local historical SQLite rows may be illustrative and should not be treated as independently verified biology. Structural tools do not establish binding, function, disorder, pathogenicity, or clinical risk. The topology implementation does not compute H2, and its distances are not sequence, evolutionary, functional, or binding measures. The server is licensed under Apache-2.0 and is not affiliated with Google DeepMind or EMBL-EBI.

_Full upstream README: https://allmcps.com/mcp/smaniches-alphafold-sovereign-mcp/readme_

