Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

matchms

Skill by K-Dense-AI

Processes, cleans, compares, and searches tandem mass spectra with the matchms 0.33.1 Python package. Aimed at researchers doing MS/MS library search and spectral similarity work.

  • Score 94
  • 60k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install matchms

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/matchms ~/.claude/skills/matchms

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install matchms in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The matchms skill guides an AI assistant through importing, cleaning, processing and comparing tandem mass spectra (MS/MS) with the matchms Python package, pinned to version 0.33.1. It covers MGF, MSP, mzML, mzXML, JSON, mzSpecLib and metabolomics-USI inputs, metadata harmonization, peak filtering, and scoring methods such as cosine, modified cosine, neutral-loss and entropy. It also covers library search, score matrices, and molecular-similarity networks.

It is aimed at researchers doing MS/MS library matching and spectral similarity work. The skill says to use pyopenms instead for LC-MS feature detection or proteomics pipelines, and it warns that similarity scores are evidence rather than proof of identity. Local file workflows need no credentials, while metabolomics-USI loading needs network access.

Written from the project's SKILL.md and checked against it.

What it can do

  • Spectrum file importLoads MGF, MSP, mzML, mzXML, JSON and mzSpecLib files, plus metabolomics-USI sources.
  • Metadata harmonizationHarmonizes spectrum metadata keys when loading, with precursor and adduct handling.
  • Peak filteringApplies filters such as intensity normalization, relative intensity selection and spectrum validity checks.
  • Spectral similarity scoringScores spectra with cosine, modified cosine, neutral-loss, approximate and entropy methods.
  • Library searchRanks reference library spectra against query spectra and extracts top hits.
  • Score matricesBuilds structured all-pairs score matrices with guidance on estimating pair counts first.
  • Molecular-similarity networksSupports spectral networks and fingerprint-based molecular structure similarity.
  • Bundled library-search CLIRuns a reproducible query-versus-library search script with CSV output.

What you need

  • Python 3.10 to 3.14
  • uv
  • matchms 0.33.1
  • Network access for metabolomics-USI loading

Try asking

  • Load my MGF file and filter peaks before scoring against a library
  • Run a modified cosine library search and export the top 5 hits
  • Compare all my spectra pairwise and build a similarity network

Good to know

  • Similarity scores are evidence, not proof of compound identity.
  • Not a replacement for pyopenms in LC-MS feature detection or proteomics.
  • Vendor raw files must be converted to mzML or mzXML first.
  • Never load pickle files from an untrusted source.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/matchms/SKILL.md, skills/matchms/scripts/library_search.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Edit Bash

  • SKILL.md13 KB
  • references/filtering.md12 KB
  • references/importing_exporting.md11 KB
  • references/migration.md8 KB
  • references/similarity.md14 KB
Show all 8 files
  • references/sources.md10 KB
  • references/workflows.md14 KB
  • scripts/library_search.py21 KB

Alternatives to matchms

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

matchms: common questions

What does matchms do?

It imports, cleans, and compares tandem mass spectra, including library search and score matrices. The skill targets matchms 0.33.1.

Can matchms detect LC-MS features?

No. The skill says to use pyopenms for LC-MS feature detection, chromatographic alignment, or proteomics pipelines.

Does matchms need credentials?

Local file workflows need no credentials. Metabolomics-USI loading requires network access.

How do I install matchms?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is matchms free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is matchms safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to matchms?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

matchms Install

Add to stack

Loading.