Back to Home
zkangHUST icon

mcp_calc

Verified Safe

by zkangHUST

Overview

This server demonstrates a ChatGPT Widget for a calculator application, integrating custom UI components with the OpenAI Apps SDK and Model Context Protocol (MCP).

Installation

Run Command
cd server && python main.py

Security Notes

The server uses `starlette.middleware.cors.CORSMiddleware` with `allow_origins=["*"]`, which permits requests from any origin. While common for local development and demos, this is a significant security risk for a publicly accessible server as it disables standard browser same-origin policy protections. However, for a local MCP server interacting with a ChatGPT client, this setup is typical and less of a direct risk. The tool itself is marked as non-destructive and read-only, reducing the impact of any potential misuse. No `eval` or obvious malicious patterns were found. It's safe to run locally.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-11-24

Tags

ChatGPT WidgetMCPCalculatorOpenAI Apps SDKFastMCPPython