home / mcp / foundry mcp server
Cloud-Hosted MCP server for Foundry with tools for models, knowledge, evaluations, and agents.
Configuration
View docs{
"mcpServers": {
"azure-ai-foundry-mcp-foundry": {
"command": "uvx",
"args": [
"--prerelease=allow",
"--from",
"git+https://github.com/azure-ai-foundry/mcp-foundry.git",
"run-azure-ai-foundry-mcp",
"--envFile",
"${workspaceFolder}/.env"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>",
"EVAL_DATA_DIR": "<EVAL_DATA_DIR>",
"AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
"AZURE_TENANT_ID": "<AZURE_TENANT_ID>",
"AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
"AZURE_OPENAI_API_KEY": "<AZURE_OPENAI_API_KEY>",
"AZURE_OPENAI_ENDPOINT": "<AZURE_OPENAI_ENDPOINT>",
"AZURE_AI_SEARCH_API_KEY": "<AZURE_AI_SEARCH_API_KEY>",
"AZURE_OPENAI_DEPLOYMENT": "<AZURE_OPENAI_DEPLOYMENT>",
"AZURE_AI_SEARCH_ENDPOINT": "<AZURE_AI_SEARCH_ENDPOINT>",
"AZURE_OPENAI_API_VERSION": "<AZURE_OPENAI_API_VERSION>",
"AZURE_AI_PROJECT_ENDPOINT": "<AZURE_AI_PROJECT_ENDPOINT>",
"AZURE_AI_SEARCH_API_VERSION": "<AZURE_AI_SEARCH_API_VERSION>",
"SEARCH_AUTHENTICATION_METHOD": "<SEARCH_AUTHENTICATION_METHOD>"
}
}
}
}You can use this MCP Server to orchestrate and interact with Azure AI Foundry services, giving you a unified, tool-driven interface for models, knowledge bases, evaluations, and agent workflows. It enables secure, scalable access to a growing set of capabilities for building, testing, deploying, and evaluating AI solutions within Foundry.
To work with the Foundry MCP Server, you connect an MCP client that speaks the MCP protocol. You will discover and invoke tools across Models, Knowledge, Evaluation, and Finetuning to perform common tasks such as listing models, deploying a model to Azure AI Services, indexing data, running evaluations, or querying agents. The server acts as a centralized broker that handles authentication, authorization, and tool orchestration, so you can focus on building your workflows without managing individual service calls.
Prerequisites you need on your machine: a compatible runtime for MCP clients and a local environment ready for running MCP commands. You will also set up a workspace with an MCP configuration file that points to the server path.
Manual setup instructions are provided for running the MCP client locally in a development environment. You will create a workspace, optionally use a .env file to manage sensitive values, and configure the MCP client to start the Foundry MCP Server runner via a standard MCP JSON configuration.
{
"servers": {
"mcp_foundry_server": {
"type": "stdio",
"command": "uvx",
"args": [
"--prerelease=allow",
"--from",
"git+https://github.com/azure-ai-foundry/mcp-foundry.git",
"run-azure-ai-foundry-mcp",
"--envFile",
"${workspaceFolder}/.env"
]
}
}
}Retrieves a list of supported models from the Azure AI Foundry catalog.
Retrieves a list of state-of-the-art AI models from Microsoft Research available in Azure AI Foundry Labs.
Retrieves detailed information for a specific model from the Azure AI Foundry catalog.
Provides comprehensive instructions and setup guidance for starting to work with models from Azure AI Foundry and Azure AI Foundry Labs.
Get model quotas for a specific Azure location.
Creates an Azure AI Services account.
Retrieves a list of deployments from Azure AI Services.
Deploys a model on Azure AI Services.
Creates a new Azure AI Foundry project.
Retrieve all names of indexes from the AI Search Service
Retrieve all index schemas from the AI Search Service
Retrieve the schema for a specific index from the AI Search Service
Creates a new index
Modifies the index definition of an existing index
Removes an existing index
Adds a document to the index
Removes a document from the index
Searches a specific index to retrieve matching documents
Returns the total number of documents in the index
Retrieve all names of indexers from the AI Search Service
Retrieve the full definition of a specific indexer from the AI Search Service
Create a new indexer in the Search Service with the skill, index and data source
Delete an indexer from the AI Search Service by name
Retrieve all names of data sources from the AI Search Service
Retrieve the full definition of a specific data source
Retrieve all names of skill sets from the AI Search Service
Retrieve the full definition of a specific skill set
Retrieves the contents of a local file path (sample JSON, document etc)
Retrieves the contents of a URL (sample JSON, document etc)
List all available text evaluators.
List all available agent evaluators.
Show input requirements for each text evaluator.
Show input requirements for each agent evaluator.
Run one or multiple text evaluators on a JSONL file or content.
Convert evaluation output into a readable Markdown report.
Query an agent and evaluate its response using selected evaluators. End-to-End agent evaluation.
Evaluate a single agent interaction with specific data (query, response, tool calls, definitions).
List all Azure AI Agents available in the configured project.
Send a query to a specified agent.
Query the default agent defined in environment variables.
Retrieves detailed status and metadata for a specific fine-tuning job, including job state, model, creation and finish times, hyperparameters, and any errors.
Lists all fine-tuning jobs in the resource, returning job IDs and their current statuses for easy tracking and management.
Retrieves a chronological list of all events for a specific fine-tuning job, including timestamps and detailed messages for each training step, evaluation, and completion.
Retrieves training and evaluation metrics for a specific fine-tuning job, including loss curves, accuracy, and other relevant performance indicators for monitoring and analysis.
Lists all files available for fine-tuning in Azure OpenAI, including file IDs, names, purposes, and statuses.
Executes any tool dynamically generated from the Swagger specification, allowing flexible API calls for advanced scenarios.
Lists all dynamically registered tools from the Swagger specification, enabling discovery and automation of available API endpoints.