Azure OpenAI MCP

v1.0.0Cloud Servicesstable

A minimal server/client application implementation utilizing the Model Context Protocol (MCP) and Azure OpenAI.

azure-openaimcpmcp-clientmcp-servermodel-context-protocol
Share:
34
Stars
0
Downloads
0
Weekly
0/5

What is Azure OpenAI MCP?

Azure OpenAI MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to minimal server/client application implementation utilizing the model context protocol (mcp) and azure openai.

A minimal server/client application implementation utilizing the Model Context Protocol (MCP) and Azure OpenAI.

This server falls under the Cloud Services and Browser Automation categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A minimal server/client application implementation utilizing

Use Cases

Control web applications using Playwright automation.
Integrate Azure OpenAI with MCP protocol.
Automate web interactions for AI workflows.
kimtth

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx azure-openai

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Azure OpenAI MCP

This project implements a minimal but functional MCP server and client bridge that wires Azure OpenAI (or standard OpenAI) to Playwright-based web browsing capabilities. The server exposes a playwright_navigate tool that an LLM can invoke to control a real browser, enabling AI-driven web automation workflows such as scraping, form filling, and multi-step web interactions. It is a practical reference implementation for teams building agentic AI systems on Azure infrastructure that need browser control alongside language model reasoning.

Prerequisites

  • Python 3.10 or later
  • uv package manager installed (pip install uv or brew install uv)
  • An Azure OpenAI resource with a deployed GPT model, or an OpenAI API key
  • Playwright browsers installed (playwright install)
  • An MCP client such as Claude Desktop, or run the included chatgui.py client directly
1

Clone the repository

Download the source code.

git clone https://github.com/kimtth/mcp-aoai-web-browsing.git && cd mcp-aoai-web-browsing
2

Install Python dependencies with uv

uv resolves and installs all packages declared in the project lockfile.

pip install uv && uv sync
3

Install Playwright browser binaries

Download the Chromium (and optionally Firefox/WebKit) browser binaries that Playwright will control.

uv run playwright install
4

Configure environment variables

Create a .env file in the project root with your Azure OpenAI or OpenAI credentials.

AZURE_OPEN_AI_ENDPOINT=https://YOUR_RESOURCE.openai.azure.com/
AZURE_OPEN_AI_API_KEY=YOUR_API_KEY
AZURE_OPEN_AI_DEPLOYMENT_MODEL=gpt-4o
AZURE_OPEN_AI_API_VERSION=2024-02-01
5

Run the chat GUI to test the setup

Launch the built-in Gradio chat interface. This starts the MCP server in-process and lets you send browser automation commands.

uv run python chatgui.py
6

Optional: configure as an MCP server in Claude Desktop

To use this as a standalone MCP server for Claude Desktop, add the configuration below to claude_desktop_config.json.

Azure OpenAI MCP Examples

Client configuration

Add to claude_desktop_config.json to expose the Playwright browser tool to Claude Desktop. The server runs via uv and fastmcp.

{
  "mcpServers": {
    "aoai-web-browsing": {
      "command": "uv",
      "args": ["run", "fastmcp", "run", "./server/browser_navigator_server.py:app"],
      "env": {
        "AZURE_OPEN_AI_ENDPOINT": "https://YOUR_RESOURCE.openai.azure.com/",
        "AZURE_OPEN_AI_API_KEY": "YOUR_API_KEY",
        "AZURE_OPEN_AI_DEPLOYMENT_MODEL": "gpt-4o",
        "AZURE_OPEN_AI_API_VERSION": "2024-02-01"
      }
    }
  }
}

Prompts to try

Commands that drive the Playwright browser tool through the MCP interface.

- "Navigate to https://news.ycombinator.com and summarise the top 5 headlines"
- "Go to https://example.com, take a screenshot, and describe what you see"
- "Open https://en.wikipedia.org/wiki/Model_Context_Protocol and extract the introduction section"
- "Browse to a product page on a public e-commerce site and list the key specifications"

Troubleshooting Azure OpenAI MCP

playwright install fails or browsers do not launch

Run 'uv run playwright install --with-deps' to also install OS-level dependencies. On Linux you may also need 'apt-get install -y libgbm1 libasound2'.

Azure OpenAI returns 401 or 404 errors

Double-check AZURE_OPEN_AI_ENDPOINT (must include trailing slash and correct resource name), AZURE_OPEN_AI_DEPLOYMENT_MODEL (must match the exact deployment name in Azure Portal), and AZURE_OPEN_AI_API_VERSION.

uv sync fails with 'no project found'

Run the command from the repository root where pyproject.toml lives. Do not cd into a subdirectory before running uv sync.

Frequently Asked Questions about Azure OpenAI MCP

What is Azure OpenAI MCP?

Azure OpenAI MCP is a Model Context Protocol (MCP) server that minimal server/client application implementation utilizing the model context protocol (mcp) and azure openai. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Azure OpenAI MCP?

Follow the installation instructions on the Azure OpenAI MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Azure OpenAI MCP?

Azure OpenAI MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Azure OpenAI MCP free to use?

Yes, Azure OpenAI MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "azure-openai": { "command": "npx", "args": ["-y", "azure-openai"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Azure OpenAI MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides