BioOntology MCP Server

BioOntology MCP Server

A production-ready Model Context Protocol (MCP) server that provides comprehensive access to the BioOntology API for searching, annotating, and exploring over 1,200 biological ontologies.

Category
Visit Server

README

Logo

Unofficial BioOntology MCP Server

A production-ready Model Context Protocol (MCP) server that provides comprehensive access to the BioOntology API for searching, annotating, and exploring over 1,200 biological ontologies.

Features

Search & Discovery

  • search_terms - Search across ontology terms with advanced filtering options
  • search_properties - Search ontology properties by labels and IDs
  • search_ontologies - Find ontologies by name, description, or domain
  • get_ontology_info - Get detailed information about specific ontologies

Text Analysis

  • annotate_text - Analyze text and identify relevant ontology terms
  • recommend_ontologies - Get ontology recommendations for text or keywords
  • batch_annotate - Process multiple texts for annotation efficiently

Ontology Navigation

  • get_class_info - Get detailed information about ontology classes

Analytics & Metadata

  • get_ontology_metrics - Get usage statistics and quality metrics
  • get_analytics_data - Get visitor statistics and popularity trends

Installation

  1. Clone or download this server
  2. Install dependencies:
    npm install
    
  3. Build the server:
    npm run build
    

Configuration

You need a BioOntology API key to use this server. Get one from BioPortal:

  1. Create an account at https://bioportal.bioontology.org/
  2. Generate an API key from your account settings
  3. Set the environment variable:
    export BIOONTOLOGY_API_KEY=your_api_key_here
    

Usage

Running the Server

node build/index.js

The server runs on stdio and implements the MCP protocol for communication with MCP-compatible clients.

Resource Templates

The server provides several resource templates for direct data access:

  • bioontology://ontology/{acronym} - Complete ontology information
  • bioontology://class/{ontology}/{class_id} - Ontology class details
  • bioontology://search/{query} - Term search results
  • bioontology://annotations/{text} - Text annotation results
  • bioontology://recommendations/{input} - Ontology recommendations
  • bioontology://analytics/{ontology} - Analytics data

Example Tool Calls

Search for terms:

{
  "tool": "search_terms",
  "arguments": {
    "query": "diabetes",
    "ontologies": "NCIT,DOID",
    "require_definitions": true,
    "pagesize": 10
  }
}

Annotate text:

{
  "tool": "annotate_text",
  "arguments": {
    "text": "The patient has diabetes mellitus and hypertension",
    "ontologies": "NCIT,DOID,HP",
    "longest_only": true
  }
}

Get ontology recommendations:

{
  "tool": "recommend_ontologies",
  "arguments": {
    "input": "cancer treatment protocols",
    "input_type": 1,
    "output_type": 1
  }
}

Batch annotate multiple texts:

{
  "tool": "batch_annotate",
  "arguments": {
    "texts": ["diabetes mellitus", "cardiac arrest", "lung cancer"],
    "ontologies": "NCIT",
    "longest_only": true
  }
}

Supported Ontologies

The server works with all ontologies available in BioPortal (1,200+), including:

Medical/Clinical:

  • NCIT - NCI Thesaurus (cancer terminology)
  • DOID - Disease Ontology
  • HP - Human Phenotype Ontology
  • MESH - Medical Subject Headings

Biological/Chemical:

  • GO - Gene Ontology
  • UBERON - Anatomy ontology
  • CHEBI - Chemical entities of biological interest

And 1,190+ more specialized ontologies

Integration with MCP Clients

This server is compatible with any MCP-enabled client. Popular options include:

  • Claude Desktop - Add to your MCP configuration
  • VSCode Extensions - Use with MCP-compatible extensions
  • Custom Applications - Integrate via the MCP protocol

MCP Configuration Example

Add to your MCP client configuration:

{
  "servers": {
    "bioontology": {
      "command": "node",
      "args": ["/path/to/bioontology-server/build/index.js"],
      "env": {
        "BIOONTOLOGY_API_KEY": "your_api_key_here"
      }
    }
  }
}

Advanced Features

Input Validation

  • Comprehensive parameter validation with proper error messages
  • Type checking for all inputs
  • Range validation for numeric parameters
  • Enum validation for restricted values

Error Handling

  • Graceful handling of API errors
  • Structured error responses
  • Network timeout management
  • Authentication error reporting

Performance

  • Efficient API request handling
  • Proper timeout management
  • Memory usage optimization
  • Concurrent request support

API Documentation

For detailed BioOntology API documentation, see: https://data.bioontology.org/documentation

Production Use

This server has been thoroughly tested and is ready for production use. It provides:

  • Reliable API integration with robust error handling
  • Comprehensive input validation for all tools
  • Full MCP protocol compliance for seamless integration
  • Support for 1,200+ ontologies across all biological domains
  • High performance with optimized response times

License

MIT License - see LICENSE file for details.

Citation

If you use this project in your research or publications, please cite it as follows:

<pre><code>@misc{yourproject2025, author = {Moudather Chelbi}, title = {Augmented Nature BioOntology MCP Server}, year = {2025}, howpublished = {https://github.com/Augmented-Nature/BioOntology-MCP-Server}, }</code></pre>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured