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
springai-mcp-gateway
An OAuth 2.1 secured Spring AI MCP gateway enabling ChatGPT Connectors to interact with local development tools via a streamable HTTP endpoint.
mcp-gpt-proxy
Acts as a proxy to inject rich UI widgets from the OpenAI Apps SDK into responses from any existing Model Context Protocol (MCP) server without modifying the original server.
apps-sdk-template
Production-ready starter template for building ChatGPT MCP (Model Context Protocol) apps with Next.js, OAuth 2.1, and optional Stripe subscriptions.
MCPCalculatorSample
Provides a sample Model Context Protocol (MCP) server with a calculator tool and a dynamic greeting resource, designed for integration with a VS Code Cline agent.