Back to Home
harshv2013 icon

azure-openai-mcp-server

Verified Safe

by harshv2013

Overview

A Gradio chatbot providing an interactive interface to Azure OpenAI capabilities, enhanced with integrated file system read-only access and calculator tools.

Installation

Run Command
python app.py

Environment Variables

  • AZURE_OPENAI_API_KEY
  • AZURE_OPENAI_API_VERSION
  • AZURE_OPENAI_ENDPOINT
  • AZURE_OPENAI_DEPLOYMENT
  • MAX_TOKENS_PER_REQUEST
  • MAX_HISTORY
  • FILE_SERVER_PATH
  • APP_PORT

Security Notes

The server leverages environment variables for sensitive API keys, avoiding hardcoded secrets. It implements path traversal prevention using `pathlib.Path.resolve().startswith()` for file system operations, which is generally robust for its intended use. Crucially, while a 'write_file' tool is defined in `fs_server.py`, it is NOT exposed to the AI via the `MCPToolRegistry` used by the main application, limiting file system interaction to read-only operations within the designated `test_files` directory. The AI-driven tool execution pattern relies on the inherent safety of the registered Python functions, which appear well-contained.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2026-01-19

Tags

AI ChatbotAzure OpenAITool IntegrationGradioPython