Explore Virtual Fly Brain data directly through your favourite LLM with the new VFB Model Context Protocol (MCP) tool
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add vfb3-mcp -- python -m google-genai{
"mcpServers": {
"vfb3-mcp": {
"command": "python",
"args": ["-m", "google-genai"]
}
}
}Resumen de MCP Servers
# VFB3-MCP Server
A Model Context Protocol (MCP) server for Virtual Fly Brain (VFB): query *Drosophila melanogaster* neuroanatomy, connectomics, expression and reagent data from Claude, Copilot or any other MCP client.
**Canonical repository:** [VirtualFlyBrain/VFB3-MCP](https://github.com/VirtualFlyBrain/VFB3-MCP) (this one) — maintained by the Virtual Fly Brain team.
**Hosted service:** `https://vfb3-mcp.virtualflybrain.org` — no installation, no API key, no account.
```bash
claude mcp add --transport http virtual-fly-brain https://vfb3-mcp.virtualflybrain.org
```
The earlier copy at `Robbie1977/VFB3-MCP` is archived at v1.3.0 and is not maintained; use this repository and the URL above.
This server provides tools to query VFB data, run queries, and search for terms. In HTTP mode it runs statelessly (no session tracking), so any replica can handle any request and standard load balancing works.
## 🚀 Quick Start
### Use the Live Service (Recommended)
The easiest way to use VFB3-MCP is through our hosted service at `https://vfb3-mcp.virtualflybrain.org`. This requires no installation or setup on your machine.
#### Claude Desktop Setup
1. **Open Claude Desktop** and go to Settings
2. **Navigate to the MCP section**
3. **Add a new MCP server** with these settings:
- **Server Name**: `virtual-fly-brain` (or any name you prefer)
- **Type**: HTTP
- **Server URL**: `https://vfb3-mcp.virtualflybrain.org`
**Configuration JSON** (alternative method):
```json
{
"mcpServers": {
"virtual-fly-brain": {
"type": "http",
"url": "https://vfb3-mcp.virtualflybrain.org",
"tools": ["*"]
}
}
}
```
#### Claude Code Setup
1. **Locate your Claude configuration file**:
- **macOS/Linux**: `~/.claude.json`
- **Windows**: `%USERPROFILE%\.claude.json`
2. **Add the VFB3-MCP server** to your configuration:
```json
{
"mcpServers": {
"virtual-fly-brain": {
"type": "http",
"url": "https://vfb3-mcp.virtualflybrain.org",
"tools": ["*"]
}
}
}
```
3. **Restart Claude Code** for changes to take effect
#### GitHub Copilot Setup
1. **Open VS Code** with GitHub Copilot installed
2. **Open Settings** (`Ctrl/Cmd + ,`)
3. **Search for "MCP"** in the settings search
4. **Find the MCP Servers setting**
5. **Add the server URL**: `https://vfb3-mcp.virtualflybrain.org`
6. **Give it a name** like "Virtual Fly Brain"
**Alternative JSON configuration** (in `mcp.json`):
```json
{
"servers": {
"virtual-fly-brain": {
"type": "http",
"url": "https://vfb3-mcp.virtualflybrain.org"
}
}
}
```
#### Visual Studio Code (with MCP Extension)
1. **Install the MCP extension** for VS Code from the marketplace
2. **Open the Command Palette** (`Ctrl/Cmd + Shift + P`)
3. **Type "MCP: Add server"** and select it
4. **Choose "HTTP"** as the server type
5. **Enter the server details**:
- **Name**: `virtual-fly-brain`
- **URL**: `https://vfb3-mcp.virtualflybrain.org`
6. **Save and restart** VS Code if prompted
#### Other MCP Clients
For any MCP-compatible client that supports HTTP servers:
```json
{
"mcpServers": {
"virtual-fly-brain": {
"type": "http",
"url": "https://vfb3-mcp.virtualflybrain.org",
"tools": ["*"]
}
}
}
```
#### Gemini Setup
To use the Virtual Fly Brain (VFB) Model Context Protocol (MCP) server with Google Gemini, you can connect through custom Python/Node.js clients that support MCP.
**Note**: Direct Gemini web interface integration with MCP is not currently supported. Developer tools are needed to connect the two.
**Option 1: Using Python**
For application development, use the `mcp` and `google-genai` libraries to connect.
Setup: `pip install google-genai mcp`
Implementation: Use a streamable HTTP transport in JSON response mode (e.g. `enableJsonResponse: true`) to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
#### Testing the Connection
Once configured, you can test that VFB3-MCP is working by asking your AI assistant questions like:
**Basic Queries:**
- "Get information about the neuron VFB_jrcv0i43"
- "Search for terms related to medulla in the fly brain"
- "What neurons are in the antennal lobe?"
**Advanced Queries:**
- "Find all neurons that connect to the mushroom body"
- "Show me expression patterns for gene repo"
- "What brain regions are involved in olfactory processing?"
- "Run a connectivity analysis for neuron VFB_00101567"
**Search Examples:**
- "Search for adult neurons in the visual system"
- "Find genes expressed in the central complex"
- "Show me all templates available in VFB"
If you see responses with VirtualFlyBrain data, including neuron names, brain regions, gene expressions, or connectivity information, the setup is successful!
For more detailed usage examples and API calls, see **[examples.md](examples.md)**.
### Example Workflow
1. **Search for a term**: "Search for neurons in the optic lobe"
2. **Get detailed info**: "Get information about VFB_00101567"
3. **Run specific queries**: "Show connectivity for VFB_00101567"
4. **Explore relationships**: "What neurons synapse in the mushroom body?"
## 🛠️ Available Tools
The MCP server exposes the following tools (available to assistants like Claude and Copilot):
- `get_term_info` — Get detailed metadata for a VFB ID
- `run_query` — Run a precomputed analysis query for a VFB ID (see the `Queries` field from `get_term_info`)
- `search_terms` — Search VFB entities by text with filtering / boosting options. This is the same search virtualflybrain.org itself runs
- `list_search_facets` — List the `facets_annotation` type names that `search_terms`' `filter_types` / `exclude_types` / `boost_types` / `demote_types` accept, optionally filtered by substring
- `resolve_entity` — Resolve an unresolved FlyBase-related query string (e.g., `P{VT054895-GAL4.DBD}` or a driver line / cell type label) to VFB/FlyBase IDs and metadata (not the same as VFB term search)
- `resolve_combination` — Resolve an unresolved split-GAL4 combination name or synonym into its component IDs
- `list_connectome_datasets` — List available connectome datasets (e.g., Hemibrain, FAFB)
- `query_connectivity` — Query connectivity across connectome datasets using upstream/downstream filters, returned as a strongest-first page plus a summary computed over every connection found
- `get_predicted_neurotransmitters` — Predicted neurotransmitter(s) for a neuron class (and its subclasses) from per-instance connectome predictions, per instance or aggregated with mean confidence, optionally split by dataset
- `get_known_neurotransmitters` — Known (curated) neurotransmitter(s) for a neuron class and its subclasses, from the ontology classification (no confidence)
- `get_hierarchy` — Traverse the ontology hierarchy for a VFB ID: `part_of` (region/tissue structure) and/or `subclass_of` (cell-type taxonomy), ancestors and/or descendants
## 🛠️ Local Installation
### Prerequisites
- Node.js 18 or higher
- npm or yarn
### Step-by-Step Installation
1. **Clone the repository**:
```bash
git clone https://github.com/VirtualFlyBrain/VFB3-MCP.git
cd VFB3-MCP
```
2. **Install dependencies**:
```bash
npm install
```
3. **Build the project**:
```bash
npm run build
```
4. **Start the server**:
```bash
npm start
```
### Platform-Specific Setup
#### Claude Desktop (Local Development)
For local development with Claude Desktop, add this to your MCP configuration:
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"vfb3-mcp": {
"command": "node",
"args": ["/absolute/path/to/VFB3-MCP/dist/index.js"]
}
}
}
```
#### Claude Code
Add to your `claude.json` file:
```json
{
"mcpServers": {
"vfb3-mcp": {
"command": "node",
"args": ["/absolute/path/to/VFB3-MCP/dist/index.js"]
}
}
}
```
#### Visual Studio Code
1. Install the MCP extension for VS Code
2. Press `Cmd + Shift + P` (macOS) or `Ctrl + Shift + P` (Windows/Linux)
3. Select **MCP: Add server…**
4. Choose **Command** type
5. Enter:
- **Name**: `vfb3-mcp`
- **Command**: `node`
- **Arguments**: `/absolute/path/to/VFB3-MCP/dist/index.js`
#### GitHub Copilot
Configure the MCP server URL in your Copilot settings to point to your local server:
```
http://localhost:3000
```
For HTTP mode testing:
```bash
MCP_MODE=http PORT=3000 node dist/index.js
```
### Docker Installation
**Using Docker Compose** (Recommended):
```bash
docker-compose up --build
```
**Manual Docker Build**:
```bash
# Build the image
docker build -t vfb3-mcp .
# Run the container
docker run -p 3000:3000 vfb3-mcp
```
**Pull Pre-built Image**:
```bash
docker pull virtualflybrain/vfb3-mcp:latest
docker run -p 3000:3000 virtualflybrain/vfb3-mcp:latest
```
## Available Tools
### get_term_info
Retrieve detailed information about VFB terms using their IDs.
**Parameters:**
- `id` (string): VFB ID (e.g., "VFB_jrcv0i43")
- `force_refresh` (boolean, optional): Bypass the response cache and recompute (see `run_query` below for the cost and the whitelisting caveat)
### run_query
Execute predefined queries on VFB data.
**Parameters:**
- `id` (string or array): One or more VFB IDs (e.g., "VFB_00101567")
- `query_type` (string): Query type from the entity's `Queries` array (e.g., "PaintedDomains")
- `queries` (array, optional): `{id, query_type}` pairs for mixed batch queries
- `limit` (number, optional): Max rows per call (default 25). The true total is always returned as `count`; use 0 for all rows (still capped ~25000)
- `offset` (number, optional): Row offset for paging (default 0); re-run with `offset += limit` for the next page
- `include_images` (boolean, optional): Include the `thumbnail` column (default false — it is stripped to save space, and the response `_note` says how to re-add it)
- `force_refLo que la gente pregunta sobre VFB3-MCP
¿Qué es VirtualFlyBrain/VFB3-MCP?
+
VirtualFlyBrain/VFB3-MCP es mcp servers para el ecosistema de Claude AI. Explore Virtual Fly Brain data directly through your favourite LLM with the new VFB Model Context Protocol (MCP) tool Tiene 2 estrellas en GitHub y su última actualización registrada es del 2026-09-10.
¿Cómo se instala VFB3-MCP?
+
Puedes instalar VFB3-MCP clonando el repositorio (https://github.com/VirtualFlyBrain/VFB3-MCP) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar VirtualFlyBrain/VFB3-MCP?
+
Nuestro agente de seguridad ha analizado VirtualFlyBrain/VFB3-MCP y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene VirtualFlyBrain/VFB3-MCP?
+
VirtualFlyBrain/VFB3-MCP es mantenido por VirtualFlyBrain. La última actividad registrada en GitHub es del 2026-09-10, con 1 issues abiertos.
¿Hay alternativas a VFB3-MCP?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega VFB3-MCP en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/virtualflybrain-vfb3-mcp)<a href="https://claudewave.com/repo/virtualflybrain-vfb3-mcp"><img src="https://claudewave.com/api/badge/virtualflybrain-vfb3-mcp" alt="Featured on ClaudeWave: VirtualFlyBrain/VFB3-MCP" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!