Foundry Agents MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Foundry Agents MCP ServerInvoke the research workflow with task: analyze AI trends"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Foundry Agents MCP Server
An MCP (Model Context Protocol) server that exposes Azure AI Foundry agents, workflows, and AI Search vector-database capabilities as MCP tools.
Supports two transports:
stdio – for local use with
uvxor VS Code CopilotHTTP – for deployment to Azure Container Apps via
azd up
Repository layout
src/
foundry_agents_mcp/ ← MCP server (10 tools across 4 namespaces)
foundry_agents/ ← Standalone agent & workflow implementations
definitions/ ← Declarative YAML agent & workflow definitions
case_study_agent.py ← deploy-case-study-agent CLI command
architecture_agent.py ← deploy-architecture-agent CLI command
project_log_workflow.py ← run-project-log-workflow CLI command
infra/
main.bicep ← Container Apps + managed identity + role assignments
app/server.bicep ← Container App definition with health probes
core/security/role.bicep
azure.yaml ← azd service definition
Dockerfile ← Multi-stage Alpine build
entrypoint.sh ← Selects stdio or HTTP transport at startup
.env.sample ← Template for local environment configurationRelated MCP server: Azure AI Foundry Agent MCP
MCP tool namespaces
Namespace | Tools |
| List agents · Invoke agent · Check status · Get result |
| Semantic vector search · Add document to vector DB |
| Create project-log index · Ingest project log entry |
| List sample workflows · Run project-log pipeline |
Prerequisites
Python 3.10+
uv installed
An Azure AI Foundry project (for agent tools)
An Azure AI Search resource with a vector-capable tier (for search/index tools)
An Azure OpenAI resource with a text-embedding model deployed
Quick start with uvx
# Install and run directly from GitHub (no PyPI package required)
uvx --from git+https://github.com/denniszielke/foundry-agents-mcp-server@main foundry-agents-mcp-serverOr with an explicit environment file:
uvx --from git+https://github.com/denniszielke/foundry-agents-mcp-server@main --env-file .env foundry-agents-mcp-serverConfiguration
All configuration is driven by environment variables. Copy .env.sample to .env
and fill in your values.
Variable | Required | Description |
| For agent tools | AI Foundry project endpoint – |
| No | OpenAI-compatible endpoint (falls back to |
| For workflow tools | Completion model deployment name in the Foundry account |
| For search/index tools | Embedding model deployment name (default: |
| No | Embedding vector size (default: |
| For search/index tools | Azure AI Search service endpoint URL |
| No | Search index name (default: |
| No | Application Insights connection string for telemetry |
Note – When deploying via
azd up, all these values are written to.envautomatically byinfra/write_env.sh. For local development runaz loginand useDefaultAzureCredential; no API keys are needed.
Claude Desktop configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"foundry-agents": {
"command": "uvx",
"args": ["--from", "git+https://github.com/denniszielke/foundry-agents-mcp-server@main", "foundry-agents-mcp-server"],
"env": {
"AZURE_AI_PROJECT_ENDPOINT": "https://...",
"AZURE_AI_SEARCH_ENDPOINT": "https://...",
"AZURE_OPENAI_ENDPOINT": "https://..."
}
}
}
}Tool reference and example prompts
agents namespace
agents_list_agents
List all agents and workflows available in the Foundry project, including their IDs, models, descriptions, and tool capabilities.
Example prompts
"What agents are available in the project?"
"List all AI workflows I can invoke"
"Show me the agents and their capabilities in this Foundry project"
agents_invoke_agent
Invoke an agent or workflow asynchronously. Returns an invocation ID to track progress.
Parameter | Type | Description |
| string | Agent ID from |
| string | Task description or question |
| string (optional) | Additional text or file content as context |
Example prompts
"Ask agent
<agent_id>to summarize the latest Azure AI announcements""Invoke the research workflow with task: analyze competitive landscape for AI services"
"Send this document to the analysis agent and include the file text as context:
<text>"
agents_get_invocation_status
Check whether an agent invocation is still running or has completed.
Parameter | Type | Description |
| string | Invocation ID from |
Possible statuses: queued, in_progress, requires_action, cancelling,
cancelled, failed, completed, expired
Example prompts
"Check the status of invocation
<invocation_id>""Has my agent task finished? ID:
<invocation_id>""Is the workflow still running for invocation
<invocation_id>?"
agents_get_invocation_result
Retrieve the text (and file reference) output from a completed invocation.
Parameter | Type | Description |
| string | Invocation ID from |
Example prompts
"Get the results from invocation
<invocation_id>""What did the agent return for ID
<invocation_id>?""Show me the output of the completed workflow:
<invocation_id>"
search namespace
search_vector_db
Perform a semantic (vector) search over the project-log index.
Parameter | Type | Description |
| string | Natural language search query |
| integer (optional) | Number of results (default: 5) |
Example prompts
"Find project logs related to Azure Kubernetes Service"
"Search for workshop summaries about machine learning"
"What meetings discussed security architecture?"
"Find blog posts about microservices, return top 10 results"
search_add_to_vector_db
Add a document to the project-log vector index. The content is automatically embedded and stored alongside the metadata.
Parameter | Type | Description |
| string | Document title |
| string | Main text to embed and index |
| string (optional) |
|
| string (optional) | Customer or organization name |
| string (optional) | Brief summary |
| string (optional) | Associated project name |
| string (optional) | Comma-separated tags (e.g. |
| string (optional) | Source URL |
| string (optional) | Architecture diagram as JSON or XML |
Example prompts
"Add this meeting summary to the vector database: title='Azure Workshop', content='...'"
"Store a new project log entry about our Kubernetes migration discussion"
"Index this blog post with tags: azure, containers, devops"
index namespace
index_create_project_log_index
Create the project-log Azure AI Search index with the correct schema and HNSW vector configuration. Safe to call when the index already exists.
Schema fields
Field | Type | Notes |
| String (key) | Auto-generated UUID |
| String | Searchable, filterable, sortable |
| String | Filterable, facetable ( |
| String | Filterable, facetable |
| String | Searchable |
| String | Searchable (full body text) |
| Collection(Single) | HNSW vector search field |
| String | Filterable, facetable |
| Collection(String) | Filterable, facetable |
| String | Searchable |
| String | Searchable |
| DateTimeOffset | Filterable, sortable |
| DateTimeOffset | Filterable, sortable |
Example prompts
"Set up the project log search index"
"Create the Azure AI Search index for storing project summaries"
"Initialize the vector database schema for project logs"
index_ingest_project_log
Ingest a single project log entry into the index. The index is created automatically if it does not exist.
Parameter | Type | Description |
| string | Log entry title |
| string |
|
| string | Customer or organization name |
| string | Brief summary (1–2 sentences) |
| string | Full context text (will be embedded) |
| string (optional) | Project name |
| string (optional) | Comma-separated tags |
| string (optional) | Source URL |
| string (optional) | Architecture diagram as JSON or XML |
Example prompts
"Add a workshop log: title='Azure AI Day', entry_type='workshop', customer_name='Contoso', context='...'"
"Index a new meeting summary about the cloud migration project"
"Store this repo documentation with tags: python, mcp, azure"
Sample agents and workflow
The foundry_agents package provides two sample agents and a pipeline workflow
that work independently of the MCP server.
Deploy agents to Azure AI Foundry
Register the sample agents in your Foundry project (they then appear in
agents_list_agents and can be invoked with agents_invoke_agent):
deploy-case-study-agent # registers CaseStudyAgent
deploy-architecture-agent # registers ArchitectureAgentRun the project-log workflow
Fetch a Microsoft customer story, extract metadata, generate an architecture diagram, and store everything in the vector index – all in one command:
run-project-log-workflow \
--url "https://www.microsoft.com/en/customers/story/25676-commerzbank-ag-azure-ai-foundry-agent-service" \
--project "Commerzbank AI Platform"Or trigger the same pipeline from the MCP server:
Run the project log workflow for https://www.microsoft.com/en/customers/story/...The workflow automatically uses deployed Foundry agents when available and falls back to direct Azure OpenAI inference otherwise.
Deploy to Azure Container Apps
The server can be deployed to Azure Container Apps with a single command using the Azure Developer CLI (azd).
What gets provisioned
Resource | Purpose |
Virtual Network | Container Apps environment runs VNet-integrated (always) |
Container Apps Environment | Hosts the MCP server; set |
Azure Container Registry | Stores the Docker image |
Log Analytics + Application Insights | Telemetry and distributed traces |
Azure AI Foundry (AIServices + project) | Agents API + model deployments (completion + embedding) |
Azure AI Search | Vector search index for the project log |
User-assigned Managed Identity | Passwordless auth – assigned Azure AI Developer, Cognitive Services OpenAI User, Search Index Data Contributor, and AcrPull roles |
Infra folder structure
infra/
abbreviations.json ← Azure resource name prefixes
main.bicep ← Subscription-scoped orchestrator
main.parameters.json ← azd parameter file
ai/
foundry.bicep ← AIServices account + Foundry project + model deployments
search.bicep ← Azure AI Search
app/
server.bicep ← MCP server Container App + identity
core/
host/
vnet.bicep ← VNet with aca-apps subnet (always deployed)
container-apps.bicep ← Environment + registry orchestration
container-apps-environment.bicep ← Managed environment (usePrivateIngress flag)
container-app.bicep ← Container App with health probes + role assignments
container-app-upsert.bicep
container-registry.bicep
monitor/
monitoring.bicep ← Log Analytics + Application Insights
loganalytics.bicep
applicationinsights.bicep
security/
foundry-access.bicep ← Azure AI Developer + Cognitive Services OpenAI User
registry-access.bicep ← AcrPull
search-access.bicep ← Search Index Data ContributorQuick deploy
# 1. Login
azd auth login
# 2. Create an azd environment
azd env new foundry-mcp
azd env set AZURE_LOCATION swedencentral # or eastus2, westus3, northcentralus
# 3. (Optional) private ingress – accessible only from within the VNet
azd env set USE_PRIVATE_INGRESS true
# 4. Provision infrastructure (no local Docker required)
azd upazd up will:
Provision all resources (VNet, Container Apps, Foundry, Search, monitoring)
Run
infra/write_env.shto populate.envwith all endpoint values
Build and deploy the container
The container image is built remotely using Azure Container Registry (ACR) –
no local Docker installation is required. After azd up has provisioned the
infrastructure, run:
# Build in ACR and deploy the Container App
./azd-hooks/deploy.sh foundry-mcp # pass your azd environment nameThe script will:
Build the Docker image remotely in ACR via
az acr buildDeploy the Container App via a Bicep deployment (
infra/app/server.bicep)Print the MCP server URL
Private ingress
When USE_PRIVATE_INGRESS=true the Container Apps environment is configured as
internal: true and the Container App ingress is set to external: false. The
MCP server is then only reachable from within the VNet (e.g. via a jump host,
VPN, or another Container App in the same environment).
Connect VS Code Copilot to the deployed server
# Find the URL
cat .env | grep MCP_SERVER_URLOpen Command Palette in VS Code → MCP: Add Server → HTTP.
Enter the URL from
.env(e.g.https://<app-fqdn>/mcp).All 10 Foundry Agent tools are now available in Copilot Chat.
Run locally with HTTP transport
# Start the HTTP server (same code, same image)
uvicorn foundry_agents_mcp.server:http_app --host 0.0.0.0 --port 8000
# Test the health probe
curl http://localhost:8000/health
# → {"status":"healthy","service":"foundry-agents-mcp-server"}Monitoring
OpenTelemetry tracing is enabled automatically when
APPLICATIONINSIGHTS_CONNECTION_STRING is set. Every MCP tool call and HTTP
request is traced via azure-monitor-opentelemetry.
azd monitor # open the Application Insights dashboard in the portalTear down
azd downDevelopment
# Clone and install in editable mode
git clone https://github.com/denniszielke/foundry-agents-mcp-server
cd foundry-agents-mcp-server
pip install -e ".[dev]"
# Run locally (stdio)
python -m foundry_agents_mcpLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceEnables interaction with Azure AI Foundry services for model exploration, deployment, and performance evaluation. It provides tools for managing knowledge bases via AI Search Service, executing fine-tuning jobs, and orchestrating AI agents through natural language.
- Alicense-qualityDmaintenanceEnables interaction with Azure AI Agent Service by automatically discovering agents and creating MCP tools for querying and managing agent workflows.1MIT
- Flicense-qualityDmaintenanceEnables file system operations, web scraping, and AI-powered search through MCP tools for use by LLM agents.1
- Alicense-qualityDmaintenanceExposes SAP AI Core APIs as MCP tools, enabling AI assistants to manage AI Core lifecycle and administration through natural language.5MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/denniszielke/foundry-agents-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server