ConductScience Sequences
Contents

User guide · Programs and data

Assistants

Let an assistant that supports the Model Context Protocol run searches and read their results.

An assistant that supports the Model Context Protocol, an open standard for connecting assistants to tools, can run searches and read their results through the assistant program. The program runs on your computer and calls this server with your API token, so each call acts as your account under the same rules as the page. The program runs no model: your assistant reads the answers on its side. What the assistant reads goes wherever that assistant sends it, so follow your organization's rules for the assistant you use.

Download sequences-mcp.mjs and run it with Node.js 22 or later. It needs nothing else. Make an API token as Programs and API tokens describes, save it in a file by itself, and check the address and the token from a terminal:

node sequences-mcp.mjs --server https://sequences.example.org --token-file sequences-token.txt --check

Then add the program to your assistant's tools, as the assistant's own instructions say. Most take a command and its arguments, such as:

{"command": "node",
 "args": ["<folder>/sequences-mcp.mjs", "--server", "https://sequences.example.org", "--token-file", "<folder>/sequences-token.txt"]}

On the local workbench, leave out --token-file: a program on the same computer needs no token. The assistant then has twenty-one tools:

  • list_sets and list_snapshots: the sets this server searches, and each snapshot's sources and terms.
  • start_search and start_batch: one search, or 1 to 100 at once, with the fields of POST /api/jobs.
  • get_job and get_batch: the state of a search, or of each search in a batch. Each can wait up to 45 seconds for the search to end.
  • get_hits: a finished search's hits, a page at a time, with the filters and sorts of the results page.
  • get_publications: the patents a search found, or every publication of one hit's sequence.
  • get_multi_hits: the patents or stored sequences that several of a batch's queries hit, as Hit by several queries counts them for a query group.
  • get_patent_text: What the patent says about the SEQ ID NOs that a search matched in a US publication, or a publication of another office's English title and abstract.
  • get_export: a search's CSV, FASTA and text exports, as text. A file longer than 50,000 characters is cut at the end of a line, unless the assistant asks for more, up to 1,000,000.
  • start_cdr_search and get_cdr_matches: an antibody CDR search and its CDR matches.
  • save_query_group, list_query_groups, get_query_group and start_group_search: query groups, and a group's queries searched as one batch.
  • get_sequence: a stored sequence's letters, by accession or by publication and SEQ ID NO.
  • import_listing, get_listing and get_listing_sequences: a sequence listing you give the assistant, read into your account, and its sequences with their letters and notes. A listing it sends can be up to 1,000,000 characters.

A search the server would ask about first, such as a long one, answers with its estimate and does not start. The program tells the assistant to ask you, and to send it again with confirmed: true only if you agree. The program never prints the token.

Guide version 1.91.0 · For Sequences 0.155.0