Skip to main content
Glama
ebi-search

ebi-search

Official
by ebi-wp

ebisearch-mcp

An MCP server, named ebi-search, that gives AI agents access to EBI Search.

Code: public at https://github.com/ebi-wp/ebisearch-mcp, a read-only mirror of EBI's GitLab, where it is developed (https://gitlab.ebi.ac.uk/ebi-wp/ebisearch-mcp).

Status: early development. Tools available: ebi_ebisearch_get_matching_domains, ebi_ebisearch_get_matching_entries, ebi_ebisearch_get_entries_by_id, ebi_ebisearch_get_cross_references and ebi_ebisearch_get_instructions.

Tools

Tool

What it does

ebi_ebisearch_get_matching_domains

Finds which EBI Search domains have results for a search, and how many. Returns every domain with hits (most first, with its name, description and category), plus any domains EBI Search could not count at that moment. If EBI Search cannot count at all, it lists every domain (without counts) to choose from by description.

ebi_ebisearch_get_matching_entries

Gets entries from 1–10 chosen domains, searched in parallel: each entry has an ID, the domain's own fields (with EBI Search's description of each field) and a link. Long text is shortened and marked. Supports paging (start), more entries per domain when needed, and reports domains that could not be searched alongside the results.

ebi_ebisearch_get_entries_by_id

Gets whole entries from one domain by ID, with full text. Very long answers come in parts: entries that did not fit are listed in not_included, and a long field says where it continues, so it can be read to the end (field, start). Reports IDs that do not exist.

ebi_ebisearch_get_cross_references

Follows links from 1–10 entries to related entries in other domains (e.g. a protein's InterPro domains or AlphaFold model). Without a target domain, lists the linked domains with counts; with one, returns the linked entries as previews, with paging. EBI Search stores links one way only, so when an entry has no links to the target domain, entries there that mention its ID are returned separately as mentioned_in. Reports IDs that do not exist.

ebi_ebisearch_get_instructions

How to use the tools: which to call first, how to write searches, getting more results, what answers and error codes mean, how to cite, and the limits. With a domain, also lists the fields it can be searched by (e.g. TAXONOMY:9606), with what each means. For AI apps that ignore the server's instructions (WG guidelines §4.3).

All are read-only, and every name follows the WG guidelines' pattern: institute (ebi_), service (ebisearch_), then a verb and what it acts on (get_matching_domains). The suggested flow is matching domains, then matching entries in the domains relevant to the question, then entries by ID for the full text of the entries needed to answer, and cross-references to follow links between entries. The server instructs AI clients to answer only from these results and cite entry IDs. Calls to EBI Search that time out or fail on EBI's side are retried automatically.

Which ID forms the tools accept and return, including the prefixed IDs (CURIEs) such as uniprot:P42212, is listed in docs/identifiers.md. What the server depends on, who runs each part, and how EBI Search is protected is in docs/dependencies.md. What each tool returns when nothing matches, when IDs do not exist, and when part or all of a call fails, is in docs/outcomes.md.

Built with Python 3.14, uv and the official MCP Python SDK (MCPServer, formerly FastMCP), following the EMBL-EBI MCP Guidelines Working Group recommendations.

Related MCP server: PubTator 3 MCP

Quick start

Requires uv. From the project folder:

uv sync                  # install everything into .venv
uv run ebisearch-mcp     # start the server

The server listens on http://127.0.0.1:8000:

Path

Purpose

/mcp

MCP endpoint for MCP apps

/mcp/health

Health check (used by Kubernetes)

Connecting an MCP app

The server is live at:

https://www.ebi.ac.uk/ebisearch/mcp

Any MCP app (client) can use it as a remote server with the Streamable HTTP transport; no account or key is needed. Most apps take a JSON block like this in their MCP settings (the exact key names, e.g. mcpServers or servers, and whether a "type": "http" line is needed, vary between apps; see the app's documentation):

{
  "mcpServers": {
    "ebi-search": {
      "url": "https://www.ebi.ac.uk/ebisearch/mcp"
    }
  }
}

To use a copy running on your own computer instead, either point the app at it while it runs over HTTP ("url": "http://127.0.0.1:8000/mcp"), or let the app start it over stdio:

{
  "mcpServers": {
    "ebi-search": {
      "command": "uv",
      "args": ["--directory", "/path/to/ebisearch-mcp", "run", "ebisearch-mcp"],
      "env": { "TRANSPORT": "stdio" }
    }
  }
}

Running in Docker

docker compose up --build

This runs the production image locally, with the same security restrictions as on Kubernetes (non-root, read-only file system, no extra privileges). If port 8000 is already in use on your machine, change the first number in ports: in docker-compose.yml, e.g. "127.0.0.1:8001:8000".

Configuration

All settings are environment variables, validated at startup by config.py; an invalid value stops the server with a clear error. For local overrides, copy .env.example to .env (never committed). Settings named GLOBAL_SEARCH_… are for ebi_ebisearch_get_matching_domains, and MULTI_SEARCH_… for ebi_ebisearch_get_matching_entries: they keep the tools' old names, so that no deployment has to change.

Setting

Default

Meaning

ENVIRONMENT

dev

dev, test or prod; tags every log line

LOG_LEVEL

INFO

DEBUG, INFO, WARNING or ERROR

TRANSPORT

streamable-http

streamable-http (web) or stdio (local clients)

HOST, PORT

127.0.0.1, 8000

Where the server listens

MCP_PATH

/mcp

MCP endpoint path, e.g. /ebisearch/mcp; health check at <MCP_PATH>/health

ALLOWED_HOSTS

[]

JSON list of accepted hostnames (DNS rebinding protection)

EBISEARCH_BASE_URL

https://www.ebi.ac.uk/ebisearch/ws/rest/

EBI Search REST API

HTTP_TIMEOUT_SECONDS

20

Timeout for calls to EBI Search

GLOBAL_SEARCH_TIMEOUT_SECONDS

24

Timeout for global search, which can be slow for new words

TOOL_TIME_LIMIT_SECONDS

25

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

HTTP_RETRIES

1

Retries after a timeout, server error or "too many requests"

RETRY_DELAY_SECONDS

1

Pause before a retry

MAX_CONCURRENT_REQUESTS

10

Limit on simultaneous calls to EBI Search

MAX_CONCURRENT_GLOBAL_SEARCHES

3

Separate, lower limit for global searches, the heaviest calls

MAX_QUEUE_WAIT_SECONDS

10

A call that would wait longer for its turn gets a "busy" answer at once

RATE_LIMIT_PER_MINUTE

30

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

RATE_LIMIT_EXEMPT

[]

JSON list of addresses or networks never limited: our own test machines

MAX_QUERY_LENGTH

500

Longest search text accepted

MAX_RESPONSE_BYTES

1000000

Largest EBI Search response accepted

ANSWER_MAX_CHARS

30000

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

CACHE_TTL_SECONDS

60

How long identical answers are reused (0 = off)

GLOBAL_SEARCH_CACHE_TTL_SECONDS

21600

How long global search counts are reused (6 hours)

CATALOGUE_TTL_SECONDS

86400

How long the list of domains (names, descriptions, fields) is reused

CATALOGUE_MAX_BYTES

10000000

Largest domain list accepted (it is several MB)

MULTI_SEARCH_MAX_DOMAINS

10

Most domains per multi-search

MULTI_SEARCH_DEFAULT_ENTRIES

10

Entries per domain when not specified

MULTI_SEARCH_MAX_ENTRIES

50

Most entries per domain

MULTI_SEARCH_MAX_TOTAL_ENTRIES

200

Most entries per multi-search call

TEXT_MAX_CHARS

300

Long field text (e.g. abstracts) is shortened to this in multi-search; shortened fields are listed in each entry

GET_ENTRIES_MAX_IDS

20

Most entry IDs per get-entries call

GET_ENTRIES_MAX_CHARS

25000

Most text per entries-by-ID call, kept below ANSWER_MAX_CHARS; the rest comes in further calls

GET_ENTRIES_MAX_RESPONSE_BYTES

10000000

Largest EBI Search answer accepted for get-entries

CROSS_REFERENCES_MAX_IDS

10

Most entry IDs per cross-references call (fetched in parallel)

CROSS_REFERENCES_DEFAULT_ENTRIES

10

Linked entries per entry when not specified

CROSS_REFERENCES_MAX_ENTRIES

50

Most linked entries per entry

CROSS_REFERENCES_MAX_TOTAL_ENTRIES

200

Most linked entries per cross-references call

Project layout

src/ebisearch_mcp/
├── __main__.py        start-up: settings → logging → server (stdio or HTTP)
├── config.py          all settings, validated
├── observability.py   JSON logging to stderr; one log line per tool call
├── server.py          the MCP server, the health check, and the HTTP app
├── client.py          talks to EBI Search (no MCP code, reusable on its own)
├── exceptions.py      named errors for EBI Search problems
├── helpers/           small text helpers (clean HTML, shorten long text)
├── models/            shapes of the data the tools return, and how EBI answers become them
└── tools/             one file per MCP tool
tests/                 mirrors src/; EBI Search is never called in normal test runs
benchmarks/            never part of the image:
  levels/              one folder per level (protocol/, service/, agent/) with its runner and results
  dashboard/           the page showing every saved result (see Dashboard below)
deploy/ebisearch-mcp/  Helm chart for dev, test and prod
gitlab-ci/             CI helper scripts (versioning)

client.py, exceptions.py, models/ and helpers/ never import MCP code, so the EBI Search logic can be tested and reused independently of MCP.

Development

uv run pytest               # run the tests
uv run ruff check           # check the code for problems
uv run ruff format          # format the code
uv audit --locked --preview-features audit-command   # check dependencies for known vulnerabilities
uv run python benchmarks/levels/protocol/run_conformance.py   # MCP conformance test plus calls to each tool on the real EBI Search; --url https://www.ebi.ac.uk/ebisearch/mcp tests the deployed server
uv run --group benchmark --env-file .env python benchmarks/levels/agent/run_agent.py   # an AI answers the question set with and without the tools, a judge AI marks each answer; needs ANTHROPIC_API_KEY in .env; --keep saves a run to commit; --url tests a deployed server
mkdir -p benchmarks/levels/service/results/local && k6 run benchmarks/levels/service/speed.js   # how fast each tool answers on prod (needs k6, e.g. brew install k6)

Always use uv add, uv sync and uv run, never plain pip, so everything stays inside this project. Commit uv.lock whenever dependencies change.

Benchmark questions

The agent benchmark asks the questions in benchmarks/levels/agent/questions.json (version 3, 93 questions). Most are based on real searches typed on the EBI Search website, taken from its request logs, so the benchmark tests what people actually ask. Each question has a type, so a weak spot shows up as a low score for one type rather than being hidden in the total.

Type

What it tests

simple

A plain gene or protein name, e.g. "What is the human TP53 protein?"

misspelt

A typo that finds little or nothing as typed, e.g. insulinn

known_id

An exact ID from one database, e.g. PDB 4HHB or GO:0006915

entry_name

A UniProt entry name instead of an accession, e.g. P53_HUMAN

known_id_not_found

An ID that looks real but does not exist: the AI must not invent it

no_results

Nonsense that finds nothing: the AI must say so

links_between_entries

Following links between databases, e.g. the Pfam families of a protein

complex

IDs from two databases at once, e.g. Ensembl and HGNC for one gene

very_long

A long, detailed request with several parts

recent_data

Papers newer than the AI's training data

general_knowledge

A question that needs no database

tool_lookup

Looking for a tool rather than data, e.g. Clustal Omega

drug

Drugs and chemicals in ChEMBL and ChEBI

ambiguous_organism

A gene name that exists in several species: the AI must say which one it means

person

Papers by or about a scientist

chat

A conversational message, e.g. "hello": the AI must reply without inventing data

Every question lists the IDs a correct answer must contain (expected_ids), checked against EBI Search on the date in verified_on; ids_needed says whether it needs all of them or any one (when the list gives alternatives). An answer is marked by code when its question lists IDs: it is correct if it names them. The other questions (e.g. "says nothing was found") are marked by a judge AI, which is told today's date and marks the meaning, not the wording. Every answer is correct, incorrect, or not attempted (it said it did not know), so an honest "I don't know" is kept apart from a wrong answer. Each result records whether code or the judge marked it. Databases grow, so these can go out of date; check them again before relying on an old question. To add a question, check its IDs live first, give it the next Q number, and add any new type to tests/test_benchmark_questions.py. When questions are added or changed, raise version, so results from different question sets are never compared by mistake. To run only some questions, pass their IDs, e.g. --questions Q1,Q12,Q35.

Speed test

benchmarks/levels/service/speed.js measures how long each tool takes to answer, with k6. It asks each tool 20 real searches, each twice (160 requests in all), one request at a time with a 1-second pause, to keep the extra load on EBI Search small: dev, test and prod all call the same EBI Search, which other people rely on. It runs against prod by default, because prod is what users get; change it with -e URL=....

For each tool, the result gives the median time (p50: half the requests were faster), the time only 1 request in 20 exceeded (p95) and 1 in 100 (p99), in milliseconds. Each search is asked twice in a row: _first is not in the server's cache, _repeat may be. Prod runs two copies of the server, each with its own cache, so a repeat can still miss it.

Every tool's answer says how long the server took, how much of that it waited for EBI Search and how much it waited in its own queue for a turn to ask EBI Search (source.timing), so each time is split into parts: ebi_search, queue (the server was busy: at most MAX_CONCURRENT_REQUESTS requests, and separately MAX_CONCURRENT_GLOBAL_SEARCHES global searches, go to EBI Search at once), our_server (the server's own work) and network (the rest: the network, the Traffic Manager and the cluster). A slow EBI Search therefore shows up in ebi_search only, never as a slow server, and a busy server in queue, never as a slow EBI Search. Failures are split the same way: failed_ebi_search when our tools report that EBI Search failed, failed_ours for anything else.

In GitLab, the speed_test job runs it by hand from any pipeline, and weekly on a schedule; its results are kept for good (see below).

Load test

benchmarks/levels/service/load.js measures how many people the server can serve at once. The speed test keeps the same 20 searches every week so its runs can be compared; the load test instead picks from about 1,500 searches (searches.txt: our own genes, proteins, organisms, diseases, drugs, tools, topics and IDs, in about the mix people search for on the EBI Search website), so the server's cache rarely helps, as with real traffic.

Each iteration is one AI answer: the tool calls an AI makes for a question, measured in our agent benchmark runs (2.5 calls per answer on average: global search, then a search in the domains it found, sometimes the entries found and their cross-references).

How much load: in the EBI Search website's busiest hour (Kibana, 12-19 Nov 2026), real people searched 1,169 times (0.33 a second), while the website as a whole sent EBI Search 13 requests a second. The tests use the larger number, about 40 times real human traffic, to test the server well past today's use:

Test

What it sends

What it answers

smoke

1 answer a second for 30 seconds

Does the test itself work?

real

20 answers a minute (0.33 a second) for 15 minutes

Can it serve real people's busiest hour today?

load

13 answers a second for 15 minutes

Can it serve a busy hour, 40 times today's?

stress

13, 26, 39, 52, 65 answers a second, 3 minutes each

Where is the limit, and what breaks first?

spike

from 1 to 13 answers a second in 10 seconds

Does it survive a sudden rush?

soak

4 answers a second for 1 hour

Does it slow down or use more memory over time?

A test passes when fewer than 1 request in 100 fails because of us, the server's own work (our_server) takes under 100 ms for 95 requests in 100, and fewer than 1 global search in 10 comes back without hit counts (because the server was busy or EBI Search was too slow). The stress test stops by itself once 1 request in 20 fails, and reports each step separately.

It runs on dev by default, and refuses prod unless -e ALLOW_PROD=1 is given on purpose: real people use prod, and a run there slows them down too. Prod runs 2 copies of the server and dev 1, so only prod shows prod's true numbers; run it there only while hardly anyone uses it. Dev calls the real EBI Search, and each copy of the server sends it at most MAX_CONCURRENT_REQUESTS (10) requests at once. That does not make the load small: in the 19-20 Nov 2026 runs, EBI Search slowed down for its other users while the test ran (in Kibana, 13-14% of their requests took over 10 seconds, against none just before), with only about 2 of our requests a second getting through. So each copy of the server now also sends at most MAX_CONCURRENT_GLOBAL_SEARCHES (3) global searches at once, and a request that would wait longer than MAX_QUEUE_WAIT_SECONDS (10) for its turn gets a quick "busy" answer instead. Busy answers are counted as busy, not as failures: they are the server protecting EBI Search. A busy global search is not turned away: it lists every domain without hit counts, as when EBI Search cannot count, so the test counts global searches answered without counts separately (global_search_no_counts), split by reason. Check Kibana while it runs. It stops by itself within seconds once 100 requests have failed, whatever failed ("busy" answers do not count), so it never keeps adding load to something already broken. Ctrl+C stops it at once. From the project folder:

mkdir -p benchmarks/levels/service/results/local
k6 run -e TEST=smoke benchmarks/levels/service/load.js            # practice run
k6 run -e TEST=load -e KEEP=1 benchmarks/levels/service/load.js   # a run to commit

A long run needs a steady network: on 30 Nov 2026 a laptop lost its connection twice during a real-level run, which spoiled both runs. So it can also run from GitLab: press Run on the load_test job in any pipeline and set LOAD_TEST (default real). The result is in the job's artifacts; to keep it for the dashboard, press Run on save_load_result afterwards (a smoke test is never saved).

While it runs, record the pod's CPU and memory in a second terminal:

while true; do kubectl --context docbot-dev -n ebisearch-mcp-dev top pod --no-headers; sleep 15; done

Whose fault a failure was

Every benchmark separates our server's faults from everything else, so EBI Search being down never shows up as our server failing:

Outcome

Meaning

Counts against our server

Passed

The tool worked

—

Ours

Our server answered wrongly (red on the dashboard)

Yes

EBI Search

EBI Search was down or too slow, and our server said so (amber)

No

No reply

The call ended without a reply from our server, e.g. after about 30 s through www.ebi.ac.uk (cause not confirmed)

No

This is read, not guessed: every tool error carries its cause, machine-readably, in the result's _meta under ebisearch-mcp/cause (ebi_search, request, server or busy), and so does every failed domain or entry in a partial answer (cause); see tools/errors.py. The server answers within TOOL_TIME_LIMIT_SECONDS (25), well under the ~30 s after which calls through www.ebi.ac.uk got no reply in the Nov 2026 runs, so its cause should always come back. "No reply" is recorded as it happened, without a cause, and is not counted against our server; a crash of the whole server would also end a call without a reply, so a run of "no reply" results is worth checking in the server's own log. Results saved before the cause tag are sorted by the same rules from what they recorded.

Every tool error also carries a stable code, more precise than the cause, under ebisearch-mcp/code in _meta (guidelines §6). Clients may act on these codes, so renaming one is a breaking change:

Code

Cause

Meaning

invalid_arguments

request

The arguments do not fit the tool's input schema, e.g. a missing query

unknown_tool

request

No tool has that name; the message lists the tools

invalid_request

request

The arguments fit, but the request is invalid, e.g. an unknown domain or empty search

not_found

request

None of the IDs asked for exist in the domain

rate_limited

request

Too many calls from this caller in the last minute; ebisearch-mcp/retry_after_seconds says how long to wait

ebi_search_rate_limited

ebi_search

EBI Search answered "too many requests"; its wait time, if it gave one, is in ebisearch-mcp/retry_after_seconds

all_failed

the parts' cause

Every domain (get_matching_entries) or every entry (cross-references) failed, so there is no data

ebi_search_unavailable

ebi_search

EBI Search could not be reached or had a server error

ebi_search_timeout

ebi_search

EBI Search did not answer in time

server_busy

busy

Too many requests were waiting for EBI Search, so this one was not sent

unexpected_response

server

EBI Search's answer was not in the expected format

response_too_large

server

EBI Search's answer was larger than allowed

server_error

server

Something else went wrong on this server

Results kept by CI

GitLab CI runs the benchmarks that cost nothing against prod by itself, so their results do not depend on anyone remembering to run them:

Level

Job

When

Protocol

prod_conformance

Weekly (kept); also after every deploy to prod, as a check only

Service

speed_test

Weekly (kept); also by hand from any pipeline, as a check only

Service

load_test

Only by hand, on dev; kept only when save_load_result is pressed too

Conformance and speed results are kept only here; runs on a laptop are practice runs. The agent level and the load test are never run by CI on its own: every agent run costs money (the AI answers and the judge AI marks), and a load test puts heavy load on EBI Search. Official agent runs are committed by hand to main (--keep); load test results are saved by save_load_result, only when pressed.

Each result is added to the benchmark-results branch, in the same folder as on main (e.g. benchmarks/levels/service/results/), so results are kept for good: a job's own copy is deleted after a year. Not main, because a commit there would start a release. The weekly runs come from a pipeline schedule (Build > Pipeline schedules: every Monday at 07:00, London time, on main); a scheduled pipeline never releases or deploys. Saving needs a project access token with write_repository, in the masked CI variable BENCHMARK_RESULTS_TOKEN, and the benchmark-results branch must exist and not be protected. The conformance job in every pipeline is different: it tests each push's own code before it is merged, and its results are not kept.

Dashboard

One page shows every saved result over time: conformance, speed, load tests and agent runs (benchmarks/dashboard/). Each kind of result is read from its one home, and only from commits, so practice runs and uncommitted files never appear:

Results

Home

Conformance, speed, load tests

the benchmark-results branch (saved by CI)

Agent

main (kept by hand)

To build it locally from the current commit and CI's latest results:

git fetch origin benchmark-results
uv run python -m benchmarks.dashboard   # writes build/dashboard/index.html
open build/dashboard/index.html

It is built in four separate parts, each with its own tests (tests/dashboard/): sources.py reads the files from Git, results.py checks each against a typed model for its kind (reading older formats too), summary.py turns them into what the page shows, and page.py writes the page. The page draws its charts in the browser with Chart.js 4.4.7, kept in web/vendor/ so nothing is loaded from other sites. A result file that cannot be read is skipped, named in a warning on the page, and the rest is still built.

Every section is drawn from whatever results exist, one or many; a section with none says so in place of its chart. Light or dark follows the system setting, and the switch in the page's header overrides it (remembered in that browser only). Every chart has a "Show table" view with all its values, 20 runs a page; the conformance strip shows the last 10 runs.

Branches, commits and versions

Following the DocBot conventions:

  • Branch: SEAR-123_Short_description

  • Commit: <type>: SEAR-123: What changed

The type decides the next release version when a merge request reaches main:

Type

Example

Version change

feat!:

feat!: SEAR-30: Rename tool

major (1.4.2 → 2.0.0)

feat:

feat: SEAR-3: Add global search tool

minor (1.4.2 → 1.5.0)

patch:

patch: SEAR-20: Fix timeout handling

patch (1.4.2 → 1.4.3)

What counts is the merge request's title: GitLab copies it into the merge commit, and that is the commit CI reads (see gitlab-ci/bump-version.sh). So give every merge request a title in the same form, e.g. feat: SEAR-48: Give every tool error a code. A title without a type, such as GitLab's default made from the branch name, counts as feat:.

Changelog. Every merge request adds what it changes for users to CHANGELOG.md, under ## Unreleased, in plain words. After the release, the next merge request renames that heading to the version and date (e.g. ## 0.28.0 — 2026-12-03, from the tags page) and starts a new ## Unreleased. A change that breaks existing clients (feat!:) says so in the changelog and follows the breaking-changes policy below.

Breaking changes

Clients and AI apps depend on the tools' names, inputs and answers, so these never change overnight (WG guidelines §7).

What counts as breaking: removing or renaming a tool, an argument, a field in an answer or an error code; changing what one of them means or its type; making an optional argument required; or lowering a limit (e.g. fewer IDs per call). Not breaking: adding a tool, an optional argument, a field in an answer or an error code; raising a limit; rewording a description or message.

How a breaking change is made:

  1. Announce it. Add the new form alongside the old one, in a feat: release. The changelog lists the old form under ### Deprecated, with what replaces it and the date it will be removed. The old tool or argument says it is deprecated in its description, so AI apps see it too.

  2. Keep both for at least 3 months. Both forms work. The server's logs show whether the old form is still used.

  3. Remove the old form, in a feat!: release (a new major version). The changelog lists it under ### Removed.

CI/CD

Defined in .gitlab-ci.yml.

When

Jobs

Every push and MR

lint and format check, tests, dependency audit, secret detection, image build check, dashboard page and image build check

Merge to main

work out version → build and push image → scan image (fails on fixable HIGH/CRITICAL issues) → tag release → deploy; then the dashboard is rebuilt and deployed

Weekly schedule

speed and conformance tests on prod → save results → rebuild and deploy the dashboard (never releases or deploys the server)

Images are published as dockerhub.ebi.ac.uk/ebi-wp/ebisearch-mcp:<version> and are always referenced by version, never latest. Image builds run on runners tagged dind. The dashboard's image changes with its data, not with releases, so it is published as dockerhub.ebi.ac.uk/ebi-wp/ebisearch-mcp/dashboard:p<pipeline ID>.

Deployment

The Helm chart in deploy/ebisearch-mcp has one values file per environment:

Environment

Namespace

Public MCP endpoint

dev

ebisearch-mcp-dev

https://wwwdev.ebi.ac.uk/ebisearch/mcp

test

ebisearch-mcp-test

https://wwwint.ebi.ac.uk/ebisearch/mcp

prod

ebisearch-mcp-prod

https://www.ebi.ac.uk/ebisearch/mcp

The pods run as non-root with a read-only file system, no extra Linux capabilities, CPU and memory limits, and health checks. The chart refuses to deploy without a version (image.tag).

The benchmark dashboard (see "Dashboard" above) has its own chart, deploy/ebisearch-mcp-dashboard, and is deployed in the same namespaces, next to the server, at <host>/ebisearch/mcp/benchmarks/dashboard/ (e.g. https://www.ebi.ac.uk/ebisearch/mcp/benchmarks/dashboard/), with a health check at /ebisearch/mcp/benchmarks/dashboard/health. It is a static page served by unprivileged nginx (benchmarks/dashboard/image/), with the same security settings as the server and a strict content security policy: the page may only load its own files. EBI's front door already sends /ebisearch/mcp/benchmarks/dashboard to our cluster on www, wwwint and wwwdev (checked 24 Nov 2026: a request to it reached each environment's server), so it needed no change. The cluster's entrance (ingress-nginx) should send that longer path to the dashboard rather than to the server; check this on the first deploy.

How it is deployed

The app runs on the team Kubernetes cluster hh-wp-webadmin-73, the same cluster as DocBot, in its own namespaces.

  • CI deploys every release. After a release on main, the pipeline deploys the new version to dev, then to test, then to prod, as DocBot does. Each step only runs if the one before it passed. Each deploy waits for the health check to pass, and if it does not, Helm puts back the version that was running.

  • CI reaches the cluster through our own GitLab agent, ebisearch-mcp, set up in .gitlab/agents/ebisearch-mcp/config.yaml and running in the namespace gitlab-agent-ebisearch-mcp. It was installed with no cluster-wide rights; its only rights are those in deploy/agent-rbac.yaml, which let it deploy into our three namespaces and nowhere else.

  • The cluster downloads our image with the regcred secret in each namespace. It holds a GitLab deploy token (k8s-regcred, scope read_registry only, no expiry). If it is ever revoked or leaks, create a new one under Settings → Repository → Deploy tokens and replace regcred in each namespace.

To deploy by hand, always name the cluster context and the namespace explicitly:

helm upgrade --install ebisearch-mcp deploy/ebisearch-mcp \
  --kube-context=<cluster context> -n ebisearch-mcp-<env> \
  -f deploy/ebisearch-mcp/values.<env>.yaml \
  --set image.tag=<version>

Contributing

Development happens on GitLab; the GitHub copy is a read-only mirror. How to propose a change: CONTRIBUTING.md.

Licence

The code is under the Apache License 2.0. Data found through the server comes from EBI Search and the databases behind it, under the EMBL-EBI terms of use and each database's own licence (see each answer's source and release).

Available Tools

5 tools
ebi_ebisearch_get_cross_referencesEBI Search: follow links to other domainsA
Read-onlyIdempotent
Inspect

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.

Inputs: ids (required), domain (required), start, target_domain, +1 more. Returns: Links from entries in one domain to entries in other domains.

ebi_ebisearch_get_entries_by_idEBI Search: get whole entries by IDA
Read-onlyIdempotent
Inspect

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.

Inputs: ids (required), domain (required), field, start. Returns: Whole entries from one EBI Search domain.

ebi_ebisearch_get_instructionsEBI Search: how to use these toolsA
Read-onlyIdempotent
Inspect

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.

Inputs: domain. Returns: How to use the EBI Search tools.

ebi_ebisearch_get_matching_domainsEBI Search: where are the results?A
Read-onlyIdempotent
Inspect

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.

Inputs: query (required). Returns: Which EBI Search domains have results for a query, and how many.

ebi_ebisearch_get_matching_entriesEBI Search: get entries from chosen domainsA
Read-onlyIdempotent
Inspect

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.

Inputs: query (required), domains (required), start, entries_per_domain. Returns: Entries from the requested EBI Search domains.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables language models to search biomedical literature, fetch sequences, and follow links across Entrez databases through eleven read-only tools wrapping the nine NCBI Entrez E-utilities. It handles URL building, pacing, redirects, response caps, and API-key redaction so queries can be answered without a browser or scraping.
      11
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to resolve genes, diseases, chemicals, variants and species to normalized ids, search ~36M PubMed abstracts and PMC full texts by free text or entity, and retrieve the machine-extracted relations between them with the supporting sentences and PMIDs. Supports auditing individual relations with full evidence passages and pulling per-article entity annotations with character offsets.
      55 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables searching PubMed and Europe PMC, fetching article metadata and full text from PMC, Europe PMC, or Unpaywall, resolving citations and identifiers, exploring related articles, and grounding queries in MeSH vocabulary. Runs over stdio, local Streamable HTTP, or a hosted endpoint, exposing 11 tools, a database-info resource, and a research-plan prompt.
      9 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables querying scientific entity data — compound records and properties, bioactivity and mechanisms, protein entries and ID mappings, PDB structures, and PubMed metadata — directly from official PubChem, ChEMBL, UniProt, RCSB PDB, and PubMed APIs through 12 tools. Requires no API keys, so agents can retrieve live chemical, protein, structural, and citation records without credentials or quotas.
      31
      323 PyPI
      MIT