Skip to content

Is interaction with MCP tool possible? #562

@andreamoro

Description

@andreamoro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions