mcp-server
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.
Local MCP Server with Ollama
A local Python project that connects an Ollama language model to an MCP server. The model can discover the server's tools, decide when to call one, receive the result, and produce a concise final response.
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"]Available tools
Tool | Purpose |
| Adds two explicitly supplied numbers |
| Returns the built-in demonstration student profile |
| Searches |
Related MCP server: py-mcp-students
Requirements
Python 3.11+
Ollama installed and running
Ollama model
llama3.2:3b
Windows setup
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
ollama pull llama3.2:3b
python client.pyThe client launches server.py automatically through the active Python interpreter. You do not need to start the server in a separate terminal.
Example questions
What is 10 + 20?Tell me about Pranay.Where is Ananya studying?What is Saranya studying?
Project structure
mcp-server/
├── client.py
├── server.py
├── files/
│ └── students.json
├── tests/
│ └── test_server.py
└── requirements.txtTool-result fix
Ollama expects a tool-result message to include the executed tool_name. The client includes this field and passes the available tool definitions into the follow-up call, allowing the model to produce the final response after an MCP tool runs.
Data note
files/students.json is demonstration data. Replace it with fictional or consented data before using this project publicly or in production.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
3 tools that find, describe and run 673 data tools: prices, chain, web, PDF. 10 free calls.
Search 16,000+ API operations and 95 built tools by need, then call any of them by name
PDF, image, video, OCR, screenshot, SQL, QR and text tools for agents. No API key, no signup.
Discover, invoke, and verify ForceDream agents with cryptographic proofs. 14 local, 21 hosted tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes custom Python functions as tools and integrates with Ollama for tool calling.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to manage student records through natural language by wrapping a simple HTTP student server's endpoints as MCP tools.-
- FlicenseAqualityDmaintenanceEnables arithmetic calculation, current time lookup, and attendance retrieval through natural language tool calls.3-
- FlicenseAqualityCmaintenanceEnables an LLM client to perform basic arithmetic on two numbers — addition, subtraction, multiplication, and division — plus reverse a supplied text string, through five simple tools exposed over stdio. Inputs and structured text results follow JSON schemas, with invalid operations such as division by zero surfaced as tool errors.5-