About io.github.galaxyproject/galaxy-mcp
io.github.galaxyproject/galaxy-mcp is an MCP server published by galaxyproject in the Healthcare category: mCP server for Galaxy bioinformatics platform - connect, execute tools, and manage workflows. Conduid read 51 tools from its source: cancel_workflow_invocation, connect, create_history, create_page, create_user_tool, delete_user_tool and 45 more. It is published to PyPI as galaxy-mcp and runs with uvx.
The repository has 41 stars and 30 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include healthcare.
Install
uvx galaxy-mcppip install galaxy-mcpgit clone https://github.com/galaxyproject/galaxy-mcpTools (51)
cancel_workflow_invocationCancel a running workflow invocation| Parameter | Type | Description |
|---|---|---|
| invocation_id * | string | ID of the workflow invocation to cancel - a hexadecimal hash string |
connectConnect to Galaxy server| Parameter | Type | Description |
|---|---|---|
| api_key | string | Galaxy API key (optional, uses GALAXY_API_KEY env var if not provided) |
| url | string | Galaxy server URL (optional, uses GALAXY_URL env var if not provided) |
create_historyCreate a new history to organize datasets and analyses.| Parameter | Type | Description |
|---|---|---|
| history_name * | string | Descriptive name for the history. Best practices: - Include project/sample name: "RNA-seq Sample A" - Include date if relevant: "ChIP-seq 2024-01" - Be specific: "BWA alignment of patient_001" |
create_pageCreate a markdown page (Galaxy Notebook or Report).| Parameter | Type | Description |
|---|---|---|
| annotation | string | Optional annotation attached to the page. |
| content | string | Initial markdown content. |
| history_id | string | Encoded history id to attach the page to (notebook). |
| slug | string | URL slug (required for standalone reports). |
| title | string | Page title. |
create_user_toolCreate a user-defined tool in Galaxy from a YAML tool definition.| Parameter | Type | Description |
|---|---|---|
| representation * | object | The tool definition as a dictionary matching the GalaxyUserTool schema. Required fields: - class: "GalaxyUserTool" (exactly this string) - id: tool identifier (lowercase, no spaces, 3-255 chars) - version: version string (e.g. "0.1.0") - name: display name shown in Galaxy tool menu - container: container image as a STRING, NOT a dict (a common mistake). Prefer a real biocontainer over a bare image -- a bare image like "python:3.12-slim" ships no third-party libraries (it cannot `import pandas`). If the recommend_biocontainer tool is available it resolves a verified image for you; otherwise use a known-good biocontainer tag. - shell_command: the command to execute, with $(inputs.name.path) for data inputs and $(inputs.name) for parameter inputs - inputs: list of input dicts, each with "name" and "type" (type can be: "data", "integer", "float", "text", "boolean") - outputs: list of output dicts, each with "name", "type": "data", "format" (e.g. "tabular", "vcf", "bed"), and "from_work_dir" |
delete_user_toolDeactivate a user-defined tool. Deactivated tools are not loaded into the toolbox.| Parameter | Type | Description |
|---|---|---|
| uuid * | string | The UUID of the tool to deactivate. Get this from list_user_tools(). |
download_datasetDownload a dataset from Galaxy to the local filesystem or memory| Parameter | Type | Description |
|---|---|---|
| dataset_id * | string | Galaxy dataset ID - a hexadecimal hash string identifying the dataset (a 16-character hex string) |
| file_path | string | Local filesystem path where to save the downloaded file (e.g., '/path/to/data.txt', requires write access to filesystem) If not provided, downloads to memory instead |
| require_ok_state | boolean | Only allow download if dataset processing state is 'ok' (default: True, set False to download datasets in other states) |
| use_default_filename | boolean | Deprecated - use file_path for specific locations (default: True, ignored when file_path not provided) |
extract_workflow_from_historyTurn jobs already run in a history into a stored workflow, so the same chain of tools| Parameter | Type | Description |
|---|---|---|
| collection_hids | array | History item numbers (hid) of the dataset collections that become the workflow's collection inputs; a hid that is not a collection is refused by Galaxy. |
| dataset_hids | array | History item numbers (the hid get_history_contents lists, not encoded ids) of the datasets that become the workflow's dataset inputs -- the ones the jobs read that another run would replace. A dataset a listed job reads that is neither here nor produced by a listed job is left as an unconnected step input. Galaxy does not check these: a hid that is not in the history still becomes an input step. |
| history_id * | string | Encoded id of the history to extract from |
| job_ids | array | Encoded ids of the jobs that become tool steps, in the order to extract them; get_job_details and list_jobs report them. A job not from history_id is refused. Without any, the workflow has no tool steps. |
| workflow_name * | string | Name for the new stored workflow |
get_collection_detailsGet detailed information about a dataset collection and its members| Parameter | Type | Description |
|---|---|---|
| collection_id * | string | Galaxy dataset collection ID - a hexadecimal hash string (e.g., 'a1b2c3d4e5f6g7h8', typically 16 characters) |
| max_elements | integer | Maximum number of collection elements to return (default: 100) Set lower for large collections to avoid overwhelming output |
get_dataset_detailsGet detailed information about a specific dataset, optionally including a content preview| Parameter | Type | Description |
|---|---|---|
| dataset_id * | string | Galaxy dataset ID - a hexadecimal hash string identifying the dataset (a 16-character hex string) |
| include_preview | boolean | Whether to include a preview of the dataset content showing first N lines (default: True, only works for datasets in 'ok' state) |
| preview_lines | integer | Number of lines to include in the content preview (default: 10) |
get_historiesGet list of user's histories with optional pagination and filtering.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum histories to return. Default None returns all. Use with offset for pagination on large history lists. |
| name | string | Return only histories with exactly this name. The match is exact and case-sensitive, not a substring: name="RNA" does not match "RNA-seq analysis". |
| offset | integer | Skip this many histories (for pagination). Default 0. |
get_history_contentsGet paginated contents (datasets and collections) from a specific history with ordering support| Parameter | Type | Description |
|---|---|---|
| deleted | boolean | Include deleted datasets in results (default: False) |
| history_id * | string | Galaxy history ID - a hexadecimal hash string identifying the history (a 16-character hex string) |
| limit | integer | Maximum number of items to return per page (default: 100). A page too large for the output budget is cut short; pagination says where the next one starts. |
| offset | integer | Number of items to skip from the beginning (default: 0, for pagination) |
| order | any | Sort order for results: hid, create_time, update_time, name, extension or size, followed by '-asc' or '-dsc'. 'hid-asc' (default) is oldest first. |
| visible | boolean | Include only visible datasets (default: True, set False to include hidden) |
get_history_detailsGet history metadata and summary count ONLY - does not return actual datasets| Parameter | Type | Description |
|---|---|---|
| history_id * | string | Galaxy history ID - a hexadecimal hash string identifying the history (a 16-character hex string) |
get_invocationsView workflow invocations in Galaxy| Parameter | Type | Description |
|---|---|---|
| history_id | string | Filter invocations by history ID - a hexadecimal hash string (a 16-character hex string, optional) |
| include_terminal | boolean | Whether invocations that have finished -- scheduled, failed or cancelled -- are listed. False keeps only the ones still in flight (default: True) |
| invocation_id | string | Specific workflow invocation ID to view - a hexadecimal hash string (a 16-character hex string, optional) |
| limit | integer | Maximum number of invocations to return, at most 100 -- Galaxy's invocation index serves no larger page, so page with offset to see more. Leave it unset and none is sent, so Galaxy applies its own default of 20 -- not "no limit". |
| offset | integer | Number of invocations to skip before the page starts, for walking a listing longer than one page of limit (default: 0) |
| sort_by | string | Order the listing by 'create_time' or 'update_time'. Left unset, Galaxy's own order applies, which is newest first (optional) |
| sort_desc | boolean | With sort_by, True orders newest first and False oldest first. Left unset, Galaxy's own direction applies (optional) |
| step_details | boolean | Include details on individual workflow steps -- each step's jobs. Applies to one invocation by id, and to a listing when view is 'element' (default: False) |
| view | string | Level of detail to return - 'element' for detailed or 'collection' for summary (default: 'collection') |
| workflow_id | string | Filter invocations by workflow ID - a hexadecimal hash string (a 16-character hex string, optional) |
get_iwc_workflow_detailsGet comprehensive details about a specific IWC workflow before importing.| Parameter | Type | Description |
|---|---|---|
| trs_id * | string | The TRS (Tool Registry Service) ID from search results. Format: "#workflow/github.com/iwc-workflows/<name>/<branch>" Example: "#workflow/github.com/iwc-workflows/rnaseq-pe/main" |
get_iwc_workflowsList workflows published by the IWC (Intergalactic Workflow Commission).| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum workflows to return per page (default 20, max 100). A page is also cut short when it would not fit the output budget. |
| offset | integer | Skip this many workflows (default 0). Pass pagination.next_offset to walk to the following page. |
get_job_detailsGet a job's record, by its own id or by a dataset it created.| Parameter | Type | Description |
|---|---|---|
| dataset_id | string | Galaxy dataset ID whose creating job to look up - a hexadecimal hash string (a 16-character hex string). Give this or job_id, not both |
| history_id | string | Galaxy history ID containing the dataset - optional for performance optimization (a 16-character hex string); only used with dataset_id |
| job_id | string | Galaxy job ID to look up directly (a 16-character hex string). Give this or dataset_id, not both |
get_job_logsRead a job's logs: the stdout and stderr Galaxy keeps for it, each cut to a byte budget.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Galaxy job ID (a 16-character hex string), as run_tool, list_jobs or get_job_details report it |
| log_bytes | integer | Budget per log field in UTF-8 bytes (default 4096). 0 returns every log uncut, however long; a negative value is refused |
get_pageGet a page and the content of its latest revision.| Parameter | Type | Description |
|---|---|---|
| include_rendered | boolean | When True, also return `content` -- the embed-expanded render form (inlined dataset previews). Can be large; omit unless you need the rendered output. |
| page_id * | string | Encoded id of the page (from list_pages / create_page). |
get_page_revisionGet the content of a single page revision.| Parameter | Type | Description |
|---|---|---|
| page_id * | string | Encoded id of the page. |
| revision_id * | string | Encoded id of the revision (from list_page_revisions). |
get_server_infoGet Galaxy server information including version, URL, and configuration detailsget_tool_citationsGet citation information for a specific tool| Parameter | Type | Description |
|---|---|---|
| tool_id * | string | ID of the tool |
get_tool_detailsGet detailed information about a specific tool including its input parameters.| Parameter | Type | Description |
|---|---|---|
| io_details | boolean | Set True to include detailed input/output parameter schemas. Essential for understanding how to call run_tool(). |
| tool_id * | string | Galaxy tool identifier. Common formats: - Simple: "fastqc", "bwa", "upload1" - Toolshed: "toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73" |
| tool_version | string | Describe this installed version of the tool rather than the one Galaxy picks for the id. Refused when Galaxy answers with a different version, so the answer is never about another one. |
get_tool_input_templateReturn a ready-to-fill ``inputs`` skeleton for a tool, plus a compact schema.| Parameter | Type | Description |
|---|---|---|
| tool_id * | string |
get_tool_panelBrowse the Galaxy tool panel (toolbox) one level at a time.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum entries to return per page (default 100, max 500). A page is also cut short when it would not fit the output budget. |
| offset | integer | Skip this many entries (default 0). Pass pagination.next_offset to walk to the following page. |
| section_id | string | Panel section to open, from a previous summary call. Omit to list the sections themselves. |
get_tool_run_examplesReturn the exact XML test definitions (inputs, outputs, assertions, required files)| Parameter | Type | Description |
|---|---|---|
| tool_id * | string | ID of the tool to inspect |
| tool_version | string | Optional version selector (use '*' for all versions) |
get_userGet current user informationget_user_toolGet one user-defined tool by its UUID, with its full representation.| Parameter | Type | Description |
|---|---|---|
| uuid * | string | The tool's UUID as list_user_tools() reports it (32 hex digits in 8-4-4-4-12 groups). The bare 32-digit, braced and urn:uuid: spellings name the same tool and are accepted too. |
get_workflow_detailsGet detailed information about a specific workflow| Parameter | Type | Description |
|---|---|---|
| version | integer | Specific version of the workflow (optional, uses latest if not specified) |
| workflow_id * | string | ID of the workflow to get details for - a hexadecimal hash string |
get_workflow_input_templateReturn a ready-to-fill template plus a run guide for a workflow.| Parameter | Type | Description |
|---|---|---|
| history_id | string | |
| verbose | boolean | |
| version | integer | |
| workflow_id * | string |
import_workflowImport a workflow from its definition into the user's Galaxy instance. The stored| Parameter | Type | Description |
|---|---|---|
| definition * | object | The workflow as Galaxy's native .ga dict or a Format2 (gxformat2) dict, the same as a JSON object string, or Format2 YAML text (class: GalaxyWorkflow). Embedded user-defined tools are created if the user is allowed to. |
| fill_defaults | boolean | Have Galaxy fill each tool parameter the definition leaves unset with its default while storing it, so the stored workflow carries complete tool state. Galaxy 26.2 and later fill them at run time anyway; an older Galaxy runs the workflow without it only with allow_tool_state_corrections on invoke_workflow. |
import_workflow_from_iwcImport a workflow from IWC to the user's Galaxy instance| Parameter | Type | Description |
|---|---|---|
| trs_id * | string | TRS ID of the workflow in the IWC manifest |
invoke_workflowInvoke (run) a workflow with specified inputs and parameters| Parameter | Type | Description |
|---|---|---|
| allow_tool_state_corrections | boolean | Let Galaxy fill in or correct tool state it would otherwise refuse with "Workflow step has upgrade messages". Galaxy 26.2 and later give a parameter that is only left unset its default without this flag; it is still needed on an older Galaxy, and for a step whose tool version changed or whose stored value Galaxy has to replace |
| history_id | string | ID of history to store workflow outputs (optional) |
| history_name | string | Name for new history to create (ignored if history_id provided) |
| inputs | object | Mapping of workflow inputs to datasets. Format: {'step_index': {'id': 'dataset_id', 'src': 'hda'}} where src can be: - 'hda' for HistoryDatasetAssociation - 'hdca' for HistoryDatasetCollectionAssociation - 'ldda' for LibraryDatasetDatasetAssociation - 'ld' for LibraryDataset |
| inputs_by | string | How to identify workflow inputs - 'step_index', 'step_uuid', 'name', or 'step_index|step_uuid' (recommended; matches get_workflow_input_template) |
| parameters_normalized | boolean | Whether parameters are already in normalized format |
| params | object | Tool parameter overrides as a nested dictionary |
| version | integer | Which stored version of the workflow to run (optional; the latest when omitted). Versions are numbered from 0, oldest first -- the number get_workflow_details reports as `version` and accepts back. Galaxy refuses a number past the newest with "Version does not exist". Must be 0 or greater. |
| workflow_id * | string | ID of the workflow to invoke - a hexadecimal hash string |
list_history_idsGet a simplified, paginated list of history IDs and names for easy reference| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum histories to return per page (default 100, max 500). A page is also cut short when it would not fit the output budget. |
| offset | integer | Skip this many histories (default 0). Pass pagination.next_offset to walk to the following page. |
list_jobsList jobs, optionally narrowed to one history, one state and a time window.| Parameter | Type | Description |
|---|---|---|
| date_range_max | string | Only jobs updated at or before this time, in the same format. |
| date_range_min | string | Only jobs updated at or after this time, as an ISO 8601 date or datetime such as '2026-01-01' or '2026-01-01T12:00:00'. |
| history_id | string | Only jobs in this history (an encoded history id). Leave it unset for jobs from any history the user can see. The id of a history that does not exist is not an error here: it answers with an empty page. |
| limit | integer | Most jobs to return in one page (default 100). Galaxy puts no upper cap on this, so this tool does not either; keep it to what fits the output budget. |
| offset | integer | Skip this many jobs (default 0). Page by raising it by limit until a page comes back shorter than limit. |
| order_by | string | Sort by 'update_time' (default) or 'create_time', newest first. |
| state | string | Only jobs in this state -- 'new', 'queued', 'running', 'ok', 'error', 'paused', 'deleted' and the rest of Galaxy's job states. A comma-separated list matches any of them. |
| view | string | 'collection' (default) returns one small summary per job -- id, state, tool_id, exit_code, create_time, update_time -- which is what a listing wants. 'admin_job_list' adds runner and handler detail and needs an admin key. |
list_page_revisionsList the revision history of a page.| Parameter | Type | Description |
|---|---|---|
| page_id * | string | Encoded id of the page. |
| sort_desc | boolean | Newest-first when True (default oldest-first). |
list_pagesList Galaxy pages (markdown documents) viewable by the user.| Parameter | Type | Description |
|---|---|---|
| history_id | string | Encoded history id. When set, returns only notebooks attached to that history. |
| limit | integer | Max pages to return (default 100). |
| offset | integer | Pagination offset. |
| search | string | Freetext filter over title/content. |
| show_published | boolean | Also include pages published by other users (default False). |
| show_shared | boolean | Also include pages shared with the user (default False). |
list_user_toolsList user-defined tools belonging to the current user, one page at a time.| Parameter | Type | Description |
|---|---|---|
| active | boolean | If True (default), only show active tools. Set False to include deactivated tools. |
| limit | integer | Maximum tools to return per page (default 25, max 100). Each entry carries the tool's full representation, so a page is often cut short to fit the output budget; walk pagination.next_offset for the rest. |
| offset | integer | Skip this many tools (default 0). Pass pagination.next_offset to walk to the following page. |
list_workflowsList workflows available in the Galaxy instance, one page at a time| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum workflows to return per page (default 50, max 200). A page is also cut short when it would not fit the output budget. |
| name | string | Filter workflows by name (optional) |
| offset | integer | Skip this many workflows (default 0). Pass pagination.next_offset to walk to the following page. |
| published | boolean | Include published workflows (default: False, shows only user workflows) |
recommend_iwc_workflowsSemantic search for IWC workflows based on natural language description.| Parameter | Type | Description |
|---|---|---|
| intent * | string | Natural language description of your analysis goal. |
| limit | integer |
revert_page_revisionRoll a page back to an earlier revision.| Parameter | Type | Description |
|---|---|---|
| page_id * | string | Encoded id of the page. |
| revision_id * | string | Encoded id of the revision to restore. |
run_toolRun a Galaxy tool on datasets in a history.| Parameter | Type | Description |
|---|---|---|
| history_id * | string | Galaxy history ID (a 16-character hex string). Get from create_history() or get_histories(). |
| inputs * | object | Tool input parameters. Dataset inputs use this format: {"input_name": {"src": "hda", "id": "dataset_id"}} To run the tool once per element of a collection, map it over the |
| tool_id * | string | Tool identifier. Common formats: - Simple built-in: "cat1", "Cut1", "upload1" - Toolshed: "toolshed.g2.bx.psu.edu/repos/iuc/fastqc/fastqc/0.73" |
| tool_version | string |
run_user_toolRun a user-defined tool via the standard Galaxy tools API.| Parameter | Type | Description |
|---|---|---|
| history_id * | string | Galaxy history ID where outputs will be placed. |
| inputs * | object | Tool input parameters. Dataset inputs use: {"input_name": {"src": "hda", "id": "dataset_id"}} Scalar parameters use direct values: {"param_name": value} |
| tool_uuid * | string | The UUID of the user-defined tool (from create_user_tool or list_user_tools). |
search_iwc_workflowsSearch for workflows in the IWC (Intergalactic Workflow Commission) manifest.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum workflows to return per page (default 20, max 100). A broad query matches most of the 123-workflow corpus, which is ~184 KB unpaged and more than an MCP client will pass through intact. |
| offset | integer | Skip this many matches (default 0). Pass pagination.next_offset to walk to the following page. |
| query * | string | Search query (case-insensitive). Matches against: - Workflow name (e.g., "RNA-seq") - Description/annotation - Tags (e.g., "assembly", "transcriptomics") |
search_tools_by_keywordsRecommend Galaxy tools based on a list of keywords.| Parameter | Type | Description |
|---|---|---|
| keywords * | array | A list of keywords or phrases describing what you're looking for, e.g., ["csv", "rna", "alignment", "visualization"]. The search will match tools whose name, description, or accepted input formats contain any of these keywords. |
| limit | integer | Maximum tools to return per page (default 50, max 200). A page is also cut short when it would not fit the output budget. |
| offset | integer | Skip this many matches (default 0). Pass pagination.next_offset for the following page. |
search_tools_by_nameSearch Galaxy tools whose name, ID, or description contains the given query (substring match),| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum tools to return per page (default 25, max 100). A page is also cut short when it would not fit the output budget, so ask for what you want and walk pagination.next_offset. |
| offset | integer | Skip this many matches (default 0). Pass pagination.next_offset to walk to the following page. |
| query * | string | Search query - matches against tool name, ID, or description. Examples: "fastq", "alignment", "filter", "bwa" |
show_datasetsShow a chosen set of datasets from one history as a card: only these, in the order given. First read with get_history_contents and pick the entries the user asked for, datasets only (history_content_type "dataset"), passing their id, not their hid. For "the latest successful ones", for example, read with order="create_time-dsc" and take the first entries whose state is "ok", paging on until you have enough or saying how far you read. Galaxy supplies every name and state; an id that is not in this history, or that the user cannot access, is shown as such. The card opens on five rows. Use a show_* tool only when the user wants to see something, and show at most one card per reply across all of them.update_historyUpdate an existing Galaxy history's metadata.| Parameter | Type | Description |
|---|---|---|
| annotation | string | New annotation/description text for the history (optional). |
| deleted | boolean | If True, soft-delete the history; if False, restore a deleted history (optional). |
| history_id * | string | The ID of the history to update. Obtain this from get_histories() or list_history_ids(). |
| name | string | New name for the history (optional). |
| published | boolean | If True, publish the history (make it public); if False, unpublish (optional). |
| tags | array | New list of tags for the history (optional). Replaces any existing tags. |
update_pageUpdate a page, creating a new revision when content changes.| Parameter | Type | Description |
|---|---|---|
| content | string | New markdown content. Omit to leave content unchanged. |
| expect_hash | string | content_hash from when the page was read; refused if it changed (a read then the write, not atomic). |
| page_id * | string | Encoded id of the page. |
| section_content | string | That section's new text, heading line included. |
| section_heading | string | The exact heading line of the section to replace (markdown pages only; every section with that heading line is replaced). "" is the text before the first heading. |
| title | string | New title. Omit to leave unchanged. |
upload_fileUpload a local file to Galaxy for analysis.| Parameter | Type | Description |
|---|---|---|
| history_id | string | Target history ID. If None, uses the most recent history. Recommend always specifying for clarity. |
| path * | string | Local file path to upload. Supports common bioinformatics formats: - Sequences: .fastq, .fasta, .fa, .fq, .fastq.gz - Alignments: .bam, .sam, .cram - Annotations: .bed, .gff, .gtf, .vcf - Tabular: .csv, .tsv, .txt |
upload_file_from_urlUpload a file from a URL to Galaxy| Parameter | Type | Description |
|---|---|---|
| dbkey | string | Database key/genome build (default: '?', e.g., 'hg38', 'mm10', 'dm6') |
| file_name | string | Optional name for the uploaded file in Galaxy (inferred from URL if not provided) |
| file_type | string | Galaxy file format name (default: 'auto' for auto-detection) Common types: 'fasta', 'fastq', 'bam', 'vcf', 'bed', 'tabular', etc. |
| history_id | string | Galaxy history ID where to upload the file - optional, uses current history (a 16-character hex string) |
| url * | string | URL of the file to upload (e.g., 'https://example.com/data.fasta') |
Security checks
- ✓README presentThe repository's README runs to about 532 words.
5 checks have not been run yet.
README
The repository's README runs to about 532 words. The original in the repository is authoritative.
Read full README