mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-20 14:14:26 -04:00
Is interaction with MCP tool possible? #290
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andreamoro on GitHub (Aug 13, 2025).
Feature Request:
Currently, the Ollama Python client does not seem to support consuming remote tools from Model Context Protocol (MCP) servers directly. For workflows requiring LLM tool calling functionality via the MCP protocol (e.g., running tool servers remotely, using MCP stdio or http), users have to rely on external adapters or other community projects rather than native support in this client.
Expected Behavior:
It would be very helpful if the ollama-python library could natively connect to remote MCP servers, discover and invoke tools provided via the MCP protocol, and incorporate those results into LLM responses, similar to how some community adapters do.
@andreamoro commented on GitHub (Aug 24, 2025):
In the meantime this is getting integrated, I've built a wrapper that is available here https://github.com/andreamoro/ollama-fastmcp-wrapper