Skip to main content
Glama
NaveedUrRehman787

Real MCP System

Real MCP System (mcp-use + OpenAI + dynamic Web UI)

Prepared by Muhammad Khalil — 21 August 2026.

End-to-end university/demo deliverable:

  1. MCP Server (server.py) — live tools over streamable-HTTP

  2. OpenAI Agent (agent_core.py / agent.py) — discovers tools and calls them

  3. Web UI (web.py + static/) — chat + dynamic widgets

Live demo

Related MCP server: mcp-server-demo

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
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • 60+ units, live FX, timezones, and date arithmetic for AI agents.

  • Trade, monitor portfolios, and build Coinrule strategies by chat.

  • Free unit & live currency conversion tools from toolalize.com (convert_units, convert_currency).

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NaveedUrRehman787/real-mcp-system'

If you have feedback or need assistance with the MCP directory API, please join our Discord server