phylokit-mcp

v0.10.0
io.github.musharna/phylokit-mcp Checked 4 days ago Published 20 days ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

infer_tree Infer a phylogenetic tree with bootstrap support

Build a maximum-likelihood tree and measure how well the data support it. Always bootstraps. There is deliberately no option to skip it: an unsupported topology is the failure mode this server exists to prevent. `support_method` picks which bootstrap; see its entry for the cost. Args: fasta: Aligned sequences in FASTA, nucleotide or protein as declared by `sequence_type`. All sequences must be the same length — run `align_sequences` first if they are not. model: Substitution model, e.g. "JC", "HKY", "GTR+G" (or "LG+G" for protein). Run `select_substitution_m…

ParameterTypeDescription
fasta
fasta_path
modelstring
replicates
seedinteger
sequence_typestring
support_methodstring

select_substitution_model Rank substitution models, with the margin over the runners-up

Compare substitution models and report how much the winner won by. A single model name reads as a finding. The ranking, the delta to the next model, and whether AIC/AICc/BIC agree are what make it one. Args: fasta: Aligned sequences in FASTA, nucleotide or protein as declared by `sequence_type`. criterion: "AIC", "AICc" or "BIC". BIC penalises parameters more heavily. seed: Fixes the engine's search. top_n: How many ranked models to return. sequence_type: "dna" (default) or "protein". Ranks within that molecule type's model set — nucleotide and protein m…

ParameterTypeDescription
criterionstring
fasta
fasta_path
models
seedinteger
sequence_typestring
top_ninteger

compare_trees Compare two tree topologies

Robinson-Foulds distance between two trees, and which clades differ. Compares SPLITS, not strings: the same topology has many valid Newick representations, so string equality answers a different question. Args: newick_a: First tree in Newick format. newick_b: Second tree in Newick format. trees_path: Instead of the two strings, the path of a file holding exactly two Newick trees, A then B.

ParameterTypeDescription
newick_a
newick_b
trees_path

simulate_alignment Simulate an alignment from a known tree

Generate sequences along a tree you specify, so the true answer is known. This is the positive control for everything else here: infer a tree from the output and compare it back with `compare_trees`. If inference cannot recover a topology you generated from, the problem is the data or the settings, not the biology. Args: newick: The true tree, with a branch length on every edge. model: Substitution model to simulate under. A protein model ("LG", "WAG", ...) simulates protein; pass the output to `infer_tree` with sequence_type="protein". `alignment.moltype` says which…

ParameterTypeDescription
newick *string
lengthinteger
modelstring
seedinteger

align_sequences Align sequences with MAFFT, ready for infer_tree

Align unaligned sequences with MAFFT, ready for `infer_tree`. The returned `fasta` has every row the same length and can be passed to `infer_tree` or `select_substitution_model` unchanged. Each output row, with its gaps removed, is verified to equal the input sequence before it is returned. Args: fasta: UNALIGNED sequences in FASTA, 2-200 of them. Gap characters are refused: input that is already aligned does not need this tool. sequence_type: "dna" (default) or "protein". Declared, never sniffed, and passed to MAFFT explicitly so it does not guess either. fasta_p…

ParameterTypeDescription
fasta
fasta_path
out_path
sequence_typestring

map_positions Map a residue to its alignment column and across sequences

Map a residue to its alignment column, and the column to every sequence. Answers "which residue of B is in the same column as residue N of A" without counting by hand. Positions count residues from 1, gaps not counted; columns count from 1. At a gap, a row's position is null and `between` gives the residues either side. Args: aligned: true if the input is an alignment; false if unaligned, and it is aligned with MAFFT first, as `align_sequences` would. sequence: The sequence whose residue `position` is meant. position: A residue position in `sequence`. Give this or `column…

ParameterTypeDescription
aligned *boolean
column
fasta
fasta_path
position
sequence
sequence_typestring

capabilities Engine capabilities and limits

What this server can do, and the bounds it enforces. `engine_version` is the installed piqtree version (e.g. "0.8.3"); `iqtree_version` is the IQ-TREE build inside it (e.g. "3.1.2"). Args: include_models: Include the full substitution-model list (long).

ParameterTypeDescription
include_modelsboolean