Skip to main content
Glama
ebi-search

ebi-search

Official
by ebi-wp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoWhere the server listens (host)127.0.0.1
PORTNoWhere the server listens (port)8000
MCP_PATHNoMCP endpoint path, e.g. `/ebisearch/mcp`; health check at `<MCP_PATH>/health`/mcp
LOG_LEVELNo`DEBUG`, `INFO`, `WARNING` or `ERROR`INFO
TRANSPORTNo`streamable-http` (web) or `stdio` (local clients)streamable-http
ENVIRONMENTNo`dev`, `test` or `prod`; tags every log linedev
HTTP_RETRIESNoRetries after a timeout, server error or "too many requests"1
ALLOWED_HOSTSNoJSON list of accepted hostnames (DNS rebinding protection)[]
TEXT_MAX_CHARSNoLong field text (e.g. abstracts) is shortened to this in multi-search; shortened fields are listed in each entry300
ANSWER_MAX_CHARSNoLongest answer sent to an app (MCP apps limit how much of one answer they read). Above it, entries are left out and `next_start` gets them; domain lists get shorter descriptions instead30000
MAX_QUERY_LENGTHNoLongest search text accepted500
CACHE_TTL_SECONDSNoHow long identical answers are reused (`0` = off)60
RATE_LIMIT_EXEMPTNoJSON list of addresses or networks never limited: our own test machines[]
EBISEARCH_BASE_URLNoEBI Search REST APIhttps://www.ebi.ac.uk/ebisearch/ws/rest/
MAX_RESPONSE_BYTESNoLargest EBI Search response accepted1000000
CATALOGUE_MAX_BYTESNoLargest domain list accepted (it is several MB)10000000
GET_ENTRIES_MAX_IDSNoMost entry IDs per get-entries call20
RETRY_DELAY_SECONDSNoPause before a retry1
HTTP_TIMEOUT_SECONDSNoTimeout for calls to EBI Search20
CATALOGUE_TTL_SECONDSNoHow long the list of domains (names, descriptions, fields) is reused86400
GET_ENTRIES_MAX_CHARSNoMost text per entries-by-ID call, kept below `ANSWER_MAX_CHARS`; the rest comes in further calls25000
RATE_LIMIT_PER_MINUTENoTool calls one caller (internet address) may make per minute, in each copy of the server; `0` for no limit (dev). See docs/rate-limits.md30
MAX_QUEUE_WAIT_SECONDSNoA call that would wait longer for its turn gets a "busy" answer at once10
MAX_CONCURRENT_REQUESTSNoLimit on simultaneous calls to EBI Search10
TOOL_TIME_LIMIT_SECONDSNoMost time one tool call may take, retries included; well under the ~30 s after which calls through www.ebi.ac.uk got no reply in Nov 2026 tests25
CROSS_REFERENCES_MAX_IDSNoMost entry IDs per cross-references call (fetched in parallel)10
MULTI_SEARCH_MAX_DOMAINSNoMost domains per multi-search10
MULTI_SEARCH_MAX_ENTRIESNoMost entries per domain50
CROSS_REFERENCES_MAX_ENTRIESNoMost linked entries per entry50
MULTI_SEARCH_DEFAULT_ENTRIESNoEntries per domain when not specified10
GLOBAL_SEARCH_TIMEOUT_SECONDSNoTimeout for global search, which can be slow for new words24
GET_ENTRIES_MAX_RESPONSE_BYTESNoLargest EBI Search answer accepted for get-entries10000000
MAX_CONCURRENT_GLOBAL_SEARCHESNoSeparate, lower limit for global searches, the heaviest calls3
MULTI_SEARCH_MAX_TOTAL_ENTRIESNoMost entries per multi-search call200
GLOBAL_SEARCH_CACHE_TTL_SECONDSNoHow long global search counts are reused (6 hours)21600
CROSS_REFERENCES_DEFAULT_ENTRIESNoLinked entries per entry when not specified10
CROSS_REFERENCES_MAX_TOTAL_ENTRIESNoMost linked entries per cross-references call200

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Search EMBL-EBI's biological databases through EBI Search, which calls each database a "domain" (e.g. uniprot, europepmc).

Answer questions about EBI data only from these tools' results, not from prior knowledge: cite the domain and entry IDs, with the links given (never links you build yourself). A database's own citation and licence are on its home page (home_page in release): point there rather than stating them from memory. If the tools return nothing relevant, say so. Search even when the request looks misspelt, unusual or meaningless: it may be a name or ID you do not know, and only EBI Search can tell whether it exists. Ask what the user meant only after searching.

Typical use: ebi_ebisearch_get_matching_domains to see which domains have results, then ebi_ebisearch_get_matching_entries on the domains relevant to the question, then ebi_ebisearch_get_entries_by_id for the full text of the entries needed to answer. Choose domains from ebi_ebisearch_get_matching_domains's results, not from prior knowledge. To find entries related to one you have (e.g. a protein's domains or structures), use ebi_ebisearch_get_cross_references. For the full guide, and a domain's search fields, call ebi_ebisearch_get_instructions.

Each caller may make at most 30 tool calls a minute; above that, a call is refused with the number of seconds to wait. Each tool's description ends with its other limits.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ebi_ebisearch_get_matching_domainsA

Find which EMBL-EBI databases ("domains") have results, and how many.

Search even when the text looks misspelt, unusual or meaningless: it may be a name or ID you do not know, and only EBI Search can tell whether it exists.

Use this first, to see where data exists across EMBL-EBI resources (e.g. UniProt, Europe PMC, PDBe, Ensembl) before searching specific domains with ebi_ebisearch_get_matching_entries. It returns hit counts per domain, with each domain's name, description and category, not the entries themselves. Domains that are not listed have no results, except those in unavailable_domains, which EBI Search could not count this time and may have results. Each domain's id is the name to use when searching that domain.

If EBI Search cannot count hits this time, counts_available is false, the counts are null and unavailable_domains lists every domain. That does not mean there are no results, and searching domains may still work: choose the relevant domains by their descriptions and search them with ebi_ebisearch_get_matching_entries.

Limits: search text up to 500 characters; answers up to 30,000 characters: when longer, domain descriptions are shortened (every domain is still listed); at most 30 tool calls a minute from one caller; above that, wait the seconds the error gives.

ebi_ebisearch_get_matching_entriesA

Get entries from chosen EMBL-EBI databases ("domains"), in parallel.

Use ebi_ebisearch_get_matching_domains first to see which domains have results, then choose the domains relevant to the question by what they contain, not by how many hits they have. Entries are returned best match first, each with an ID, the domain's own fields and a link for citing. What each field means is in that domain's field_descriptions. Long text is shortened; fields_shortened lists which fields, and ebi_ebisearch_get_entries_by_id returns the full text.

Results are partial: total_hits is how many entries match and returned how many are included. If the answer is not in the returned entries, narrow the search, ask for more with next_start, or try another domain; do not conclude that nothing exists. Domains that could not be searched are listed in failures with the reason.

When answering from these entries, name the domain and entry IDs used (e.g. UniProt P42212), with their links.

Limits: up to 10 domains; 10 entries per domain by default, at most 50 (and at most 200 in all, shared between the domains); long text cut to 300 characters; answers up to 30,000 characters: when more entries would not fit, the rest are left out and next_start continues from them; start up to 100,000; search text up to 500 characters; at most 30 tool calls a minute from one caller; above that, wait the seconds the error gives.

ebi_ebisearch_get_entries_by_idA

Get whole entries from one EMBL-EBI database ("domain") by their IDs.

Use this for the few entries needed to answer the question: when ebi_ebisearch_get_matching_entries shortened their text (fields_shortened), or when the question gives an entry ID. Text is never shortened.

Very long answers come in parts. Entries that did not fit are listed in not_included: ask for them in another call. A field whose text continues is listed in the entry's fields_continued: to read on, call again with that entry's ID only, field and start. IDs that do not exist in the domain are listed in not_found. Cross-references to other databases are not included: ebi_ebisearch_get_cross_references follows them.

When answering from these entries, name the domain and entry IDs used (e.g. UniProt P42212), with their links.

Limits: up to 20 IDs; at most 25,000 characters of text in one answer; the rest is listed in not_included or fields_continued; at most 30 tool calls a minute from one caller; above that, wait the seconds the error gives.

ebi_ebisearch_get_cross_referencesA

Follow links from EMBL-EBI entries to related entries in other domains.

Use this for questions about how entries are connected across databases, e.g. a protein's InterPro domains, AlphaFold model or the same protein in other species. Without target_domain, it lists the domains each entry links to, with counts; call again with one of them as target_domain to get the linked entries, each with an ID, the domain's own fields and a link for citing. Long text is shortened; ebi_ebisearch_get_entries_by_id returns the full text.

Links are stored in one direction only, so a domain that is not listed may still have entries linking to these ones. When an entry has no links to target_domain, entries there that mention its ID are returned in mentioned_in instead: likely related, but not confirmed links. Do not conclude that nothing is related. IDs that do not exist are listed in not_found.

When answering from these entries, name the domain and entry IDs used (e.g. UniProt P42212), with their links.

Limits: up to 10 IDs; with target_domain, 10 linked entries per entry by default, at most 50 (and at most 200 in all); answers up to 30,000 characters: when more entries would not fit, the rest are left out and next_start continues from them; at most 30 tool calls a minute from one caller; above that, wait the seconds the error gives.

ebi_ebisearch_get_instructionsA

How to use the EBI Search tools: which to call first, how to write searches, how to get more results, what the answers and errors mean, and how to cite.

Call this when unsure how to use the tools. With domain, it also lists the fields that domain can be searched by (e.g. TAXONOMY:9606), with what each means, so field names need not be guessed.

Limits: at most 30 tool calls a minute from one caller; above that, wait the seconds the error gives.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.5/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct role: domain discovery, cross-domain search, full-entry retrieval by ID, cross-reference traversal, and usage help. The descriptions explicitly chain them (domains first, then entries, then by-id or cross-references), so an agent can pick the right tool without guessing.

Naming Consistency5/5

All five tools share the `ebi_ebisearch_` namespace followed by a predictable `get_<noun>` snake_case pattern (matching_domains, matching_entries, entries_by_id, cross_references, instructions). No mixed conventions or verb styles.

Tool Count5/5

Five tools map cleanly onto the read-only search lifecycle: discover, search, fetch full records, follow links, and get guidance. Nothing feels redundant or padded for a search-API facade.

Completeness4/5

The read-only surface is well covered end to end, including pagination hints, failure reporting, and a help tool that exposes per-domain searchable fields. The only minor gap is the absence of a standalone way to enumerate all domains without supplying search text, though field/domain info is reachable via the instructions tool.

Maintenance

ActivityActive
ResponsivenessNo recent community issues