MCP.so
登录

MCP Server for Ollama

@vincentf305

基本信息

分类

AI 与智能体

传输方式

stdio

作者

vincentf305

关于 MCP Server for Ollama

MCP server for connecting Claude Desktop to Ollama LLM server

MCP Server for Ollama 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ollama-server": {
      "command": "python",
      "args": [
        "-m",
        "src.mcp_server.server"
      ],
      "env": {
        "PYTHONPATH": "path-to-mcp-server"
      }
    }
  }
}

MCP Server for Ollama 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server for Ollama?

MCP Server for Ollama is a Model Control Protocol (MCP) server that enables Claude Desktop to communicate with an Ollama LLM server. It is intended for users who want to run local large language models via Ollama and interact with them through Claude Desktop.

How to use MCP Server for Ollama?

Clone the repository, copy .env.example to .env and configure as needed, then install dependencies with pip install -r requirements.txt. To use with Claude Desktop, edit claude_desktop_config.json to include the server definition, setting the command to python -m src.mcp_server.server and the PYTHONPATH environment variable to the repo path.

Key features of MCP Server for Ollama

  • Integrates Claude Desktop with Ollama via Model Control Protocol
  • Simple setup with pip and a configuration file
  • Allows use of local Ollama models from Claude Desktop
  • Environment variable configuration via .env

Use cases of MCP Server for Ollama

  • Query local Ollama models directly from Claude Desktop
  • Run privacy-preserving LLM interactions without sending data to external APIs
  • Develop and test with different Ollama models through Claude's interface

常见问题

1

What does MCP Server for Ollama do?

It provides a Model Control Protocol server that lets Claude Desktop communicate with an Ollama LLM server for inference.

2

How do I set it up with Claude Desktop?

Clone the repo, set up `.env`, install Python dependencies, then add the server entry to `claude_desktop_config.json` as shown in the README.

3

What are the dependencies?

Python 3, the packages listed in `requirements.txt` (install via pip), and access to a running Ollama server.

4

Does it require Ollama to be installed?

Yes, it communicates with an Ollama LLM server, so Ollama must be running and accessible.

5

Where are the model weights and data stored?

The MCP server itself doesn’t store them; data is processed by the local Ollama instance according to its own configuration.

评论

AI 与智能体 分类下的更多 MCP 服务器