Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

On Azure

БесплатноНе проверен

Enables listing image blobs from Azure Blob Storage and generating descriptions using Azure OpenAI's gpt-4o vision model.

GitHubEmbed

Описание

Enables listing image blobs from Azure Blob Storage and generating descriptions using Azure OpenAI's gpt-4o vision model.

README

Production-ready sample for running a minimal MCP Server on Azure. It exposes two tools:

  • list_captain_files – list all blob names in a container
  • describe_blob – generate a short description for an image blob using Azure OpenAI (gpt-4o)

✨ What you get

  • A minimal MCP Server built with Express.js.
  • Secure access to Azure Blob Storage using a connection string.
  • Server-side calls to Azure OpenAI vision models for image description.
  • Example .env.example for easy setup.
  • PowerShell & cURL commands for quick testing.

🧱 Architecture



flowchart TD
  A[MCP Client] -->|HTTP| B[MCP Server]
  B -->|List/Fetch| C[Azure Blob Storage]
  B -->|Send image| D[Azure OpenAI gpt-4o Vision]
  D -->|Description| B
  B -->|JSON Response| A

MCP Client (Copilot, Inspector, etc.) sends HTTP requests.

This Server (Express.js) handles /tools endpoints.

Server fetches the file from Azure Blob Storage.

Sends it to Azure OpenAI GPT-4o for a short, clear description.

📦 Prerequisites

  • Node.js 18+ (or 20/22)
  • Azure Storage Account with a container (e.g., captain-azure) containing images
  • Azure OpenAI resource with a gpt-4o deployment
  • Access keys & endpoint for both services

🔐 Environment Variables (.env)

AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=<name>;AccountKey=<key>;EndpointSuffix=core.windows.net
CONTAINER_NAME=captain-azure
AZURE_OPENAI_ENDPOINT=https://<your-openai>.openai.azure.com
AZURE_OPENAI_KEY=<your-openai-key>
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o
AZURE_OPENAI_API_VERSION=2024-02-15-preview

🚀 Install & Run

git clone https://github.com/OfekBenEliezer/mcp-on-azure.git
cd mcp-on-azure
npm install
node server.js
# MCP Server running on: http://localhost:3333

📂 List blobs

PowerShell

Invoke-RestMethod -Uri "http://localhost:3333/tools/list_captain_files" `
  -Method Post `
  -ContentType "application/json"

cURL

curl -s -X POST http://localhost:3333/tools/list_captain_files \
  -H "Content-Type: application/json"

🖼 Describe a blob

PowerShell

Invoke-RestMethod -Uri "http://localhost:3333/tools/describe_blob" `
  -Method Post `
  -Body (@{ blobName = "CertWebinar.png" } | ConvertTo-Json) `
  -ContentType "application/json"

cURL

curl -s -X POST http://localhost:3333/tools/describe_blob \
  -H "Content-Type: application/json" \
  -d '{"blobName":"CertWebinar.png"}'

Expected output

{
  "description": "A short, clear sentence describing the image."
}

🛡️ Security Notes

  • Never commit keys or secrets.
  • If blobs are private, generate SAS URLs with short TTL.
  • Restrict CORS and ingress when running in production.
  • For enterprise scenarios, prefer Managed Identity over raw keys.

📜 License

MIT License – free to use, modify, and distribute with attribution.


👨‍✈️ Built by Captain Azure – Ofek Ben Eliezer

from github.com/OfekBenEliezer/mcp-on-azure

Установка On Azure

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/OfekBenEliezer/mcp-on-azure

FAQ

On Azure MCP бесплатный?

Да, On Azure MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для On Azure?

Нет, On Azure работает без API-ключей и переменных окружения.

On Azure — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить On Azure в Claude Desktop, Claude Code или Cursor?

Открой On Azure на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare On Azure with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории media