MCP server for Drosophila neuroscience data from VirtualFlyBrain
A Model Context Protocol (MCP) server for interacting with VirtualFlyBrain (VFB) APIs. This server provides tools to query VFB data, run queries, and search for terms.
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.
virtual-fly-brain (or any name you prefer)https://vfb3-mcp.virtualflybrain.orgConfiguration JSON (alternative method):
{
"mcpServers": {
"virtual-fly-brain": {
"url": "https://vfb3-mcp.virtualflybrain.org"
}
}
}Locate your Claude configuration file:
~/.claude.json%USERPROFILE%\.claude.jsonAdd the VFB3-MCP server to your configuration:
{
"mcpServers": {
"virtual-fly-brain": {
"url": "https://vfb3-mcp.virtualflybrain.org"
}
}
}Ctrl/Cmd + ,)https://vfb3-mcp.virtualflybrain.orgCtrl/Cmd + Shift + P)virtual-fly-brainhttps://vfb3-mcp.virtualflybrain.orgFor any MCP-compatible client that supports HTTP servers:
{
"mcpServers": {
"virtual-fly-brain": {
"url": "https://vfb3-mcp.virtualflybrain.org",
"type": "http"
}
}
}Once configured, you can test that VFB3-MCP is working by asking your AI assistant to:
If you see responses with VirtualFlyBrain data, the setup is successful!
Clone the repository:
git clone https://github.com/Robbie1977/VFB3-MCP.git
cd VFB3-MCPInstall dependencies:
npm installBuild the project:
npm run buildStart the server:
npm startFor 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
{
"mcpServers": {
"vfb3-mcp": {
"command": "node",
"args": ["/absolute/path/to/VFB3-MCP/dist/index.js"]
}
}
}Add to your claude.json file:
{
"mcpServers": {
"vfb3-mcp": {
"command": "node",
"args": ["/absolute/path/to/VFB3-MCP/dist/index.js"]
}
}
}Cmd + Shift + P (macOS) or Ctrl + Shift + P (Windows/Linux)vfb3-mcpnode/absolute/path/to/VFB3-MCP/dist/index.jsConfigure the MCP server URL in your Copilot settings to point to your local server:
http://localhost:3000
For HTTP mode testing:
MCP_MODE=http PORT=3000 node dist/index.jsUsing Docker Compose (Recommended):
docker-compose up --buildManual Docker Build:
# Build the image
docker build -t vfb3-mcp .
# Run the container
docker run -p 3000:3000 vfb3-mcpPull Pre-built Image:
docker pull virtualflybrain/vfb3-mcp:latest
docker run -p 3000:3000 virtualflybrain/vfb3-mcp:latestRetrieve detailed information about VFB terms using their IDs.
Parameters:
id (string): VFB ID (e.g., "VFB_jrcv0i43")Execute predefined queries on VFB data.
Parameters:
id (string): VFB ID (e.g., "VFB_00101567")query_type (string): Type of query (e.g., "PaintedDomains")Search for VFB terms using the Solr search server.
Parameters:
query (string): Search query (e.g., "medulla")VirtualFlyBrain (VFB) is a comprehensive knowledge base about Drosophila melanogaster neurobiology, providing 3D images, gene expression data, neural connectivity information, and standardized terminology for fly brain research.
MIT