Step-by-Step Guide: Creating an MCP Server with Azure AI Agent Service for TripAdvisor Marketing Campaign

Step 3: Set Up the MCP Server to connect with Azure AI Agent Service

Before you begin, ensure you have the following prerequisites and technical requirements in place to successfully implement and work with the MCP dashboard system:

Detailed Step-by-Step Implementation Guide

  1. Open Visual Studio Code, select “Clone Git Repository

  1. Enter the URL: https://github.com/azure-ai-foundry/mcp-foundry.git and press enter

  1. Select Drive C:\ and click “Select as Repository Destination

  1. Click “Open

  1. Select "New Terminal" from the Menu.

  1. Type the following commands in your terminal:

PS C:\mcp-foundry>python -m venv .venv and press enter
PS C:\mcp-foundry>.venv\Scripts\activate (For Windows) or source .venv\bin\activate (For Mac) and press enter

(.venv) PS C:\mcp-foundry> pip install azure-identity python-dotenv azure-ai-projects aiohttp and press enter
(.venv) PS C:\mcp-foundry> pip install mcp and press enter

  1. Open Command Prompt, type az login, and follow the prompts to select your Azure account. When prompted, enter your Azure subscription number and press Enter.