kirillsaidov/ollama-mcp-example
View on GitHub ↗Ollama MCP example for dummies.
22 ★1 forksPythonUpdated 1mo ago
What you need to know
A beginner-friendly example showing how to build an MCP server and client from scratch with Ollama, demonstrating how an MCP client wraps function calling and routes tools to the LLM.
Install
pip install -r requirements.txt
Usage
- •python mcp_server.py
- •python mcp_client.py
Key features
- ✓MCP server exposing tools over SSE
- ✓MCP client unifying tools for the LLM
- ✓Ollama integration
- ✓Easy to customize with new tools
Caveats
- ⚠Requires Ollama and a model such as qwen3:4b-instruct
Topics
- Stars
- 22★
- Forks
- 1
- Language
- Python
- License
- Unlicense
- Created
- 2025-09-25
- Last push
- 2026-07-10