This repository provides a basic MCP client implementation that leverages the Ollama API to retrieve MCP data, replacing the original Claude-specific code and currently supporting only stdio transport for communication.
This is a basic MCP client designed to interact with the Ollama API for retrieving up-to-date MCP data.
It's built according to the MCP Client guidelines, but replaces the original Claude-specific implementation with Ollama. This adaptation allows users to leverage Ollama's capabilities within the MCP framework.
Currently, the client supports only the standard input/output (stdio) transport method for communication.
To get started, install the package in development mode using pip:
pip install -e .
After installation, you can run the provided example script using uv
:
uv run examples/ollama_example.py /path/to/server.py
This command executes the ollama_example.py
script, specifying the path to your server implementation (server.py
) for interaction.
anjor/ollama-mcp-client
December 13, 2024
March 28, 2025
Python