MCP.so
登录

Anthropic Model Context Protocol (MCP) Server with Ollama Integration

@jorgesandoval

关于 Anthropic Model Context Protocol (MCP) Server with Ollama Integration

Model Context Protocol (MCP) server integrated with an external inference service (e.g., Ollama/Gemma3) via middleware.

基本信息

分类

AI 与智能体

许可证

MIT license

运行时

python

传输方式

stdio

发布者

jorgesandoval

配置

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

{
  "mcpServers": {
    "simple-mcp-server-jorgesandoval": {
      "command": "python",
      "args": [
        "test_system.py"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is Anthropic Model Context Protocol (MCP) Server with Ollama Integration?

A hybrid architecture that combines an Anthropic-compatible Model Context Protocol (MCP) server with Ollama (Gemma3:4b) for local inference. It provides a middleware layer to store conversation context in a SQLite database and exposes standard MCP endpoints for tools, resources, and prompts. Designed for developers who want to run open-source models with any MCP client (e.g., Claude Desktop, VS Code extensions).

How to use Anthropic Model Context Protocol (MCP) Server with Ollama Integration?

Install via the provided setup.sh script or manually with Docker and Ollama. After starting the containers, interact via curl POST requests to the middleware at http://localhost:8080/infer with a JSON body containing session_id and content. Alternatively, connect any MCP client directly to the MCP server on port 3000.

Key features of Anthropic Model Context Protocol (MCP) Server with Ollama Integration

  • Fully implements the official MCP protocol (JSON‑RPC 2.0, initialization, version negotiation)
  • Supports tools, resources, and prompt templates as per the MCP specification
  • Uses SQLite for persistent conversation context storage
  • Middleware bridges MCP server and Ollama/Gemma3:4b for inference
  • Containerized with Docker for easy deployment
  • Health check endpoint (GET /health) for monitoring

Use cases of Anthropic Model Context Protocol (MCP) Server with Ollama Integration

  • Building context-aware conversational agents using open-source models locally
  • Integrating a local LLM backend into MCP-compatible tools (Claude Desktop, Cursor, etc.)
  • Experimenting with the MCP protocol without relying on Anthropic’s cloud services
  • Developing and testing MCP-based applications with full control over data storage

FAQ from Anthropic Model Context Protocol (MCP) Server with Ollama Integration

What are the runtime requirements?

Python 3.10+, Docker and Docker Compose, and Ollama with the gemma3:4b model installed.

How is conversation context stored?

Context is stored in a SQLite database managed by the MCP server component.

What transport and protocol does the server use?

The MCP server communicates over HTTP using the JSON‑RPC 2.0 protocol on port 3000; the middleware listens on port 8080.

Can I use this with any MCP client?

Yes, the implementation is fully compatible with any client that adheres to the official MCP specification, including Claude Desktop, VS Code GitHub Copilot, and Cursor.

What authentication or authorization is supported?

The README does not describe any authentication or authorization mechanisms.

评论

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