Real MCP System
Provides live tools for weather, currency conversion, calculations, and dice rolls through a chat interface.
README
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-HTTP - OpenAI Agent (
agent_core.py/agent.py) — discovers tools and calls them - Web UI (
web.py+static/) — chat + dynamic widgets
Live demo
- Web UI: https://real-mcp-system.vercel.app
- GitHub (public): https://github.com/NaveedUrRehman787/real-mcp-system
Tools
| Tool | Source |
|---|---|
get_weather |
Live Open-Meteo geocoding + forecast |
convert_currency |
Live currency-api FX (USD/EUR/PKR/…) |
calculate |
Local safe math |
roll_dice |
Local random |
Setup (local)
python3 -m venv .venv
source .venv/bin/activate
cp .env.example .env # set OPENAI_API_KEY
pip install -r requirements.txt
Pin
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:3010
CLI 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.pdf - Student 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 widgets
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.