AbhijithGanesh/AzureMCP-demo
If you are the rightful owner of AzureMCP-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This tutorial provides a comprehensive guide to setting up and running an Azure Model Context Protocol (MCP) server with Python and TypeScript implementations.
🚀 Azure MCP Server Tutorial
[!IMPORTANT]
This repository is a part of my deep dive into Azure MCP server session hosted at Microsoft, Chennai office on the 17th of May
Welcome to the Azure MCP Server tutorial! This repository demonstrates how to set up and run an MCP server with different implementations.
📋 Prerequisites
- Bun package manager installed
- Azure subscription
- Python 3.12+ (for Python implementation)
- Node.js/TypeScript environment (for TypeScript implementation)
🌟 Quick Start
- Clone this repository
- Start the MCP server:
./start-server.sh
📁 Project Structure
.
├── start-server.sh # Server startup script (SSE transport)
└── custom-mcp-server/ # Custom implementations
├── python3/ # Python 3.12 implementation
│ ├── main.py # Python entry point
│ └── pyproject.toml # Python dependencies
└── typescript/ # TypeScript implementation
├── index.ts # TypeScript entry point
└── package.json # Node.js dependencies
🛠️ Features
- Server-Sent Events (SSE) transport support through
@azure/mcp - Language-specific implementations:
- Python 3.12 using
modelcontextprotocolpackage - TypeScript using
@modelcontextprotocol/sdk
- Python 3.12 using
- Easy setup with dependency management:
- Python: Using modern packaging with
pyproject.toml - TypeScript: Using
package.jsonwith Bun package manager
- Python: Using modern packaging with
🔧 Configuration
The server uses SSE (Server-Sent Events) transport by default:
bunx -y @azure/mcp@latest server start --transport sse
📦 Installation
Python Implementation
cd custom-mcp-server/python3
python -m venv .venv
source .venv/bin/activate
pip install -e .
TypeScript Implementation
cd custom-mcp-server/typescript
bun install
🚀 Running Examples
Python
cd custom-mcp-server/python3
python main.py
TypeScript
cd custom-mcp-server/typescript
bun run index.ts
📚 Dependencies
Python
- modelcontextprotocol >= 0.1.0
- Python 3.12 or higher
TypeScript
- @modelcontextprotocol/sdk ^1.11.3
🤝 Contributing
Contributions are welcome! Please feel free to submit pull requests or create issues.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.