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.
基本信息
配置
使用下面的配置,将此服务器添加到你的 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 服务器
Just Prompt - A lightweight MCP server for LLM providers
dislerjust-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama)
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
1MCP - One MCP Server for All
1mcp-appA unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
Open Multi-Agent Canvas
CopilotKitThe open-source multi-agent chat interface that lets you manage multiple agents in one dynamic conversation and add MCP servers for deep research
评论