MetExplore

Query MetExplore metabolic networks: organisms, metabolites, reactions, metabolite and gene mapping

Should I use this

Quality & Safety

A
Description quality
98%
Schema completeness
92%
Naming quality
91%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'search_metabolites_by_external_id' name length outside 3-30 rangein search_metabolites_by_external_id

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~2,814Tokens (tool definitions)
~1.7 KBTypical response size
Significant attention impact (2.20% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "mcp-metexplore": {
      "command": "npx",
      "args": [
        "@metexplore/mcp-metexplore"
      ]
    }
  }
}

Runnable packages

npm@metexplore/mcp-metexplore0.1.4stdio

Remote endpoints

https://metexplore.toulouse.inrae.fr/metexplore-mcp/mcpstreamable-http

What it can do

Tool inventory

Tools (9)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢search_organisms(query, output_format)

Searches MetExplore metabolic networks matching an organism name. Use this before any other tool that needs an id_network: if several networks match (e.g. 'Homo sapiens' can match several strains/tissues/sources), the result lists the candidates for the user to choose from. The query is matched word by word, ignoring case and punctuation, against names, identifiers and descriptions; a version-like word ('2', 'v2', '1.19') filters on the model version, e.g. 'Human-GEM 2'.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Name (or fragment of a name) of the organism to look for, e.g. 'Homo sapiens'"
    },
    "output_format": {
      "description": "Format of the result when ambiguous: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_metabolites(id_network, query, output_format)

Fuzzy search of the metabolites of a MetExplore network by name (or db_identifier, matched exactly or as a fragment). Name matching is tolerant to case, accents, punctuation, Greek letters (β = beta), word order and small typos, but far-fetched matches are discarded. Returns the metabolite only if exactly one matches. As soon as several metabolites match (even if one matches exactly, or the same metabolite exists in several compartments), the result lists every candidate, best first, with its id, identifier, match kind, chemical formula, compartment and cross-references (KEGG/ChEBI/...): ask the user which one they mean instead of choosing. If nothing is close enough, says that no metabolite was found. Requires an id_network (see search_organisms). To search by chemical formula (e.g. C3H3O4), use search_metabolites_by_formula instead; to search by external identifier (ChEBI, KEGG, HMDB...), use search_metabolites_by_external_id.

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network (obtained via search_organisms)"
    },
    "query": {
      "type": "string",
      "description": "Name (or fragment of a name, or db_identifier) of the metabolite to look for, e.g. 'glucose'"
    },
    "output_format": {
      "description": "Format of the result when ambiguous: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_metabolites_by_formula(id_network, formula, ignore_hydrogens, output_format)

Lists ALL the metabolites of a MetExplore network whose chemical formula matches the given molecular formula (element order does not matter: C3H3O4 = H3C3O4). Use this tool whenever the user gives a chemical formula such as C6H12O6, C3H3O4 or CO2, instead of search_metabolites (which only searches names). The result is exhaustive and lists every match with its id, identifier, name, formula, charge, compartment and cross-references. Set ignore_hydrogens to also find the other protonation states of the same compound. Requires an id_network (see search_organisms).

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network (obtained via search_organisms)"
    },
    "formula": {
      "type": "string",
      "description": "Chemical (molecular) formula to look for, in any element order, e.g. 'C3H3O4' or 'C6H12O6'"
    },
    "ignore_hydrogens": {
      "description": "If true, hydrogen counts are ignored so every protonation state matches (e.g. C3H4O4 also finds C3H3O4 and C3H2O4). Default: false (exact formula).",
      "type": "boolean"
    },
    "output_format": {
      "description": "Format of the result: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "formula"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_metabolites_by_external_id(id_network, external_id, db, output_format)

Lists ALL the metabolites of a MetExplore network cross-referenced to a given external identifier (ChEBI, KEGG compound, HMDB, MetaNetX, PubChem, LipidMaps, InChI, BiGG, VMH...), in every compartment. Use it whenever the user gives such an identifier, e.g. 'CHEBI:15422', 'C00002' or 'HMDB0000538'. The database is detected from the identifier, or given with db (or as a prefix: 'bigg.metabolite:atp'). The tool first checks that the network contains cross-references from that database. If the identifier type is not recognized or ambiguous, the answer lists the databases available in the network: ask the user which one to use and call again with db. Requires an id_network (see search_organisms).

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network (obtained via search_organisms)"
    },
    "external_id": {
      "type": "string",
      "minLength": 1,
      "description": "External identifier of the metabolite, e.g. 'CHEBI:15422', 'C00002' (KEGG), 'HMDB0000538', 'MNXM3' (MetaNetX), or prefixed with its database: 'bigg.metabolite:atp', 'pubchem.compound:5957'"
    },
    "db": {
      "description": "Database of the identifier, as named in MetExplore (e.g. chebi, kegg.compound, hmdb, metanetx.chemical, pubchem.compound, bigg.metabolite, vmhmetabolite, lipidmaps, inchi). Optional: detected from the identifier when possible.",
      "type": "string"
    },
    "output_format": {
      "description": "Format of the result: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "external_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢count_reactions_for_metabolite(id_network, id_metabolite, output_format)

Returns the number and list of reactions (id, db_identifier, name) in the network that involve a given metabolite. The metabolite must first be resolved to an internal id via search_metabolites.

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network"
    },
    "id_metabolite": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Internal id of the metabolite (obtained via search_metabolites), not its db_identifier"
    },
    "output_format": {
      "description": "Format of the list of reactions: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "id_metabolite"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢match_chebi(id_network, chebi_ids, output_format)

Matches one or several ChEBI identifiers to the metabolites of a MetExplore network using the ChEBI ontology: besides exact matches, it finds related metabolites (more generic or more specific ChEBI classes, conjugate acid/base, tautomers, enantiomers), each with its relation and distance in the ontology. Use it when the user asks for metabolites related/close to a ChEBI, when search_metabolites_by_external_id finds no exact match for a ChEBI, or to match a list of ChEBI identifiers (e.g. from metabolomics) onto a network. Requires an id_network (see search_organisms); the network must contain ChEBI cross-references.

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network (obtained via search_organisms)"
    },
    "chebi_ids": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "ChEBI identifiers to match, e.g. ['CHEBI:17234', 'CHEBI:15377'] (the 'CHEBI:' prefix is optional)"
    },
    "output_format": {
      "description": "Format of the result: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "chebi_ids"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢map_metabolites(id_network, ids, output_format)

Maps a list of metabolite identifiers (db_identifier) onto a MetExplore network and produces a report: mapped, not found, or ambiguous entries (several matching metabolites, each with its full name, formula and cross-references so the user can choose), AND a pathway enrichment table (right-tailed Fisher exact test, with Bonferroni and Benjamini-Hochberg corrected p-values, with the numeric pathway id) for the mapped metabolites — this already answers 'which pathways are overrepresented' questions; no other tool or export is needed for that. The target network must first be resolved via search_organisms.

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network to map onto"
    },
    "ids": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of metabolite identifiers to map (matched against the network's db_identifier)"
    },
    "output_format": {
      "description": "Format of the mapping report: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "ids"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢map_genes(id_network, ids, output_format)

Maps a list of gene identifiers (db_identifier, exact or regular expression) onto a MetExplore network and produces a report: mapped, not found, or ambiguous entries (several matching genes), AND a pathway enrichment table (right-tailed Fisher exact test, with Bonferroni and Benjamini-Hochberg corrected p-values, with the numeric pathway id) for the mapped genes — this already answers 'which pathways are overrepresented' questions; no other tool or export is needed for that. The target network must first be resolved via search_organisms.

Input Schema

{
  "type": "object",
  "properties": {
    "id_network": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Id of the MetExplore network to map onto"
    },
    "ids": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of gene identifiers to map, matched against the whole db_identifier of the network genes (exact match, or a regular expression such as 'b00.*')"
    },
    "output_format": {
      "description": "Format of the mapping report: markdown table or text. Default: table.",
      "type": "string",
      "enum": [
        "table",
        "text"
      ]
    }
  },
  "required": [
    "id_network",
    "ids"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_quota_status

Returns how many requests have already been sent to the MetExplore API and how many remain for the current MCP session (limit set by METEXPLORE_MAX_REQUESTS_PER_SESSION).

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded9 tools