Skip to contents

Connects to the EBI OLS4 Ontology Lookup Service MCP endpoint using mcp-remote as a local stdio-to-Streamable-HTTP bridge, and returns the available tools as ellmer tool objects ready for use in an LLM chat.

Usage

ols4_mcp_tools(url = "https://www.ebi.ac.uk/ols4/api/mcp")

Arguments

url

character(1) URL of the EBI OLS4 MCP endpoint. Defaults to "https://www.ebi.ac.uk/ols4/api/mcp".

Value

a named list of ellmer ToolDef objects, one per tool exposed by the service. Pass directly to an ellmer chat's tool registration, or summarise with ols4_tool_table.

Note

Requires npx and mcp-remote on the system PATH. Install the bridge once with:

npm install -g mcp-remote

The bridge translates stdio MCP (which mcptools speaks) into the Streamable HTTP transport used by the EBI OLS4 endpoint.

Examples

if (interactive()) {
    tools <- ols4_mcp_tools()
    ols4_tool_table(tools)
}