ollama-mcp-client

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.

54
4

MCP client using Ollama

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.

Usage

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.

Repository

AN
anjor

anjor/ollama-mcp-client

Created

December 13, 2024

Updated

March 28, 2025

Language

Python

Category

AI