Back to Home
gunbun33 icon

mcp-servers

Verified Safe

by gunbun33

Overview

Provides a production-ready Model Context Protocol (MCP) server in Python using FastAPI for integrating AI systems with VS Code and other MCP clients.

Installation

Run Command
uvicorn mcp_server:app --host 0.0.0.0 --port 8080 --reload

Environment Variables

  • PORT
  • HOST
  • LOG_LEVEL
  • DEBUG
  • METRICS_PORT
  • ALLOWED_ORIGINS
  • MCP_SERVER_NAME
  • MCP_SERVER_VERSION

Security Notes

The server defaults to `ALLOWED_ORIGINS="*"` for CORS, which is a significant security vulnerability in a production environment as it enables cross-site request forgery (CSRF) and other attacks. This must be explicitly configured to restrict allowed origins for deployment. No `eval` or direct code injection vulnerabilities were found. Request validation with Pydantic is used, enhancing input sanitization. Error handling and structured logging are implemented, which are positive for incident response.

Similar Servers

Stats

Interest Score32
Security Score6
Cost ClassMedium
Avg Tokens500
Stars2
Forks1
Last Update2025-12-11

Tags

MCPFastAPIPythonVS CodeJSON-RPCSSEAI Integration