Mcp Example — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Example (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A simple Model Context Protocol (MCP) server that enables natural language database queries by combining Ollama's language models with SQLite database access.
This project demonstrates how to build an MCP server that exposes SQLite database operations as tools, which can then be called by an AI language model (Ollama) through an agentic loop. Users can ask natural language questions about their database, and the system will automatically determine which SQL queries to execute and return human-readable results.
The system consists of two main components:
server.py): An MCP server that provides tools for interacting with a SQLite databaseclient.py): An MCP client that connects to Ollama and uses the server's tools to answer natural language queriesThe flow:
list_tables(): Lists all tables in the SQLite databasedescribe_table(table_name): Returns the schema of a specific tableexecute_query(sql): Executes read-only SQL SELECT statements (write operations are blocked for safety)git clone https://github.com/ollibeyer/mcp-example.git
cd mcp-examplepython -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activatepip install -r requirements.txtollama pull qwen2.5:7b-instruct
ollama serveRun the client with a natural language query:
python client.py "Welche Tabellen gibt es in der Datenbank?"Or run with a custom query:
python client.py "Zeige mir alle Kunden aus Berlin."Some example queries:
Edit the following variables in client.py to customize:
MODEL: The Ollama model to use (default: qwen2.5:7b-instruct)SERVER_SCRIPT: Path to the server scriptPYTHON: Path to the Python executable in the virtual environmentEdit server.py to change:
DB_PATH: Path to your SQLite database (default: sample.db in the same directory)The project includes a sample SQLite database (sample.db) with example tables. You can replace it with your own database or modify the DB_PATH in server.py.
To extend this project:
server.py using the @mcp.tool() decoratorclient.pyThis is an example project. Feel free to use, modify, and extend it for your own purposes.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.