MCP Ollama Server
MCP 奥拉马
用于将 Ollama 与 Claude Desktop 或其他 MCP 客户端集成的模型上下文协议 (MCP) 服务器。
要求
Python 3.10 或更高版本
Ollama 已安装并正在运行( https://ollama.com/download )
至少一个模型使用 Ollama 拉取(例如,
ollama pull llama2)
配置 Claude 桌面
添加到您的 Claude Desktop 配置(在 macOS 上为~/Library/Application Support/Claude/claude_desktop_config.json ,在 Windows 上%APPDATA%\Claude\claude_desktop_config.json ):
{
"mcpServers": {
"ollama": {
"command": "uvx",
"args": [
"mcp-ollama"
]
}
}
}发展
以开发模式安装:
git clone https://github.com/yourusername/mcp-ollama.git
cd mcp-ollama
uv sync使用 MCP Inspector 进行测试:
mcp dev src/mcp_ollama/server.pyRelated MCP server: MCP Ollama
特征
该服务器提供四个主要工具:
list_models- 列出所有下载的 Ollama 模型show_model- 获取有关特定模型的详细信息ask_model- 向指定模型提问
执照
麻省理工学院
Available Tools
3 toolsask_modelA
Ask a question to a specific Ollama model
Args:
model: Name of the model to use (e.g., 'llama2')
question: The question to ask the model
Inputs: model (required), question (required).
list_modelsA
List all downloaded Ollama models
Inputs: no named parameters.
show_modelA
Get detailed information about a specific model
Args:
name: Name of the model to show information about
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap. 'ask_model' queries a model, 'list_models' enumerates available models, and 'show_model' provides metadata about a specific model. An agent can easily distinguish between these three distinct operations.
All tool names follow a consistent verb_noun pattern using snake_case. 'ask_model', 'list_models', and 'show_model' maintain perfect naming consistency throughout the set, making them predictable and readable.
With only 3 tools, the server feels somewhat thin for interacting with Ollama models. While the tools cover basic operations, additional functionality like model management (e.g., pull, delete) or conversation history would be expected for a more complete surface.
The tools provide good coverage for core Ollama interactions: querying models, listing them, and getting details. However, there are minor gaps in model management operations (e.g., pulling new models, deleting models) that agents might need to work around for full lifecycle coverage.
Maintenance
Related MCP Connectors
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables seamless integration between Ollama's local LLM models and MCP-compatible applications, supporting model management and chat interactions.13817 npm180AGPL 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 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.817 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to manage and interact with local or cloud-hosted Ollama models, including listing, pulling, generating, chatting, embeddings, and web search/fetch operations.817 npmAGPL 3.0