Back to Home
barwalgayatri02 icon

Convert_FastAPI_MCPTool

Verified Safe

by barwalgayatri02

Overview

Integrates a MCP server to expose selected FastAPI application routes as MCP tools.

Installation

Run Command
uvicorn mcp_fast:app --host 0.0.0.0 --port 8000

Security Notes

The application uses `CORSMiddleware` with `allow_origins=["*"]`, `allow_methods=["*"]`, and `allow_headers=["*"]`. This is a critical security risk for any production application, as it permits cross-origin requests from any domain, making it highly vulnerable to Cross-Site Request Forgery (CSRF) and other attacks if not properly restricted to specific origins. While the current exposed routes are simple math operations, this configuration promotes insecure practices.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Stars0
Forks0
Last Update2026-01-17

Tags

FastAPIMCPAPI GatewayMicroservicesAPI Exposure