K-RAMYA05/MCP-Math-Web-UI
3.2
If you are the rightful owner of MCP-Math-Web-UI and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP Math Sandbox is a client-server demo utilizing the Model Context Protocol (MCP) to process math queries through a secure and efficient system.
Tools
4
Resources
0
Prompts
0
MCP Math Sandbox
A tiny client–server demo using the Model Context Protocol (MCP).
Users type a math query in a web UI (e.g., “12 / 3”), the server’s local SLM router decides which tool (add/subtract/multiply/divide) to run inside a sandbox, executes it, and returns the result.
Features
- 🔧 Tool-execution via MCP-style endpoints (
/query) - 🧠 Lightweight local “SLM” router to select the right tool (no external LLM required)
- 🧪 Secure sandbox layer (no FS/network by default)
- 🖥️ Minimal browser UI
Project Structure
Scripts
npm run dev – run server and web UI in dev mode
npm run build – build server and web bundle
npm run start – start built server
npm run lint – lint
Quick Start (Local)
# 1) Install deps
npm install
# 2) Dev server (Node + Vite)
npm run dev
# Server: http://localhost:8787
# Web UI: http://localhost:5173
# 3) Test
curl -X POST http://localhost:8787/query \
-H "Content-Type: application/json" \
-d '{"query":"12 / 3"}