Skip to content
MCP server
Registry

phylokit-mcp MCP Server

Phylogenetic inference via IQ-TREE 3 — never returns a topology without its support

phylokit-mcp scores 66 (Good), licensed GPL-2.0 and written in Python. It installs as a local process. It declares 6 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by musharnaGPL-2.0Python0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: gpl-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "musharna-phylokit-mcp": {      "command": "uvx",      "args": [        "phylokit-mcp"      ],      "env": {        "OMP_NUM_THREADS": "",        "MKL_NUM_THREADS": ""      }    }  }}

Environment variables

NameRequiredNotes
OMP_NUM_THREADSOptionalPinned so inference is reproducible; overriding it makes IQ-TREE runs non-deterministic.
MKL_NUM_THREADSOptionalPinned alongside OMP_NUM_THREADS for the same reproducibility reason.

Tools6Tool docs quality grade C

All capabilities
  • Aligns unaligned FASTA with MAFFT, inline or to a new file (outpath).

  • Robinson–Foulds distance and the clades that differ. Compares splits, not strings.

  • ML tree plus bootstrap support (nonparametric or UFBoot2), per clade.

  • Maps a residue to its alignment column, and that column to every other sequence.

  • Ranks 100+ models with ΔAIC/AICc/BIC, and says when the criteria disagree.

  • Generates sequences along a tree you specify: the positive control.

About

phylokit-mcp

phylokit-mcp is an MCP server that lets AI agents build maximum-likelihood trees with IQ-TREE 3 and align sequences with MAFFT.

CI PyPI Python License DOI Glama

A topology without support is not a result. infer_tree always runs a bootstrap and returns per-clade support. There is no flag to skip it.

Why the rule

A maximum-likelihood tree looks the same whether or not the data support it. Measured on alignments simulated from a known 7-taxon tree, (((A:0.05,B:0.05):0.05,(C:0.05,D:0.05):0.05):0.05,(E:0.05,F:0.05):0.05,G:0.1);, with simulate_alignment(newick, model="JC", length=sites, seed=42) and then infer_tree(fasta, model="JC", replicates=100, seed=1):

SitesInformative sitesRecovered the true tree?Lowest clade support
30051yes, exactly1.00
6011no, RF 20.57

At 60 sites the tree contains a clade (C,D,G) that does not exist and omits one that does (E,F,G). Both runs return a fully resolved Newick string of the same shape. Only the support values tell them apart, and the false clade is the lowest-supported one in the tree.

What it reports that a Newick string cannot

  • Conflicting clades: groupings the data support at ≥0.70 that are absent from the reported tree. A support-annotated Newick string has nowhere to put them.
  • fraction_resolved: the share of clades clearing 0.70. The headline number, before any single grouping is repeated as fact.
  • Model runners-up with ΔAIC, not just a winner. On the 300-site alignment above, simulated under JC, the AIC winner is not JC (it is TPM2u, which ModelFinder scores the same as TPM2), and several models, JC among them at ΔAIC 0.7, sit inside the conventional ±2 margin (select_substitution_model with seed=1, piqtree 0.8.3).
  • Length versus evidence: n_parsimony_informative alongside n_sites. A 10,000-site alignment of near-identical sequences supports nothing.

Tools

ToolWhat it does
infer_treeML tree plus bootstrap support (nonparametric or UFBoot2), per clade.
select_substitution_modelRanks 100+ models with ΔAIC/AICc/BIC, and says when the criteria disagree.
compare_treesRobinson–Foulds distance and the clades that differ. Compares splits, not strings.
simulate_alignmentGenerates sequences along a tree you specify: the positive control.
align_sequencesAligns unaligned FASTA with MAFFT, inline or to a new file (out_path).
map_positionsMaps a residue to its alignment column, and that column to every other sequence.
capabilitiespiqtree and IQ-TREE versions, 215 substitution models, MAFFT version, limits.

Tools that take FASTA or Newick also take a file path (fasta_path, or trees_path for two trees), read by the server; a relative path resolves against the server's working directory.

The tests run real IQ-TREE and real MAFFT, with 23 recorded mutation checks and a real-process JSON-RPC handshake test. A few tests replace the engine with scripted trees or model scores so that a count can be worked out by hand. The conflicting-clade advisory is one of them: its replicate trees are scripted, because no simulated alignment tried so far makes the real engine report a conflicting clade.

Install

pip install phylokit-mcp

Requires Python 3.12+. IQ-TREE 3 comes through piqtree 0.8, which builds it into its wheel. align_sequences also needs the MAFFT binary on PATH, as does map_positions on unaligned input; the other tools work without it. Details: docs/INSTALL.md.

Configure your MCP client

{
  "mcpServers": {
    "phylokit": {
      "command": "uvx",
      "args": ["phylokit-mcp"]
    }
  }
}

If uvx picks a Python older than 3.12, use "args": ["--python", "3.12", "phylokit-mcp"].

By default the server opens any path its user can. To confine fasta_path, trees_path and out_path to your data, add --root DIR (repeatable, or set PHYLOKIT_ROOTS): "args": ["phylokit-mcp", "--root", "/data/alignments"]. A path outside the roots is refused by name; see SECURITY.md.

What the benchmark shows

Claude with the server was compared with Claude writing Python in an environment we set up with piqtree, cogent3 and MAFFT, on 38 phylogenetics questions, 3 runs each. A tie means the server matches that result without you building the environment. Questions right in every run, server against Python: Claude Haiku 5.5 34 against 37, Sonnet 5.5 37 against 35, Opus 5.5 36 against 35 (on the commit that takes file paths). None is separated (pre-registered; Holm-adjusted McNemar p = 0.75 on both Haiku and Sonnet). The server cost about the same as Python on Haiku and more on Sonnet (1.23×) and Opus (1.26×).

The chart is the first Opus 5.5 run, on a release that took the data as text. Counting answers, the server got 110 of 114 right and Python 113; counting questions, 36 of 38 were right in every run against 37 (sign test p = 1). Per question the server took 6.0 times as long (95% CI 4.4 to 8.3) and cost 14.4 times as much (9.9 to 20.2), each a geometric mean of per-question ratios. Most of that cost was the model pasting the data file into tool calls; taking file paths (pre-registered re-run, 2026-10-18) brought it down to 1.26 times (1.04 to 1.55).

We wrote the questions and ran the benchmark ourselves; an outside re-run is welcome. The benchmark does not score support values; method, controls and other limitations are in benchmarks/agent_qa; the Haiku and Sonnet runs: 2026-10-20 re-run.

Reproducibility

Not bit-exact, in any setting: IQ-TREE reads the wall clock during its search, so the same request and seed can differ in the trailing digits of branch lengths and log-likelihood, and a support value can move: by about 0.05 (a replicate flipping) for the nonparametric bootstrap, and by no fixed bound for UFBoot2, whose replicates IQ-TREE draws inside the search (one clade moved 0.16 across six calls on one machine). The server reports deterministic_across_processes: false and the drift bound for the method used, null for UFBoot2. Compare trees with compare_trees and numbers with a tolerance, never by string equality. Measurements: docs/REPRODUCIBILITY.md.

Limitations

  • Nucleotide and protein, no codon models. Pass sequence_type="protein" and a protein model (LG, WAG, …). The molecule type is declared, never sniffed: an A/C/G/T-only alignment is also valid protein (Ala/Cys/Gly/Thr), and a wrong guess returns a wrong tree, likelihood and support with no warning.
  • Two bootstraps, no aLRT or approximate Bayes. The default is the nonparametric bootstrap (Felsenstein 1985), computed here, clades supported at 0.70; it is the only one that reports well-supported clades missing from the ML tree. support_method="ufboot" is IQ-TREE's UFBoot2 (Hoang et al. 2018), clades supported at 0.95.
  • Nonparametric cost is linear in replicates, each a full ML search: on 89 taxa x 435 sites one replicate took 25-93 s, and 1000 UFBoot2 replicates 83 s. Capped at 200 taxa, 1000 nonparametric and 10000 UFBoot2 replicates. Every tool sends a progress notification every 15 s, so a client idle timeout does not abort a long call.
  • Alignment is MAFFT --auto, single-threaded, and nothing else: no strategy choice, profile alignment or trimming; at most 200 sequences of 100,000 residues and 600 s. Gapped input is refused, not degapped. The tree tools refuse ragged input rather than align it.
  • Unrooted trees. No rooting, dating or ancestral reconstruction.

License

GPL-2.0-only, because piqtree is GPL-2.0-only, which is incompatible with GPL-3.0. cogent3 is BSD.

If you publish results from this server, cite IQ-TREE 3, piqtree and (when it made the alignment) MAFFT, not this wrapper. The references are in CITATION.cff, and licensing and affiliation are in NOTICE.

Frequently asked questions

What is phylokit-mcp MCP Server?

Phylogenetic inference via IQ-TREE 3 — never returns a topology without its support

How do I install phylokit-mcp 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. phylokit-mcp MCP Server runs locally from the PyPI package phylokit-mcp with the command uvx phylokit-mcp.

Is phylokit-mcp MCP Server free and open source?

Yes. phylokit-mcp MCP Server is released under the GPL-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does phylokit-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for phylokit-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does phylokit-mcp MCP Server provide?

phylokit-mcp MCP Server provides 6 tools, including align_sequences, compare_trees, infer_tree, and map_positions. See the full tool list for descriptions and parameters.

How is phylokit-mcp MCP Server's trust score calculated?

phylokit-mcp MCP Server scores 66 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server