MCP Ollama Consult Server

MCP Ollama Consult Server

Enables consulting with local Ollama models for reasoning from alternative viewpoints. Supports sending prompts to Ollama models and listing available models on your local Ollama instance.

Category
访问服务器

README

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

Installation

  1. Ensure you have Node.js installed
  2. Install dependencies and build:
npm i
npm run build

Usage

Make sure Ollama is running locally (default: http://localhost:11434).

Start the MCP server:

npm start

Or for development:

npm run dev

Configuration

Set the OLLAMA_BASE_URL environment variable to change the Ollama endpoint:

OLLAMA_BASE_URL=http://your-ollama-server:11434 npm start

Memory (remember_consult) configuration

The server implements a remember_consult tool that will try, in order:

  1. REMEMBER_MCP_CONFIG environment variable (JSON config or simple command string)
  2. VS Code mcp.json entries (looks for a server key containing remember then memory)
  3. MEMORY_MCP_CMD / MEMORY_MCP_ARGS environment variables
  4. Falls back to a local file store at MEMORY_DIR or /tmp/mcp-consult-memory

Examples:

Use a simple stdio command via env (no shell quoting here):

REMEMBER_MCP_CONFIG='{"type":"stdio","command":"/usr/bin/node","args":["/path/to/memory-server.js"]}' npm start

Or point to a memory server described in your VS Code mcp.json (the server keys remember/memory are automatically detected).

If no memory MCP is available, the tool will write JSON observations to MEMORY_DIR (default /tmp/mcp-consult-memory).

Demo client

There is a simple demo client that spawns the server over stdio and exercises the tools (list, consult, compare, remember):

npm run build
npm run demo

Tests & CI

Unit tests (Vitest) and a GitHub Actions workflow were added. Run tests locally with:

npm install
npm test

Docker

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选