Skip to content

About

FlyBase MCP server: connect AI assistants directly to live Drosophila data from flybase.org

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

322 Commits

Folders and files

Repository files navigation

FlyBase MCP

Connect your AI assistant directly to FlyBase. Ask plain-language questions about Drosophila genes, alleles, stocks, expression, orthologs, genomic regions, BLAST searches, and FlyBase help pages, and get answers backed by live FlyBase data.

No account, API key, or login is required.


Connect your AI assistant

Use the server address https://mcp.flybase.org/mcp in your AI app's connector settings (it is an AI connector address, not a page you open in a web browser). Pick the app you use below.

Claude.ai and Claude Desktop

  1. Open Settings → Connectors and choose Add custom connector.
  2. Paste https://mcp.flybase.org/mcp as the URL and leave the OAuth fields blank.
  3. In any chat, open the + menu under Connectors and turn on FlyBase.

Free plans include one custom connector. On Team and Enterprise plans, an organization owner adds the connector first, then each member enables it. See Anthropic's custom connector guide if the menu layout changes.

ChatGPT

  1. Open chatgpt.com/plugins, click +, and choose Add custom MCP server.
  2. Name it FlyBase, select Public endpoint, enter https://mcp.flybase.org/mcp, and set authentication to None.
  3. Confirm the prompt and choose Create as a plugin. In a new chat, type @ and pick FlyBase.

Workspace policies control whether custom connectors are enabled on shared accounts; older accounts reach the same screen under Settings → Apps (developer mode). See OpenAI's ChatGPT MCP guide.

Claude Code

Inside a Claude Code session:

/plugin marketplace add FlyBase/flybase-mcp
/plugin install flybase@flybase

Or from a terminal:

claude plugin marketplace add FlyBase/flybase-mcp
claude plugin install flybase@flybase

Start a new session and try asking, "What is the FlyBase ID for wingless?" You can check the connection with claude mcp list.

To keep the plugin up to date automatically, open /plugin, select Marketplaces → flybase, and enable auto-update (third-party marketplaces start with auto-update off). FlyBase data releases and new server tools appear automatically whenever your client reconnects; plugin updates only update the client wrapper. Manual update:

claude plugin marketplace update flybase
claude plugin update flybase@flybase
Connecting Claude Code without the plugin (direct URL or project .mcp.json)
claude mcp add --transport http flybase https://mcp.flybase.org/mcp

Add --scope user to enable it across all projects, or --scope project to share it via .mcp.json:

{
  "mcpServers": {
    "flybase": {
      "type": "http",
      "url": "https://mcp.flybase.org/mcp"
    }
  }
}

For a one-off command-line run, save that JSON as flybase.json and pass the prompt before --allowedTools:

claude -p "What is the FlyBase ID for wingless?" --mcp-config flybase.json --allowedTools "mcp__flybase__*"

Codex

Install the plugin from FlyBase's marketplace (Codex plugin guide):

codex plugin marketplace add https://github.com/FlyBase/flybase-mcp.git
codex plugin add flybase@flybase
codex mcp list

To update later, run codex plugin marketplace upgrade flybase, then codex plugin add flybase@flybase, and start a new session.

Direct Codex configuration (codex mcp add or ~/.codex/config.toml)
codex mcp add flybase --url https://mcp.flybase.org/mcp

Or add to ~/.codex/config.toml:

[mcp_servers.flybase]
url = "https://mcp.flybase.org/mcp"

For non-interactive codex exec runs, all FlyBase tools are read-only (blast_submit only starts a BLAST job), so you can add default_tools_approval_mode = "approve" under [mcp_servers.flybase].

Google Antigravity

agy plugin install https://github.com/FlyBase/flybase-mcp/tree/master/plugins/flybase
agy plugin list

Re-run the install command to refresh to the latest version. For a direct connection instead, run agy mcp add --type http flybase https://mcp.flybase.org/mcp. See the Google Antigravity plugin guide.

Any other MCP client

Setting Value
URL https://mcp.flybase.org/mcp
Transport Streamable HTTP (POST)
Authentication None

Featured use case: checking a manuscript for FlyBase IDs and stock numbers

One of the most useful things you can do with the FlyBase MCP server is run a draft Materials and Methods section or Key Resources Table through your assistant before submitting a paper.

Looking up official gene symbols, allele IDs, transgenic insertion IDs, and Bloomington/Kyoto/VDRC stock genotypes by hand is tedious, and informal lab shorthand (like nub-GAL4 or UAS-yki.RNAi) is easy to mix up or leave incomplete. Passing your reagent list through FlyBase takes a few seconds, catches discrepancies before peer review, and helps FlyBase curators link your published work accurately and much faster.

Example prompt

I'm putting together the Key Resources Table for our manuscript. Please look up the official FlyBase IDs, symbols, and stock genotypes for the flies and genes in this paragraph:

"For wing imaginal disc experiments, we crossed nub-GAL4 (BDSC 25754) to UAS-yki.RNAi (BDSC 34067) or UAS-mCD8::GFP (BDSC 5137). For mutant clone analysis we used wts[x1] (BDSC 44251) and w[1118] controls."

What FlyBase returns

Reagent in draft FlyBase Stock ID Official Stock Genotype Key FlyBase IDs
nub-GAL4 (BDSC 25754) FBst0025754 P{w[+mC]=UAS-Dcr-2.D}1, w[1118]; P{w[+mW.hs]=GawB}nub-AC-62 FBti0016825 (P{GawB}nub-AC-62), FBti0101430 (P{UAS-Dcr-2.D}1), FBal0018186 (w[1118])
UAS-yki.RNAi (BDSC 34067) FBst0034067 y[1] v[1]; P{y[+t7.7] v[+t1.8]=TRiP.HMS00041}attP2 FBti0144692 (P{TRiP.HMS00041}attP2), FBtp0068765, gene yki (FBgn0034970)
UAS-mCD8::GFP (BDSC 5137) FBst0005137 y[1] w[*]; P{w[+mC]=UAS-mCD8::GFP.L}LL5, P{UAS-mCD8::GFP.L}2 FBti0012685, FBti0180511
wts[x1] (BDSC 44251) FBst0044251 w[*]; wts[x1] P{ry[+t7.2]=neoFRT}82B/TM6B, Tb[1] FBal0044527 (wts[x1]), gene wts (FBgn0011739), FBti0002074 (P{neoFRT}82B), FBba0000690 (TM6B)
w[1118] — Background allele FBal0018186 (w[1118])

Two real details this check caught right away:

  • Looking up BDSC 25754 surfaced P{UAS-Dcr-2.D}1 on the X chromosome alongside nub-GAL4, a stock component that is easy to forget in Methods.
  • Resolving nub-GAL4 through its stock number pulled the exact insertion (P{GawB}nub-AC-62, FBti0016825) rather than guessing from similar allele names.

You can also paste a list of gene symbols or older IDs from an analysis script and ask your assistant to validate them against the current FlyBase release and flag any renamed, split, or ambiguous identifiers.


Other things you can ask

Ask in plain language:

  • "What is the best human ortholog of wingless?"
  • "Which genes are highly expressed in adult testis but off in the ovary?"
  • "What genes and aberrations are in cytological band 89D?"
  • "I need a GAL4 driver for wingless. What stocks can I order?"
  • "BLAST this protein fragment against D. melanogaster polypeptides and tell me what it is."

For more tested prompts and real outputs across every capability, see docs/examples.md. For the complete tool catalog (gene, allele, and stock reports, ID validation, batch downloads, genomic sequences and R5/R6 coordinates, ontologies, orthologs, disease models, interactions, RNA-seq expression, BLAST, and FlyBase wiki help pages), see docs/tools.md.


Getting help and feedback

If something isn't working, you get stuck, you'd like to request a new tool or capability, or you just want to let us know how you're using the MCP server, send us a note through FlyBase Helpmail (that link pre-selects MCP server in the Subject dropdown; if you open https://flybase.org/contact/email directly, choose MCP server under Subject). You can also check status.flybase.org for live service status.


Privacy and telemetry

The public server at https://mcp.flybase.org/mcp runs stateless over HTTPS and sets no cookies or client-side storage.

  • Aggregate usage metrics: The server counts tool calls, outcomes (ok or bounded error codes), truncation and partial-report flags, response latency, HTTP status codes, and MCP initialize handshakes bucketed into recognized client families, coarse major versions (0.x–5.x), and protocol revisions. Metrics never store user IDs, session IDs, IP addresses, research questions, tool arguments, or sequences.
  • Scrubbed error capture: Unexpected server faults (panics, database failures, or upstream outages) may be reported to a self-hosted FlyBase error tracker with only the server release, data release, tool name, error class, and stack frames. Request bodies, headers, IP addresses, query text, sequences, and BLAST job tokens are stripped before transmission. Expected validation errors are counted only in aggregate metrics.
  • Local capability discovery: find_capabilities runs 100% locally inside the FlyBase MCP server using an embedded catalog and local ONNX text embeddings. Discovery queries are never sent to any external AI provider or third-party search service, and are not logged or stored.
  • Edge security logs: FlyBase's CDN, WAF, and edge proxy enforce rate limits and abuse protection using network metadata under standard FlyBase web operations and bounded retention.

For developers

  • mcp/: hosted FlyBase MCP server (Rust). See mcp/README.md and docs/deployment.md.
  • plugins/flybase/: FlyBase plugin package for Claude Code, Codex, and Google Antigravity.
  • blast-jobs/: standalone Rust wrapper around NCBI BLAST+ 2.17.0. See docs/blast-jobs.md.
  • fixture/: local PostgreSQL test fixture and integration test suite. See fixture/README.md.
  • docs/handoff-private-side.md: host infrastructure requirements for deploying a FlyBase MCP instance.
  • Retired tools note: quick_search, quick_search_suggestions, and query_records have been retired; use search, resolve, validate_ids, get_report, and batch_download instead.
Quick curl test against the public JSON-RPC endpoint

initialize is optional, so a bare tools/call works:

curl -s https://mcp.flybase.org/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"resolve","arguments":{"query":"wingless"}}}'

Licence

The code in this repository is under the MIT License; see LICENSE. The bundled release 5 to 6 coordinate map, mcp/data/coordinates/dmel_r5_to_r6.tsv, is derived from FlyBase's published map and carries its BSD-3-Clause notice in mcp/data/coordinates/LICENSE.bulkfile-scripts.

About

FlyBase MCP server: connect AI assistants directly to live Drosophila data from flybase.org

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages