mcp-server
Lokaler MCP-Server mit Ollama
Ein lokales Python-Projekt, das ein Ollama-Sprachmodell mit einem MCP-Server verbindet. Das Modell kann die Tools des Servers entdecken, entscheiden, wann es eines aufruft, das Ergebniss empfang en und eine prägnante abs chließende Antworte erzeugen.
flowchart TD
U["User question"] --> C["Python MCP client"]
C --> O["Ollama llama3.2:3b"]
O --> C
C --> S["Local MCP server"]
S --> D["Student JSON data"]Verfügbare Tools
Tool | Zweck |
| Addiert zwei explizit angegebene Zahlen |
| Gibt das integrierte Demo-Studentenprofil zurück |
| Durchsucht |
Related MCP server: custom-mcp-server
Voraussetzungen
Pyton 3.11+
Ollama installiert und in Betrief
Ollama-Modell
llama3.2:3b
Windows-Einrichtung
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
ollama pull llama3.2:3b
python client.pyDer Client startet server.py automatisch über den aktiven Pyton-Interpreter. Sie müssen den Server nicht in einem separaten Terminal starten.
Beispielfragen
What is 10 + 20?Tell me about Pranay.Where is Ananya studying?What is Saranya studying?
Projektstruktur
mcp-server/
├── client.py
├── server.py
├── files/
│ └── students.json
├── tests/
│ └── test_server.py
└── requirements.txtTool-Ergebniss-Korrektur
Ollama erwartet, dass eine Tool-Ergebniss-Nachricht den ausgefüh rten tool_name enthält. Der Client fügt dieses Feld hinzu und übergibt die verfügbaren Tool-Definitionen an den Fol geaufruf, sodass das Modell die abs chließende Antworte erzeugen kann, nachdem ein MCP-Tool ausgefüh rt wurde.
Datenhinweis
files/students.json sind Demodaten. Ersetzen Sie sie durch fiktive Daten oder Daten, für die eine Einwilligung vorliegt, bevor Sie dieses Projekt öffentlich oder in der Produktion verwenden.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceLets Claude query and manage a local Ollama server — list models, inspect them, run generate/chat completions, pull or delete models.8MIT
- AlicenseNot gradedqualityDmaintenanceExposes custom Python functions as tools and integrates with Ollama for tool calling.4MIT
- FlicenseNot gradedqualityCmaintenanceEnables LLMs to manage student records through natural language by wrapping a simple HTTP student server's endpoints as MCP tools.
- AlicenseNot gradedqualityCmaintenanceEnables document retrieval, OCR, web search, and calculator tools via a RAG pipeline and LangGraph agent, all running locally with Ollama.MIT
Related MCP Connectors
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pranay-6669/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server