Is interaction with MCP tool possible? #290

Open
opened 2026-02-15 16:29:38 -05:00 by yindo · 1 comment
Owner

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.

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.
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#290