Uses .env configuration for storing Azure OpenAI credentials and settings.
References to GitHub repositories for MCP-related projects and resources, including the official MCP Python SDK, server implementations, and community resources.
Integrates with Azure OpenAI to provide AI model capabilities. The server implements a bridge that converts MCP responses to the OpenAI function calling format.
The MCP server is implemented in Python, utilizing Python libraries and tools like FastMCP and Playwright.
Links to the MCP community on Reddit as a resource for users to engage with the MCP ecosystem.
MCP Server & Client implementation for using Azure OpenAI
A minimal server/client application implementation utilizing the Model Context Protocol (MCP) and Azure OpenAI.
The MCP server is built with
FastMCP.Playwrightis an an open source, end to end testing framework by Microsoft for testing your modern web applications.The MCP response about tools will be converted to the OpenAI function calling format.
The bridge that converts the MCP server response to the OpenAI function calling format customises the
MCP-LLM Bridgeimplementation.To ensure a stable connection, the server object is passed directly into the bridge.
Related MCP server: MCP Simple OpenAI Assistant
Model Context Protocol (MCP)
Model Context Protocol (MCP) MCP (Model Context Protocol) is an open protocol that enables secure, controlled interactions between AI applications and local or remote resources.
Official Repositories
Community Resources
Related Projects
FastMCP: The fast, Pythonic way to build MCP servers.
Chat MCP: MCP client
MCP-LLM Bridge: MCP implementation that enables communication between MCP servers and OpenAI-compatible LLMs
MCP Playwright
Configuration
During the development phase in December 2024, the Python project should be initiated with 'uv'. Other dependency management libraries, such as 'pip' and 'poetry', are not yet fully supported by the MCP CLI.
Rename
.env.templateto.env, then fill in the values in.envfor Azure OpenAI:AZURE_OPEN_AI_ENDPOINT= AZURE_OPEN_AI_API_KEY= AZURE_OPEN_AI_DEPLOYMENT_MODEL= AZURE_OPEN_AI_API_VERSION=Install
uvfor python library managementpip install uv uv syncExecute
python chatgui.pyThe sample screen shows the client launching a browser to navigate to the URL.
w.r.t. 'stdio'
stdio is a transport layer (raw data flow), while JSON-RPC is an application protocol (structured communication). They are distinct but often used interchangeably, e.g., "JSON-RPC over stdio" in protocols.
Tool description
Tip: uv
Tip
taskkill command for python.exe
Visual Code: Python Debugger: Debugging with launch.json will start the debugger using the configuration from .vscode/launch.json.