miniMCP
Connects a local AI model running on Ollama to custom MCP tools, enabling the model to act as a database assistant that performs CRUD operations (create, read, update, delete items) on an in-memory database via natural-language requests.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
miniMCP
A lightweight project that demonstrates how to implement and connect a local AI model (using Ollama) with custom tools through the Model Context Protocol (MCP).
In this project, the AI acts as a database assistant that can query and manage an in-memory database using CRUD (Create, Read, Update, Delete) operations.
Project Structure
server.py: This is the MCP server created withFastMCP. It maintains an in-memory database and exposes tools for:Creating items (
create_item)Reading individual items (
read_item)Reading multiple items at once (
read_multiple_items)Updating items (
update_item)Deleting items (
delete_item)
client.py: This is the client that interacts via the terminal. It connects to the MCP server through standard input/output streams (stdio), reads the available tools, and establishes a chat loop with the user and the Ollama LLM (gemma4:e4b).requirements.txt: File with the project's main dependencies.
Related MCP server: Modular MCP Server with Python Tools
Requirements and Dependencies
Before starting the project, make sure you have installed:
Python 3.10+
Ollama installed and running on your machine.
The model used by this repository, which by default is
gemma4:e4b. You can download it with the command:ollama run gemma4:e4b
Installation
Clone the repository and navigate to its folder:
git clone <url-del-repo> miniMCP cd miniMCPCreate and activate a virtual environment (optional but highly recommended):
python -m venv .venv # En Windows: .\.venv\Scripts\activate # En macOS/Linux: source .venv/bin/activateInstall the necessary dependencies:
pip install -r requirements.txt pip install gradio
Usage
The project consists of a Client/Server configuration, but the client is responsible for launching the server itself, so you only need to run the client:
python client.pyType your questions directly into the console.
Interaction Example
You can try telling the AI:
"Create an item with ID 'task1' and content 'Buy milk'"
"Show the content of 'task1'"
"Update 'task1' and tell me the milk should be skimmed"
"Read items 'task1' and 'task2'"
"Delete ID 'task1'"
The AI will automatically execute the server.py tools without you having to write the code or calls directly.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Cloud-hosted MCP server for durable AI memory
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP-Server from your Database optimized for LLMs and AI-Agents. Supports PostgreSQL, MySQL, ClickHouse, Snowflake, MSSQL, BigQuery, Oracle Database, SQLite, ElasticSearch, DuckDB550Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA demo MCP server that enables users to interact with various tools through natural language, including note management, weather queries, calculations, file operations, and shell commands. Uses Ollama for intent detection and structured command parsing from free text input.-
- FlicenseNot gradedqualityBmaintenanceAn MCP server that exposes relational databases (PostgreSQL/MySQL) to AI agents with natural language to SQL query support.19-
- FlicenseNot gradedqualityDmaintenanceEnables natural language database queries by combining Ollama's language models with SQLite database access through an MCP server.-