ClaudeCodeMod

All shelves / MCP servers

🚀 MCP-Ollama Server

Sethuram2003/MCP-ollama_server · 26 stars · Python · Apache-2.0

MCP server Extends Model Context Protocol (MCP) to local LLMs via Ollama, enabling Claude-like tool use (files, web, email, GitHub, AI images) while keeping data private. Modular Python servers for on-prem AI. #LocalAI #MCP #Ollama

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

README.md

MseeP.ai Security Assessment Badge

🚀 MCP-Ollama Server

Connect the power of Model Context Protocol with local LLMs

GitHub license GitHub stars GitHub forks GitHub issues PRs Welcome

Getting Started • Features • Architecture • Documentation • Contributing • FAQ

📋 Overview

MCP-Ollama Server bridges the gap between Anthropic's Model Context Protocol (MCP) and local LLMs via Ollama. This integration empowers your on-premise AI models with Claude-like tool capabilities, including file system access, calendar integration, web browsing, email communication, GitHub interactions, and AI image generation—all while maintaining complete data privacy.

Unlike cloud-based AI solutions, MCP-Ollama Server:

  • Keeps all data processing on your local infrastructure
  • Eliminates the need to share sensitive information with third parties
  • Provides a modular approach that allows you to use only the components you need
  • Enables enterprise-grade AI capabilities in air-gapped or high-security environments

✨ Key Features

  • 🔒 Complete Data Privacy: All computations happen locally through Ollama
  • 🔧 Tool Use for Local LLMs: Extends Ollama models with file, calendar, and other capabilities
  • 🧩 Modular Architecture: Independent Python service modules that can be deployed selectively
  • 🔌 Easy Integration: Simple APIs to connect with existing applications
  • 🚀 Performance Optimized: Minimal overhead to maintain responsive AI interactions
  • 📦 Containerized Deployment: Docker support for each module (coming soon)
  • 🧪 Extensive Testing: Comprehensive test coverage for reliability

🚀 Quick Start

Prerequisites

  • Python 3.8+ installed
  • Ollama set up on your system
  • Git for cloning the repository

🧩 Component Overview

MCP-Ollama Server is organized into specialized modules, each providing specific functionality:

📅 Calendar Module

calendar/
├── README.md          # Module-specific documentation
├── google_calendar.py # Google Calendar API integration
├── pyproject.toml     # Dependencies and package info
└── uv.lock        # Dependency lock file

The Calendar module enables your local LLM to:

  • Create, modify, and delete calendar events
  • Check availability and scheduling conflicts
  • Send meeting invitations
  • Set reminders and notifications

🔄 Client MCP Module

client_mcp/
├── README.md      # Module-specific documentation
├── client.py      # Main client implementation
├── pyproject.toml # Dependencies and package info
├── testing.txt    # Test data
└── uv.lock        # Dependency lock file

The Client module provides:

  • A unified interface to interact with all MCP-enabled services
  • Conversation history management
  • Context handling for improved responses
  • Tool selection and routing logic

📁 File System Module

file_system/
├── README.md          # Module-specific documentation
├── file_system.py     # File system operations implementation
├── pyproject.toml     # Dependencies and package info
└── uv.lock            # Dependency lock file

The File System module allows your local LLM to:

  • Read and write files securely
  • List directory contents
  • Search for files matching specific patterns
  • Parse different file formats (text, CSV, JSON, etc.)

Installation

# 1. First install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# 2. Clone the repository
git clone https://github.com/sethuram2003/mcp-ollama_server.git
cd mcp-ollama_server

# 3. Verify Ollama model is installed (replace 'llama3' with your preferred model)
ollama pull llama3

Module Configuration

  1. 📅 Calendar Module:
cd calendar
uv add pyproject.toml  # Install calendar-specific dependencies
  1. 🔄 Client MCP Module:
cd client_mcp
uv add pyproject.toml  # Install calendar-specific dependencies
  1. 📁 File System Module:
cd file_system
uv add pyproject.toml  # Install filesystem dependencies

Usage

cd client_mcp
uv run client.py ../file_system/file_system.py

Interactions with Agent:

Chat_1 conversation between AI Agent

🏗️ Architecture

MCP-Ollama Server follows a microservices architecture pattern, where each capability is implemented as an independent service:

Key Components:

  1. Ollama Integration Layer: Connects to your local Ollama instance and routes appropriate requests
  2. MCP Protocol Handlers: Translate between standard MCP format and Ollama's requirements
  3. Service Modules: Independent modules that implement specific capabilities
  4. Client Library: Provides a unified interface for applications to interact with the system

This architecture provides several benefits:

  • Scalability: Add new modules without affecting existing ones
  • Resilience: System continues functioning even if individual modules fail
  • Flexibility: Deploy only the components you need
  • Security: Granular control over data access for each module

📚 Documentation

Module-Specific Documentation

Each module contains its own README with detailed implementation notes:

🛠️ Use Cases

Enterprise Security & Compliance

Ideal for organizations that need AI capabilities but face strict data sovereignty requirements:

  • Legal firms processing confidential case files
  • Healthcare providers analyzing patient data
  • Financial institutions handling sensitive transactions

Developer Productivity

Transform your local development environment:

  • Code generation with access to your project files
  • Automated documentation based on codebase analysis
  • Integration with local git repositories

Personal Knowledge Management

Create a powerful second brain that respects your privacy:

  • Process personal documents and notes
  • Manage calendar and schedule optimization
  • Generate content based on your personal knowledge base

🤝 Contributing

We welcome contributions from the community! Here's how you can help:

  1. Fork the Repository: Create your own fork of the project
  2. Create a Feature Branch: git checkout -b feature/amazing-feature
  3. Make Your Changes: Implement your feature or bug fix
  4. Run Tests: Ensure your changes pass all tests
  5. Commit Changes: git commit -m 'Add some amazing feature'
  6. Push to Branch: git push origin feature/amazing-feature
  7. Open a Pull Request: Submit your changes for review

Please read our Contributing Guidelines for more details.

❓ FAQ

Q: How does this differ from using cloud-based AI assistants?
A: MCP-Ollama Server runs entirely on your local infrastructure, ensuring complete data privacy and eliminating dependence on external APIs.

Q: What models are supported?
A: Any model compatible with Ollama can be used. For best results, we recommend Llama 3, Mistral, or other recent open models with at least 7B parameters.

Q: How can I extend the system with new capabilities?
A: Follow the modular architecture pattern to create new service modules. See our Extension Guide for details.

Q: What are the system requirements?
A: Requirements depend on the Ollama model you choose. For basic functionality, we recommend at least 16GB RAM and a modern multi-core CPU.

📄 License

This project is licensed under the terms included in the LICENSE file.

🙏 Acknowledgements

  • Anthropic for the Model Context Protocol specification
  • Ollama for their excellent local LLM server

MCP-Ollama Server - Bringing cloud-level AI capabilities to your local environment

⭐ Star us on GitHub • 🐛 Report Bug • ✨ Request Feature

Facts

Kind
MCP server
Repo
Sethuram2003/MCP-ollama_server
Group
Uncategorized
Stars
26
License
Apache-2.0
Language
Python
Last push
2026-08-18
Forks
7

More on this shelf

  1. 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
  2. 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
  3. 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
  4. 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
  5. 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
  6. 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k