miniMCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@miniMCPCreate a new item with ID 'task1' and content 'Buy milk'."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
- mcpOAuthcom.gibsonai
GibsonAI MCP server: manage your databases with natural language
Cloud-hosted MCP server for durable AI memory
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP-Server from your Database optimized for LLMs and AI-Agents. Supports PostgreSQL, MySQL, ClickHouse, Snowflake, MSSQL, BigQuery, Oracle Database, SQLite, ElasticSearch, DuckDB548Apache 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 gradedqualityAmaintenanceAn 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.-