David Kimura PRO said 6 months ago :
I haven't tried using ollama yet to consume a MCP. I don't think that they have native support for it, but you may be able to get around that with an additional service that sits in front of ollama so it can call the MCP server. Alternatively, you may be able to hack something together with an ollama TOOL. However, I'd imagine that this could be a bit fragile as it goes a little beyond what the tool was really meant to do. If I understand the MCPHost correctly, it would be the endpoint that you call instead of the ollama server and it should have the ability to make calls to the MCP server and also calls to ollama. It should then give a response back to the service calling it.