ollama-mcp-client

MCP.Pizza Chef: anjor

The ollama-mcp-client is a streamlined MCP client designed to interface with the Ollama API, enabling real-time retrieval and interaction with MCP data. It adheres to the MCP Client protocol specifications, replacing Claude-specific implementations with Ollama API calls. Currently, it supports only stdio transport, making it a simple yet effective tool for developers looking to integrate Ollama-powered MCP workflows. Installation is straightforward via pip in development mode, and usage examples are provided to facilitate quick adoption.

Use This MCP client To

Integrate Ollama API with MCP workflows Retrieve real-time MCP data via stdio transport Develop AI agents using Ollama within MCP framework Test and prototype MCP clients with Ollama backend Replace Claude-specific MCP client code with Ollama

README

MCP client using Ollama

This is a simple MCP client that uses the Ollama API to get the latest MCP data.

It follows the MCP Client docs, but swaps out the Claude specific code for Ollama.

Only supports stdio transport for now.

Usage

Install the package in development mode:

pip install -e .
uv run examples/ollama_example.py /path/to/server.py

ollama-mcp-client FAQ

How do I install the ollama-mcp-client?
Install it in development mode using pip with the command `pip install -e .`.
What transport protocols does ollama-mcp-client support?
Currently, it only supports stdio transport for communication.
Can I use ollama-mcp-client with other MCP servers?
Yes, as long as the server supports MCP protocol and stdio transport, it can work with ollama-mcp-client.
Is ollama-mcp-client compatible with Claude or Gemini?
This client replaces Claude-specific code with Ollama API calls but can be adapted for other LLM providers like Claude and Gemini with modifications.
How do I run an example using ollama-mcp-client?
Use the command `uv run examples/ollama_example.py /path/to/server.py` after installation.
Does ollama-mcp-client support multiple transport methods?
No, it currently supports only stdio transport, but future updates may add more.
Where can I find documentation for building MCP clients?
Refer to the official MCP Client documentation at https://modelcontextprotocol.io/tutorials/building-a-client.