What does this project demonstrate?
It demonstrates how an LLM can automatically decide which Python function to call based on a user’s intent, using MCP to describe available tools and Ollama to run the model locally.
@rajeevchandra
Basic information
No overview available yet
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-client-server-example": {
"command": "python",
"args": [
"math_server.py"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
It is a demonstration project that shows how a local AI agent can understand user queries and automatically call Python functions using the Model Context Protocol (MCP), a local LLM via Ollama, and a Python MCP client and server.
Install dependencies with pip install "mcp[cli] @ git+https://github.com/awslabs/mcp.git" openai==0.28 httpx, ensure Ollama is installed and running, pull a tool-calling‑capable model (e.g., ollama run llama3), run the MCP server (python math_server.py), then start the client with python ollama_client.py math_server.py. Finally, type queries like “What is 5 + 8?” and the system will respond with the computed result.
add, multiply) become callable toolsIt demonstrates how an LLM can automatically decide which Python function to call based on a user’s intent, using MCP to describe available tools and Ollama to run the model locally.
You need Python, the `mcp[cli]`, `openai==0.28`, and `httpx` packages, plus Ollama installed and running with a model that supports tool calling (e.g., Llama3).
No – everything runs locally. The LLM is served by Ollama on your machine, and the MCP components communicate over local transports.
The example server (`math_server.py`) exposes two tools: `add(a: int, b: int) -> int` and `multiply(a: int, b: int) -> int`.
Yes, as long as the model supports tool‑calling. The README suggests Llama3 via the `ollama run llama3` command; you can replace it with any compatible Ollama model.

Krafters is a French club of specialized AIs for freelancers and small businesses. Its connector opens the member's AI kits for Facebook and Instagram ads, SEO/GEO and short videos directly in Claude, and gives the next
Detect and redact PII, PHI, PCI and secrets — SSNs, credit cards, passports, API keys and cloud credentials — in text and in local files, using the Strac DLP API. Five tools: redact_text, detect_sensitive_data, detect_fi
28-tool MCP server for web scraping, crawling, deep research & autonomous extraction — clean Markdown & structured JSON for Claude, Cursor & any MCP client. 1,000 free one-time credits, local-Ollama LLM support.

localscreenshot is a Website screenshot MCP server and API available at https://localscreenshot.com/api. Localscreenshot screenshot api turns any public web page into an image or a PDF. Take the capture from one of 227 c
NetFoundry LLM Gateway is an OpenAI-compatible API proxy that routes requests across multiple LLM providers using zero-trust networking. Zero trust LLM gateway. OpenAI-compatible proxy with semantic routing and load bala
Comments