Real MCP System
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Real MCP SystemGet weather in London and convert 50 GBP to USD"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Real MCP System (mcp-use + OpenAI + dynamic Web UI)
Prepared by Muhammad Khalil — 21 August 2026.
End-to-end university/demo deliverable:
MCP Server (
server.py) — live tools over streamable-HTTPOpenAI Agent (
agent_core.py/agent.py) — discovers tools and calls themWeb UI (
web.py+static/) — chat + tool result cards
Live demo
GitHub (public): https://github.com/NaveedUrRehman787/real-mcp-system
Related MCP server: Utility Tools MCP Server
Tools
Tool | Source |
| Live Open-Meteo geocoding + forecast |
| Live currency-api FX (USD/EUR/PKR/…) |
| Local safe math |
| Local random |
Setup (local)
python3 -m venv .venv
source .venv/bin/activate
cp .env.example .env # set OPENAI_API_KEY
pip install -r requirements.txtPin
mcp>=1.28,<2— mcp 2.x breaks mcp-use 1.7.0.
Run locally (2 terminals)
# Terminal 1 — MCP server
python server.py
# MCP: http://127.0.0.1:8000/mcp
# Inspector: http://127.0.0.1:8000/inspector
# Terminal 2 — Web UI
python web.py
# Chat UI: http://127.0.0.1:3010CLI agent
python agent.py --list-tools
python agent.py "Live weather in Tokyo and convert 50 EUR to USD"Hosted demo (Vercel)
On Vercel the chat UI runs as a single FastAPI app. Because serverless cannot keep a companion MCP process, production uses the same tools in-process (AGENT_BACKEND=direct). Local two-process MCP mode is unchanged.
Set OPENAI_API_KEY in the Vercel project environment variables (already configured for this demo).
Documentation
Project documentation (PDF):
docs/Real_MCP_System_Documentation.pdfStudent learning guide (PDF):
docs/Student_Learning_Guide.pdf
Architecture
Browser chat
→ FastAPI (/api/chat)
→ OpenAI (gpt-4o-mini)
→ tools via MCP (local) or in-process (Vercel)
→ live APIs / local tools
→ reply + dynamic widgetsA note on "widgets" (this is not an MCP App)
The widgets key in the /api/chat response and renderWidget() in static/index.html
are this project's own rendering layer, not the MCP Apps / MCP-UI protocol extension.
The distinction matters if you plan to extend this project:
MCP Apps (the spec) | This project |
Tool declares | No view registration; the frontend switches on tool name |
Handler returns | Handler returns a plain |
View is a React component compiled to a bundled HTML resource | Card markup is a template literal in |
Host renders it in a sandboxed iframe over a | Markup is injected into the parent page via |
Portable — renders in ChatGPT, Claude, any compatible host | Only renders in this repo's own UI |
MCP Apps is currently a TypeScript mcp-use feature (mcp-use/server, mcp-use/react,
views/<name>/view.tsx). The Python mcp-use==1.7.0 pinned here exposes no widget()
helper, no view= argument on @server.tool(), and no view bundling — so real MCP Apps
support would mean porting the server to the TypeScript SDK, not a local change.
Because the cards render in the parent page rather than in the spec's sandboxed iframe,
this project does its own escaping: every value interpolated by renderWidget() goes
through esc(). Keep that up if you add a card.
This server cannot be deployed
Maintenance
Related MCP Connectors
Live currency conversion for 166 currencies, shown as an interactive in-chat card. No sign-in.
65 utility tools for AI agents: calculators, converters, live data, crypto — paid per call via x402.
2,400+ calculators and unit converters with exact results and a live calculator card in the chat.
41Live crypto prices, conversion, gas tracker, portfolio tools, and calculators for AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides utility tools including random jokes, current weather, and name-based age prediction.3MIT
- FlicenseNot gradedqualityDmaintenanceProvides five utility tools: weather information, calculator, currency converter, timezone information, and unit converter.-
- FlicenseNot gradedqualityDmaintenanceProvides weather data tools using the WeatherAPI.com service, including current conditions, forecasts, location search, astronomy, and air quality.-
- FlicenseNot gradedqualityDmaintenanceProvides tools for weather, GitHub issues, and Slack messaging to MCP-compatible AI assistants.-