mcp_calc
Verified Safeby 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
cd server && python main.pySecurity 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
apps-sdk-template
A lightweight, type-safe starter for building ChatGPT MCP apps with Next.js and Skybridge, featuring OAuth 2.1 authentication, optional Stripe subscription support, and Drizzle ORM with PostgreSQL.
mcp-gpt-proxy
Enhances existing Model Context Protocol (MCP) servers with OpenAI GPT Apps SDK UI widgets for ChatGPT without modifying the original server.
mcp_calc
This server demonstrates a ChatGPT Widget for a calculator application, integrating custom UI components with the OpenAI Apps SDK and Model Context Protocol (MCP).
openai-app-starter
A starter template for building OpenAI Apps that expose custom HTML or React widgets via an MCP server, demonstrating end-to-end workflow and best practices.