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.
- The MCP server is built with
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
- MCP Python SDK
- Create Python Server
- MCP Servers
Community Resources
- Awesome MCP Servers
- MCP on Reddit
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
- MCP Playwright server
- Microsoft Playwright for Python
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.py- The 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
@self.mcp.tool()
async def playwright_navigate(url: str, timeout=30000, wait_until="load"):
"""Navigate to a URL.""" -> This comment provides a description, which may be used in a mechanism similar to function calling in LLMs.
# Output
Tool(name='playwright_navigate', description='Navigate to a URL.', inputSchema={'properties': {'url': {'title': 'Url', 'type': 'string'}, 'timeout': {'default': 30000, 'title': 'timeout', 'type': 'string'}
Tip: uv
- features
uv run: Run a script.
uv venv: Create a new virtual environment. By default, '.venv'.
uv add: Add a dependency to a script
uv remove: Remove a dependency from a script
uv sync: Sync (Install) the project's dependencies with the environment.
Tip
- taskkill command for python.exe
taskkill /IM python.exe /F
- Visual Code: Python Debugger: Debugging with launch.json will start the debugger using the configuration from .vscode/launch.json.
AOAI Web Browsing
Project Details
- kimtth/mcp-aoai-web-browsing
- MIT License
- Last Updated: 4/9/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server for ATLAS, a Neo4j-powered task management system for LLM Agents - implementing...
Execute SQL queries and manage databases seamlessly with Timeplus. Leverage powerful tools to interact with your data, Kafka...
Memory Bank is an MCP server that helps teams create, manage, and access structured project documentation. It generates...
An MCP (Model Context Protocol) server for interacting with a Paperless-NGX API server. This server provides tools for...
Google Calendar MCP server for Claude Desktop integration
MCP server for interfacing with Godot game engine. Provides tools for launching the editor, running projects, and capturing...
Connect APIs, remarkably fast. Free for developers.
MCP server for enabling LLM applications to perform deep research via the MCP protocol
A system monitoring tool that exposes system metrics via the Model Context Protocol (MCP). This tool allows LLMs...
A Model Context Protocol server implementation for ClickUp integration, enabling AI assistants to interact with ClickUp workspaces.
A test of jira mcp server
Memento MCP: A Knowledge Graph Memory System for LLMs





