mcp-framework-server
Verified Safeby Elhan1505
Overview
A Python-based server for a Model Context Protocol (MCP) enabling interactive career orientation (proforientation) dialogues via a REST API, designed to integrate with a Telegram bot.
Installation
uvicorn src.api:app --host 0.0.0.0 --port 8000Environment Variables
- ANTHROPIC_API_KEY
- DATABASE_URL
- FRAMEWORKS_PATH
Security Notes
The server uses `os.getenv` for sensitive keys like `ANTHROPIC_API_KEY` and `DATABASE_URL`, preventing hardcoding. The framework loading mechanism (`_load_framework_sections`) correctly restricts file access to `.md` files within the designated `frameworks` directory, mitigating path traversal vulnerabilities. Database interactions use `psycopg2` which is standard. There are no obvious signs of `eval` or similar dangerous functions. The `bothelp_payment_webhook` endpoint simply logs incoming JSON without complex processing, reducing risk. Robust system prompts are used to guide the AI model, aiming to prevent prompt injection and information leakage, although this is more about AI behavior than code security.
Similar Servers
arcade-mcp
Provides a framework and pre-built toolkits for integrating Large Language Models (LLMs) with various external services and databases, enabling AI agents to interact with the real world.
ai-mcp-server-base
Provides a base server for building AI Microservice Orchestration applications using FastMCP and FastAPI, featuring tools and resources for AI agents.
simple_mcp_server
This server exposes Python functions as an API using FastMCP, primarily intended for LLM function calling to integrate custom tools with AI models.
my-mcp-server
This server exposes an AI-centric microservice API using the MCP protocol, providing tools, resources, and prompt templates.