mseapca MCPGitHub

R · METABOLOMICS · OPEN SOURCE

mseapca MCP

Metabolite Set Enrichment for AI Agents

MCP SERVER ENDPOINTLoading endpoint configuration...
Get StartedView Examples

Overview

Explore metabolite sets and run enrichment analyses from an AI agent. mseapca MCP wraps the official mseapca R package with mcptools, without changing its algorithms.

A fixed snapshot from the mseapca database application provides 5,324 sets across nine sources. KEGG-origin sets, KEGG cross-references and KEGG compound identifiers are excluded. No live AI search or database update service is called.

Includes 583 immune-cell UP/DOWN sets from 439 treatment contrasts (BH FDR ≤ 0.05; fold change ≥ 1.5). Search source ImmuneCellMetabolomics, retrieve paired _UP/_DOWN sets by name, and run ORA separately for increased and decreased inputs with your measured background. There is no combined CMap ranking tool; ORA adjustment applies to the sets selected in each call.

Available methods

Enrichment analysis

  • Over-representation analysis (ORA)
  • Detected, full and estimated background models
  • ORA uncertainty ranges and simulation
  • Quantitative MSEA with membership permutations
  • Sample presence-list SSEA scores

Metabolite sets

  • Reactome and WikiPathways
  • PathBank and integMET
  • ILDMDB, MACdb, ProMENDA and MetSigDis
  • Literal name, HMDB, ChEBI, InChIKey or PubChem matching
  • Custom sets and explicit provenance

Non-KEGG does not mean unrestricted reuse. Database terms remain separate from the MIT wrapper license; PathBank restricts commercial reuse. See data sources and licensing. SSEA here scores presence lists and is not expression-based ssGSEA or GSVA.

Real metabolome example

The complete loadings::fasting mouse-liver dataset contains 10 samples and 282 metabolites. The demo selects positive PC1 loadings with exploratory p < 0.05, then runs detected-background ORA against 20 Reactome sets chosen by detected coverage.

Top ten Reactome sets ordered by actual ORA p-values in the fasting example
Actual ORA output; the plot does not establish significant biological enrichment.
Call demo_data(dataset="fasting").
Pass significant, detected and set_ids to analyze_ora.
Inspect p.value, q.value, overlaps and the analysis conditions.

Download actual results

The supplied Reactome reference is human and the assay is mouse. This is an illustrative software example, not validated cross-species inference. PCA sign is arbitrary and the selection p-values are unadjusted. The alternative membership demo is explicitly synthetic, not measured experimental data.

Getting started

Free public research access: no registration or API key is required. The Cloud Run endpoint has passed anonymous HTTP MCP tests for all nine tools, including ORA, range estimation, MSEA and SSEA. See the repository for local R and Docker setup.

Claude Code

The connection command will appear when endpoint configuration loads.

Run the command above to add this public HTTP server. No authentication header is needed. See the official Claude Code guide.

Other clients

Use a client that supports remote Streamable HTTP MCP servers. Choose no authentication for this public endpoint; it does not provide OAuth. Actual ChatGPT and Claude connections have not been tested for this server. See the ChatGPT connection documentation and Claude custom connector guide.

The Docker gateway limits each request to 2 MiB, shared traffic to 60 requests/minute with burst 10, and each worker to 20 seconds. HTTP 413/429 indicates a size or traffic limit. This is a best-effort service: access may pause when the shared budget is reached. Retry later and avoid automatic retry loops. The shared Cloud Run monthly spend cap is JPY 1,000 across this project, not per service. Enforcement can lag; build and storage charges are outside this cap. This is not a guaranteed total bill ceiling.

Available tools

ToolInputsOutput
catalog_infoNoneSnapshot, source counts and identifier namespaces
search_setsquery, source, organism, limit, offsetPaginated set metadata
get_setsset_ids, identifier, max_membersMembers, source and truncation
lookup_metabolitesquery, exact, limitLiteral identifier matches
demo_datadataset: fasting or membershipAnalysis-ready identifiers and real fasting matrix
analyze_orasignificant, detected, sets, identifier, method, lambdap-values, BH q-values, overlaps and contingency tables
analyze_rangeORA inputs, method, nsim, probsOfficial ORA ranges
analyze_mseax, metabolite_ids, y, sets, maxiter, seedEnrichment scores, p-values and permutation q-values
analyze_sseasamples, detected, sets, identifierSample-by-set -log(p) matrix

Analysis sets use set_ids and/or custom_sets. All results are JSON text content with ok, warnings and conditions or an error. See the full input schema and limits below.

Documentation

References

CRAN: mseapca · mcptools · Database application (repository access required)

About

Developer: Hiroyuki Yamamoto

Wrapper and website: MIT. mseapca and loadings: LGPL-3. Database sources retain their own terms.