MCP Ollama Consult Server
This MCP server enables AI agents to consult with multiple Ollama models for diverse perspectives, collaborative reasoning, and persistent memory management.
Core Capabilities:
Consult Individual Models - Send prompts to specific Ollama models with optional system prompts for guided reasoning
List Available Models - Discover all models available on your local or remote Ollama instance
Compare Multiple Models - Run identical prompts against multiple models simultaneously for side-by-side output comparisons
Sequential Reasoning Chains - Execute complex multi-step workflows where subsequent consultations build upon previous results
Persistent Memory Storage - Save consultation results (key, prompt, model, response) to configured memory services or local file storage for cross-session retrieval
Timeout Management - Configure specific time limits (60-600 seconds) for complex reasoning tasks without losing context
Flexible Integration - Works with any MCP-compatible client (like Claude Desktop) through the Model Context Protocol
Enables consulting with Ollama models for alternative reasoning viewpoints, with tools for sending prompts to models and listing available models on the Ollama instance.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Ollama Consult Server compare llama3 and mistral on how to improve team collaboration"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Ollama Consult Server
An MCP (Model Context Protocol) server that allows consulting with Ollama models for reasoning from alternative viewpoints.
Features
consult_ollama: Send prompts to Ollama models and get responses
list_ollama_models: List available models on the local Ollama instance
compare_ollama_models: Run the ame prompt against multiple Ollama models and return their outputs side-by-side for comparison
remember_consult: Store the result of a consult into a local memory store (or configured memory service)
Related MCP server: MCP Ollama
Installation
Install the server:
npm i -g https://github.com/Atomic-Germ/mcp-consult/releases/download/v1.0.1/mcp-ollama-consult-1.0.1.tgzConfigure the server:
{ "servers": { "ollama-consult": { "type": "stdio", "command": "mcp-ollama-consult", "args": [] } }, "inputs": [] }
Usage
Make sure Ollama is running locally (default: (http://localhost:11434).
Start the MCP server:
mcp-ollama-consultOr for development:
npm run devConfiguration
Set the OLLAMA_BASE_URL environment variable to change the Ollama endpoint:
OLLAMA_BASE_URL=http://your-ollama-server:11434 npm startDocker
To run with Docker, build the image:
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY dist/ ./dist/
CMD ["node", "dist/index.js"]Requirements
Node.js 18+
Ollama running locally or accessible via HTTP
Available Tools
5 toolscompare_ollama_responsesB
Compare responses from multiple Ollama models on the same prompt to get diverse perspectives
Inputs: prompt (required), models, context.
consult_ollamaB
Consult with Ollama AI models for architectural decisions, code reviews, and design discussions. Supports sequential chaining of consultations for complex multi-step reasoning.
Inputs: prompt (required), consultation_type, model, system_prompt, +4 more.
list_ollama_modelsA
List all available Ollama models on the local system (installed or cloud-based)
Inputs: no named parameters.
remember_contextB
Store context for use in future consultations within the same session
Inputs: key (required), value (required), metadata.
sequential_consultation_chainB
Run a sequence of consultations where each consultant builds on previous responses, enabling complex multi-step reasoning.
Inputs: consultants (required), context, flowControl, memory.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The purposes of list_ollama_models and remember_context are distinct, but consult_ollama, compare_ollama_responses, and sequential_consultation_chain heavily overlap. All three involve querying models, differing mainly in whether responses are combined or chained, which could lead to agent confusion.
Tools mostly follow a snake_case verb_noun pattern (list_ollama_models, remember_context, compare_ollama_responses), but 'sequential_consultation_chain' breaks the verb-first pattern with an adjective-noun structure. Also, 'consult_ollama' is a general verb that overlaps with others, making the naming less distinctive.
With only 5 tools, the server is well-scoped and each tool seems to have its place, though the overlap among core consultation tools slightly reduces the necessity of having three separate ones. Still, it's a small, manageable set that fits the server's purpose.
The server covers a typical consultation workflow: listing available models, querying them, comparing responses, chaining consultations, and maintaining context. A minor gap is the lack of a tool to explicitly clear context or manage sessions, which agents might need for long-running interactions.
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for generating rough-draft project plans from natural-language prompts.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables seamless integration between Ollama's local LLM models and MCP-compatible applications, supporting model management and chat interactions.13923 npm178AGPL 3.0
- AlicenseAqualityDmaintenanceIntegrates Ollama's local AI models with MCP clients, enabling listing models, viewing model details, and asking questions to models.3MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible AI assistants to manage and use local or cloud Ollama models for text generation, chat, embeddings, model operations, web search, and web content fetching.923 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to access local or cloud LLMs, manage and run models, generate completions and embeddings, chat with tool/function support, and use web search/fetch through Ollama Cloud.923 npmAGPL 3.0