πŸ¦™ ollama-mcpo-adapter

by tappi287

4 stars
392 downloads
Not rated
GitHub

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

- 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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name πŸ¦™ ollama-mcpo-adapter
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. 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")

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.