A model context protocol (MCP) server for the EBI Ontology Lookup Service (OLS)
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"ols-mcp-server": {
"env": {},
"args": [
"tool",
"run",
"ols-mcp-server"
],
"command": "uv"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Large Language Models are notoriously bad at working with ontologies, often hallucinating terms or their identifiers. This server provides a reliable way to access and query ontologies, ensuring accurate and up-to-date information.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in education / data
Query and manage PostgreSQL databases directly from AI assistants
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Manage Supabase projects — databases, auth, storage, and edge functions
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP Security Weekly
Get CVE alerts and security updates for Ols Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Large Language Models are notoriously bad at working with ontologies, often hallucinating terms or their identifiers. This server provides a reliable way to access and query ontologies, ensuring accurate and up-to-date information.

This repository contains a Model Context Protocol (MCP) server providing access to the Ontology Lookup Service (OLS) API. This server enables AI assistants to search for and retrieve ontological terms, concepts, and hierarchies from various biological and medical ontologies.
This server is designed to work seamlessly with AI assistants like Claude Desktop, allowing users to query ontologies using natural language. It supports a wide range of ontologies, including Gene Ontology (GO), Human Phenotype Ontology (HP), and many others.

Without (top part of image below) and with mcp server engaged (bottom of figure below):

The OLS MCP Server provides the following tools:
The server works with any ontology available through the EBI Ontology Lookup Service, including:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Clone the repository
git clone https://github.com/seandavi/ols-mcp-server.git
cd ols-mcp-server
# Install dependencies
uv sync
# Install as a tool (optional)
uv tool install .
To use this server with Claude Desktop, add the following configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ols-mcp-server": {
"command": "uv",
"args": [
"tool",
"run",
"ols-mcp-server"
],
"env": {}
}
}
}
If you installed the server as a uv tool, you can use this simpler configuration:
{
"mcpServers": {
"ols-mcp-server": {
"command": "ols-mcp-server",
"args": [],
"env": {}
}
}
}
Once configured with Claude Desktop, you can use natural language to interact with the OLS API:
"Search for terms related to diabetes in the Human Phenotype Ontology"
"Find all terms containing 'apoptosis' in the Gene Ontology"
"Tell me about the Gene Ontology"
"What ontologies are available for chemical compounds?"
"Show me the children of the term 'metabolic process' in GO"
"What are the ancestor terms for HP:0000118?"