Back to Home
gunbun33 icon

mcp-servers

Verified Safe

by gunbun33

Overview

Provides a production-ready Model Context Protocol (MCP) server for seamless integration with VS Code and other MCP clients to enable AI-driven development features.

Installation

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

Environment Variables

  • PORT (default: 8080)
  • HOST (default: 0.0.0.0)
  • LOG_LEVEL (default: INFO)
  • DEBUG (default: False)
  • METRICS_PORT (default: 8081)
  • ALLOWED_ORIGINS (default: *)
  • MCP_SERVER_NAME (default: Python FastAPI MCP)
  • MCP_SERVER_VERSION (default: 1.0.0)

Security Notes

The Python server uses FastAPI and Pydantic for robust request handling and validation, structured logging with Loguru, and Prometheus metrics. No direct use of `eval`, external command execution with unsanitized input, or hardcoded sensitive credentials within the server's source code (`mcp_server.py`). The default CORS `ALLOWED_ORIGINS` is set to `*` which allows requests from any origin, making it broadly accessible; this should be restricted in a production environment, although it is configurable via environment variables. The current database interaction methods (list_tables, discover_data, prepare_query, query) are mocked within the provided Python source, thus not exposing real database risks. If actual database interaction were implemented, further security review for potential SQL injection and proper data access control would be necessary. The server itself does not directly consume LLM tokens, acting as an agent.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassLow
Stars4
Forks1
Last Update2026-01-19

Tags

AI ToolsDeveloper ToolsFastAPIMCP ProtocolVS Code Integration