How tejasrinathreddysoma-beep/mcp_calls_calc_and_fetch_using_llm works
This is a chat-based calculator that uses a local Ollama model to translate natural-language math into expressions, then routes calculations through an MCP server to the real Windows Calculator. The client also supports direct calculation, button presses, angle-mode changes, and ordinary chat. The server parses and sequences calculator operations, automates the UI, and verifies results. The README documents fallback to the evaluate tool if UI automation fails; omitted server sections limit detail about that fallback’s implementation.
Main entry points: client.py Chat client · calc_server.py MCP server
Components 9
Chat client
- Chat client
client.py
MCP calculator server
- MCP server
calc_server.py - Expression handling
calc_server.py - Button sequencing
calc_server.py - Result verification
calc_server.py
Calculator automation
- Windows UI automation
calc_server.py
Other components
- User
- Local Ollama
- Windows Calculator
Connections 13
- User → Chat client: enters requests
README.md - Chat client → Local Ollama: requests translation or chat
client.py - Local Ollama → Chat client: returns response
client.py - Chat client → MCP server: launches over stdio
client.py - Chat client → MCP server: calls calculator tools
client.py - MCP server → Expression handling: handles expressions
calc_server.py - Expression handling → Button sequencing: compiles operations
calc_server.py - Button sequencing → Windows UI automation: drives operations
calc_server.py - Windows UI automation → Windows Calculator: automates UI
README.md - Windows Calculator → Result verification: provides display result
README.md - Result verification → MCP server: returns checked result
calc_server.py - MCP server → Chat client: returns tool result
client.py - Windows UI automation → Windows Calculator: opens scientific mode
README.md