MCP.so
登录

Azure MCP Server

@Rajkumar-21

基本信息

分类

云与基础设施

许可证

MIT license

传输方式

stdio

作者

Rajkumar-21

关于 Azure MCP Server

暂无概览

Azure MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Azure MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Azure MCP Server?

A Model Context Protocol (MCP) server implementation for Azure resource management and exploration. It provides a structured interface to interact with Azure resources, bridging MCP clients and Azure services via tools for managing Resource Groups and Storage Accounts. Built with Python, it supports asynchronous operations, multiple authentication methods, and structured response formats.

How to use Azure MCP Server?

Install Python 3.13+, the uv package manager, and the Azure CLI (recommended). Clone the repo, create a virtual environment, and sync dependencies from pyproject.toml. Configure environment variables in a .env file (subscription ID, tenant ID, client ID/secret). Start the server via uv run server.py for stdio transport or uv run main.py for SSE transport (listens on http://127.0.0.1:8000). Alternatively, build and run the Docker container (docker build -t mcp-azure-server:latest .). Invoke tools such as list_resource_groups with required parameters (subscription_id, auth_type).

Key features of Azure MCP Server

  • Asynchronous Azure operations using modern Azure SDK
  • Three authentication methods: default, service principal, managed identity
  • Structured response format via MCP protocol
  • Comprehensive error handling and logging
  • Environment variable configuration support
  • Containerized deployment option with Docker

Use cases of Azure MCP Server

  • Programmatically list and inspect Azure resource groups in a subscription
  • Query storage accounts and their capacity usage across a subscription
  • Monitor Azure infrastructure via MCP-enabled chat assistants or custom clients
  • Automate resource management workflows with service principal credentials
  • Deploy in Azure-hosted environments using managed identity authentication

常见问题

1

What authentication methods does the server support?

Three methods: `"default"` (DefaultAzureCredential for local development), `"spn"` (service principal using client secret), and `"identity"` (managed identity for Azure-hosted deployments). The `auth_type` parameter selects the method.

2

What are the runtime prerequisites?

Python 3.13 or higher, an Azure subscription, and the Azure CLI (recommended for local development). A virtual environment managed by uv is required.

3

How can I run the server with SSE transport instead of stdio?

Comment out the `mcp.run()` block in `server.py` and run `uv run main.py`. This starts a Uvicorn ASGI server on `http://127.0.0.1:8000` that accepts SSE connections. Clients (e.g., MCP Inspector or VS Code Copilot) must be configured to use SSE transport.

4

Can I run the server inside a container?

Yes. Build the image with `docker build -t mcp-azure-server:latest .` then run it with environment variables (AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET). Note that DefaultAzureCredential may fail inside a container; use `auth_type: "spn"`.

5

What tools are currently available?

Four tools: `list_resource_groups`, `list_storage_accounts`, `list_storage_account_usage` (for a specific account), and `list_storage_account_usage_all` (all accounts in a subscription). All require `subscription_id` and `auth_type` as input.

评论

云与基础设施 分类下的更多 MCP 服务器