π¦ ollama-mcpo-adapter
About
Adapter to expose MCPO, the MCP-to-OpenAPI proxy server, tools in Ollama-compatible format
Details
- Author
- tappi287
- GitHub stars
- 4
- Downloads
- 392
- Categories
- AI, API
Jump to
- Connects to an existing MCPO instance via host and port
- Optionally launches a MCPO server programmatically with MCPOService
- Discovers MCP tools exposed through OpenAPI and converts them to Ollama tool format
- Reliable server name discovery with a provided MCP config path
- Supports Windows via WIN_NODEJS_NPX_PATH environment variable
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
π¦ ollama-mcpo-adapterCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install with pip install ollama-mcpo-adapter. Then create an OllamaMCPOAdapter instance pointing to a running MCPO server (or launch one with MCPOService) and call list_tools_ollama() to get tool definitions. Pass these tools to an Ollama chat request and use call_tools_from_response() to execute tool calls.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"\ud83e\udd99 ollama-mcpo-adapter": {
"ollama-mcpo-adapter": {
"command": "uvx",
"args": [
"mcpo",
"--port",
"5090",
"--config",
"/path/to/mcp_config.json"
]
}
}
}
}
McpServers
{
"ollama-mcpo-adapter": {
"command": "uvx",
"args": [
"mcpo",
"--port",
"5090",
"--config",
"/path/to/mcp_config.json"
]
}
}
π¦ ollama-mcpo-adapter
Expose MCPO, the MCP-to-OpenAPI proxy server, tools as Ollama-compatible functions using a simple Python adapter and optional runtime service.
---
β¨ Features
- π Connect to a MCPO instance
- βοΈ Launch your own MCPO server programmatically via MCPOService
- π List MCP tools exposed via OpenAPI as Ollama-compatible tool functions
---
π Quickstart
1. Install
pip install ollama-mcpo-adapter
Usage with Existing MCPO Instance
Assuming you have MCPO running like this:uvx mcpo --port 5090 --config /path/to/mcp_config.json
You can get all available functions in Ollama ToolCall format with the adapter:
```python
from ollama_mcpo_adapter import OllamaMCPOAdapter
adapter = OllamaMCPOAdapter(host="localhost", port=5090, config_path="/path/to/mcp_config.json")
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

