RO

rawveg/ollama-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

176 stars 36 forks 质量 88 趋势 25AGPL-3.0

rawveg/ollama-mcp 是从 https://github.com/rawveg/ollama-mcp. 导入的 MCP 服务器候选。

概览

rawveg/ollama-mcp 是从 https://github.com/rawveg/ollama-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

为你的AI助手提供本地LLM访问

一个MCP(模型上下文协议)服务器,将完整的Ollama SDK作为MCP工具提供,实现本地LLM模型与兼容MCP的应用程序如Claude Desktop和Cline之间的无缝集成。

功能 • 安装 • 可用工具 • 配置 • 重试行为 • 开发


✨ 特色

  • ☁️ Ollama 云支持 - 与 Ollama 云平台的全面集成
  • 🔧 14 综合工具 - 完全访问 Ollama SDK 功能
  • 🔄 热插拔架构 - 零配置自动工具发现
  • 🎯 Type-Safe - 使用 TypeScript 和 Zod 验证构建
  • 📊 高测试覆盖率 - 96%+覆盖率,配备全面测试套件
  • 🚀 零依赖 - 最小的占用,最大性能
  • 🔌 Drop-in 集成 - 可与 Claude Desktop、Cline 及其他 MCP 客户端兼容
  • 🌐 Web 搜索与取物 - 通过 Ollama Cloud 实现实时网页搜索和内容提取
  • 🔀 混合模式 - 在同一服务器中无缝使用本地和云模型

💡 用Claude代码和桌面提升你的Ollama体验

完整套装:工具+知识

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。


✨ Features

  • ☁️ Ollama Cloud Support - Full integration with Ollama’s cloud platform
  • 🔧 14 Comprehensive Tools - Full access to Ollama’s SDK functionality
  • 🔄 Hot-Swap Architecture - Automatic tool discovery with zero-config
  • 🎯 Type-Safe - Built with TypeScript and Zod validation
  • 📊 High Test Coverage - 96%+ coverage with comprehensive test suite
  • 🚀 Zero Dependencies - Minimal footprint, maximum performance
  • 🔌 Drop-in Integration - Works with Claude Desktop, Cline, and other MCP clients
  • 🌐 Web Search & Fetch - Real-time web search and content extraction via Ollama Cloud
  • 🔀 Hybrid Mode - Use local and cloud models seamlessly in one server

💡 Level Up Your Ollama Experience with Claude Code and Desktop

The Complete Package: Tools + Knowledge

This MCP server gives Claude the tools to interact with Ollama - but you’ll get even more value by also installing the Ollama Skill from the Skillsforge Marketplace:

  • 🚗 This MCP = The Car - All the tools and capabilities
  • 🎓 Ollama Skill = Driving Lessons - Expert knowledge on how to use them effectively

The Ollama Skill teaches Claude:

  • Best practices for model selection and configuration
  • Optimal prompting strategies for different Ollama models
  • When to use chat vs generate, embeddings, and other tools
  • Performance optimization and troubleshooting
  • Advanced features like tool calling and function support

Install both for the complete experience:

  1. ✅ This MCP server (tools)
  2. ✅ Ollama Skill (expertise)

Result: Claude doesn’t just have the car - it knows how to drive! 🏎️

📦 Installation

Quick Start with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "ollama": {
      "command": "npx",
      "args": ["-y", "ollama-mcp"]
    }
  }
}
在 GitHub 查看完整 README

安装

npx -y ollama-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ollama": { "command": "npx", "args": ["-y", "ollama-mcp"] } } }