ebi-search
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Where the server listens (host) | 127.0.0.1 |
| PORT | No | Where the server listens (port) | 8000 |
| MCP_PATH | No | MCP endpoint path, e.g. `/ebisearch/mcp`; health check at `<MCP_PATH>/health` | /mcp |
| LOG_LEVEL | No | `DEBUG`, `INFO`, `WARNING` or `ERROR` | INFO |
| TRANSPORT | No | `streamable-http` (web) or `stdio` (local clients) | streamable-http |
| ENVIRONMENT | No | `dev`, `test` or `prod`; tags every log line | dev |
| HTTP_RETRIES | No | Retries after a timeout, server error or "too many requests" | 1 |
| ALLOWED_HOSTS | No | JSON list of accepted hostnames (DNS rebinding protection) | [] |
| TEXT_MAX_CHARS | No | Long field text (e.g. abstracts) is shortened to this in multi-search; shortened fields are listed in each entry | 300 |
| ANSWER_MAX_CHARS | No | Longest 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 instead | 30000 |
| MAX_QUERY_LENGTH | No | Longest search text accepted | 500 |
| CACHE_TTL_SECONDS | No | How long identical answers are reused (`0` = off) | 60 |
| RATE_LIMIT_EXEMPT | No | JSON list of addresses or networks never limited: our own test machines | [] |
| EBISEARCH_BASE_URL | No | EBI Search REST API | https://www.ebi.ac.uk/ebisearch/ws/rest/ |
| MAX_RESPONSE_BYTES | No | Largest EBI Search response accepted | 1000000 |
| CATALOGUE_MAX_BYTES | No | Largest domain list accepted (it is several MB) | 10000000 |
| GET_ENTRIES_MAX_IDS | No | Most entry IDs per get-entries call | 20 |
| RETRY_DELAY_SECONDS | No | Pause before a retry | 1 |
| HTTP_TIMEOUT_SECONDS | No | Timeout for calls to EBI Search | 20 |
| CATALOGUE_TTL_SECONDS | No | How long the list of domains (names, descriptions, fields) is reused | 86400 |
| GET_ENTRIES_MAX_CHARS | No | Most text per entries-by-ID call, kept below `ANSWER_MAX_CHARS`; the rest comes in further calls | 25000 |
| RATE_LIMIT_PER_MINUTE | No | Tool calls one caller (internet address) may make per minute, in each copy of the server; `0` for no limit (dev). See docs/rate-limits.md | 30 |
| MAX_QUEUE_WAIT_SECONDS | No | A call that would wait longer for its turn gets a "busy" answer at once | 10 |
| MAX_CONCURRENT_REQUESTS | No | Limit on simultaneous calls to EBI Search | 10 |
| TOOL_TIME_LIMIT_SECONDS | No | Most 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 tests | 25 |
| CROSS_REFERENCES_MAX_IDS | No | Most entry IDs per cross-references call (fetched in parallel) | 10 |
| MULTI_SEARCH_MAX_DOMAINS | No | Most domains per multi-search | 10 |
| MULTI_SEARCH_MAX_ENTRIES | No | Most entries per domain | 50 |
| CROSS_REFERENCES_MAX_ENTRIES | No | Most linked entries per entry | 50 |
| MULTI_SEARCH_DEFAULT_ENTRIES | No | Entries per domain when not specified | 10 |
| GLOBAL_SEARCH_TIMEOUT_SECONDS | No | Timeout for global search, which can be slow for new words | 24 |
| GET_ENTRIES_MAX_RESPONSE_BYTES | No | Largest EBI Search answer accepted for get-entries | 10000000 |
| MAX_CONCURRENT_GLOBAL_SEARCHES | No | Separate, lower limit for global searches, the heaviest calls | 3 |
| MULTI_SEARCH_MAX_TOTAL_ENTRIES | No | Most entries per multi-search call | 200 |
| GLOBAL_SEARCH_CACHE_TTL_SECONDS | No | How long global search counts are reused (6 hours) | 21600 |
| CROSS_REFERENCES_DEFAULT_ENTRIES | No | Linked entries per entry when not specified | 10 |
| CROSS_REFERENCES_MAX_TOTAL_ENTRIES | No | Most linked entries per cross-references call | 200 |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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 If EBI Search cannot count hits this time, 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 Results are partial: 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 |
| 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 ( Very long answers come in parts. Entries that did not fit are listed in
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 |
| 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 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 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 |
| 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 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
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.
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.
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.
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.