MCP Azure Project MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT}" -e "AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY}" -e "AZURE_DEPLOYMENT_NAME=${AZURE_DEPLOYMENT_NAME}" -e "AZURE_API_VERSION=${AZURE_API_VERSION}" azure-mcp -- python "<FULL_PATH_TO_MCP_LEARN>/dist/index.js"

Replace <FULL_PATH_TO_MCP_LEARN>/dist/index.js with the actual folder you prepared in step 1.

Required:AZURE_OPENAI_ENDPOINTAZURE_OPENAI_API_KEYAZURE_DEPLOYMENT_NAMEAZURE_API_VERSION
README.md

Integrates Model Context Protocol with Azure AI Foundry's Claude deployment.

MCP Azure Project

This project integrates Model Context Protocol (MCP) with Azure AI Foundry's Claude deployment.

Quick Start

1. Install Dependencies

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install packages
pip install -r requirements.txt

2. Configure Azure Credentials

Edit .env file with your Azure AI Foundry credentials:

AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_API_KEY=your-api-key-here
AZURE_DEPLOYMENT_NAME=claude-35-sonnet
AZURE_API_VERSION=2024-10-01-preview

3. Test the MCP Server

# Start server with inspector
mcp dev server/document_server.py
# Opens browser at http://localhost:5173

4. Run the Client

python client/azure_client.py

Project Structure

.
├── .env                    # Azure credentials (don't commit!)
├── .gitignore
├── requirements.txt
├── server/
│   ├── __init__.py
│   └── document_server.py  # MCP server with tools
├── client/
│   ├── __init__.py
│   └── azure_client.py     # Azure-compatible client
└── test_documents/
    └── sample.txt          # Test files

Available Tools

  • read_document: Read file contents
  • write_document: Create/update files
  • list_documents: List all documents

Resources

Tools (3)

read_documentRead the contents of a specific file.
write_documentCreate or update a file with content.
list_documentsList all available documents in the directory.

Environment Variables

AZURE_OPENAI_ENDPOINTrequiredThe endpoint URL for your Azure AI resource.
AZURE_OPENAI_API_KEYrequiredThe API key for your Azure AI resource.
AZURE_DEPLOYMENT_NAMErequiredThe name of the Claude deployment in Azure.
AZURE_API_VERSIONrequiredThe Azure API version to use.

Configuration

claude_desktop_config.json
{"mcpServers": {"azure-docs": {"command": "python", "args": ["/path/to/server/document_server.py"], "env": {"AZURE_OPENAI_ENDPOINT": "...", "AZURE_OPENAI_API_KEY": "...", "AZURE_DEPLOYMENT_NAME": "...", "AZURE_API_VERSION": "..."}}}}

Try it

List all the documents currently available in the project directory.
Read the contents of sample.txt and summarize it for me.
Create a new file named notes.txt with the content 'Meeting scheduled for tomorrow at 10am'.

Frequently Asked Questions

What are the key features of MCP Azure Project?

Integrates Claude with Azure AI Foundry. Provides tools for reading local documents. Enables creation and updating of files via Claude. Supports listing files within the project directory.

What can I use MCP Azure Project for?

Managing project documentation directly through Claude. Automating file updates based on AI-generated content. Retrieving and summarizing local text files using Azure-hosted models.

How do I install MCP Azure Project?

Install MCP Azure Project by running: pip install -r requirements.txt

What MCP clients work with MCP Azure Project?

MCP Azure Project works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Azure Project docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare