Logo MCP Foundry

MCP Foundry

Tổ chức
microsoft-foundry

A MCP Server for Azure AI Foundry: it's now moved to cloud, check the new Foundry MCP Server

Nhà phát hànhmicrosoft-foundry
Kho mãmcp-foundry
Ngôn ngữPython
Bản fork
121
Sao
260
Công cụ có sẵn
0
Phương thức truyền tảistdio
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    MCP Foundry cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    260 sao và 121 bản fork từ kho mã được liên kết.

MCP Server that interacts with Azure AI Foundry (experimental)

A Model Context Protocol server for Azure AI Foundry, providing a unified set of tools for models, knowledge, evaluation, and more.

GitHub watchers GitHub forks GitHub stars

Azure AI Community Discord

Important notice

MCP Server for Azure AI Foundry (experimental) has moved to the cloud, now as Foundry MCP Server (preview). Please check the official public documentation at Get started with Foundry MCP Server (preview). This GitHub repository contains the outdated information on the previous experimental server implementation, and will not be updated further. Instead, refer to the new, remotely hosted and managed Foundry MCP Server, that has the following benefits:

  • Cloud-hosted interface for AI tool orchestration: Foundry MCP Server (preview) provides a secure, scalable endpoint for MCP-compliant clients. You don't need to deploy infrastructure, enabling seamless integration and multi-agent scenarios.
  • Identity and access control: The server enforces authentication and authorization with Microsoft Entra ID. It performs all operations within the authenticated user's permissions (On-Behalf-Of flow).
  • Scenario-focused, extensible tools: The MCP Server exposes a growing set of tools for read and write operations on models, deployments, evaluations, and agents in Microsoft Foundry. The tools are extensible, letting developers and agents interact with services without knowing backend APIs or data schemas.
  • Accelerated agent and developer productivity: Natural language workflows (via MCP clients and large language models) enable rapid tool discovery and invocation, streamlining development and multi-agent orchestration.

The rest of this repo (including codebase) explains the now-deprecated MCP Server that interactes with Azure AI Foundry (experimental).


Available Tools

Capabilities: Models

CategoryToolDescription
Explorelist_models_from_model_catalogRetrieves a list of supported models from the Azure AI Foundry catalog.
list_azure_ai_foundry_labs_projectsRetrieves a list of state-of-the-art AI models from Microsoft Research available in Azure AI Foundry Labs.
get_model_details_and_code_samplesRetrieves detailed information for a specific model from the Azure AI Foundry catalog.
Buildget_prototyping_instructions_for_github_and_labsProvides comprehensive instructions and setup guidance for starting to work with models from Azure AI Foundry and Azure AI Foundry Labs.
Deployget_model_quotasGet model quotas for a specific Azure location.
create_azure_ai_services_accountCreates an Azure AI Services account.
list_deployments_from_azure_ai_servicesRetrieves a list of deployments from Azure AI Services.
deploy_model_on_ai_servicesDeploys a model on Azure AI Services.
create_foundry_projectCreates a new Azure AI Foundry project.

Capabilities: Knowledge

CategoryToolDescription
Indexlist_index_namesRetrieve all names of indexes from the AI Search Service
list_index_schemasRetrieve all index schemas from the AI Search Service
retrieve_index_schemaRetrieve the schema for a specific index from the AI Search Service
create_indexCreates a new index
modify_indexModifies the index definition of an existing index
delete_indexRemoves an existing index
Documentadd_documentAdds a document to the index
delete_documentRemoves a document from the index
Queryquery_indexSearches a specific index to retrieve matching documents
get_document_countReturns the total number of documents in the index
Indexerlist_indexersRetrieve all names of indexers from the AI Search Service
get_indexerRetrieve the full definition of a specific indexer from the AI Search Service
create_indexerCreate a new indexer in the Search Service with the skill, index and data source
delete_indexerDelete an indexer from the AI Search Service by name
Data Sourcelist_data_sourcesRetrieve all names of data sources from the AI Search Service
get_data_sourceRetrieve the full definition of a specific data source
Skill Setlist_skill_setsRetrieve all names of skill sets from the AI Search Service
get_skill_setRetrieve the full definition of a specific skill set
Contentfk_fetch_local_file_contentsRetrieves the contents of a local file path (sample JSON, document etc)
fk_fetch_url_contentsRetrieves the contents of a URL (sample JSON, document etc)

Capabilities: Evaluation

CategoryToolDescription
Evaluator Utilitieslist_text_evaluatorsList all available text evaluators.
list_agent_evaluatorsList all available agent evaluators.
get_text_evaluator_requirementsShow input requirements for each text evaluator.
get_agent_evaluator_requirementsShow input requirements for each agent evaluator.
Text Evaluationrun_text_evalRun one or multiple text evaluators on a JSONL file or content.
format_evaluation_reportConvert evaluation output into a readable Markdown report.
Agent Evaluationagent_query_and_evaluateQuery an agent and evaluate its response using selected evaluators. End-to-End agent evaluation.
run_agent_evalEvaluate a single agent interaction with specific data (query, response, tool calls, definitions).
Agent Servicelist_agentsList all Azure AI Agents available in the configured project.
connect_agentSend a query to a specified agent.
query_default_agentQuery the default agent defined in environment variables.

Capabilities: Finetuning

CategoryToolDescription
Finetuningfetch_finetuning_statusRetrieves detailed status and metadata for a specific fine-tuning job, including job state, model, creation and finish times, hyperparameters, and any errors.
list_finetuning_jobsLists all fine-tuning jobs in the resource, returning job IDs and their current statuses for easy tracking and management.
get_finetuning_job_eventsRetrieves a chronological list of all events for a specific fine-tuning job, including timestamps and detailed messages for each training step, evaluation, and completion.
get_finetuning_metricsRetrieves training and evaluation metrics for a specific fine-tuning job, including loss curves, accuracy, and other relevant performance indicators for monitoring and analysis.
list_finetuning_filesLists all files available for fine-tuning in Azure OpenAI, including file IDs, names, purposes, and statuses.
execute_dynamic_swagger_actionExecutes any tool dynamically generated from the Swagger specification, allowing flexible API calls for advanced scenarios.
list_dynamic_swagger_toolsLists all dynamically registered tools from the Swagger specification, enabling discovery and automation of available API endpoints.

Prompt Examples

Models

Explore models

  • How can you help me find the right model?
  • What models can I use from Azure AI Foundry?
  • What OpenAI models are available in Azure AI Foundry?
  • What are the most popular models in Azure AI Foundry? Pick me 10 models.
  • What models are good for reasoning? Show me some examples in two buckets, one for large models and one for small models.
  • Can you compare Phi models and explain differences?
  • Show me the model card for Phi-4-reasoning.
  • Can you show me how to test a model?
  • What does free playground in Azure AI Foundry mean?
  • Can I use GitHub token to test models?
  • Show me latest models that support GitHub token.
  • Who are the model publishers for the models in Azure AI Foundry?
  • Show me models from Meta.
  • Show me models with MIT license.

Build prototypes

  • Can you describe how you can help me build a prototype using the model?
  • Describe how you can build a prototype that uses an OpenAI model with my GitHub token. Don't try to create one yet.
  • Recommend me a few scenarios to build prototypes with models.
  • Tell me about Azure AI Foundry Labs.
  • Tell me more about Magentic One
  • What is Omniparser and what are potential use cases?
  • Can you help me build a prototype using Omniparser?

Deploy OpenAI models

  • Can you help me deploy OpenAI models?
  • What steps do I need to take to deploy OpenAI models on Azure AI Foundry?
  • Can you help me understand how I can use OpenAI models on Azure AI Foundry using GitHub token? Can I use it for production?
  • I already have an Azure AI services resource. Can I deploy OpenAI models on it?
  • What does quota for OpenAI models mean on Azure AI Foundry?
  • Get me current quota for my AI services resource.

Quick Start with GitHub Copilot

Use The Template

This GitHub template has minimal setup with MCP server configuration and all required dependencies, making it easy to get started with your own projects.

Install in VS Code

This helps you automatically set up the MCP server in your VS Code environment under user settings. You will need uvx installed in your environment to run the server.

Manual Setup

  1. Install uv by following Installing uv.

  2. Start a new workspace in VS Code.

  3. (Optional) Create .env file in the root of your workspace to set environment variables.

  4. Create .vscode/mcp.json in the root of your workspace.

    json
    {
        "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"
                ]
            }
        }
    }
  5. Click Start button for the server in .vscode/mcp.json file.

  6. Open GitHub Copilot chat in Agent mode and start asking questions.

See More examples for advanced setup for more details on how to set up the MCP server.

Setting the Environment Variables

To securely pass information to the MCP server, such as API keys, endpoints, and other sensitive data, you can use environment variables. This is especially important for tools that require authentication or access to external services.

You can set these environment variables in a .env file in the root of your project. You can pass the location of .env file when setting up MCP Server, and the server will automatically load these variables when it starts.

See example .env file for a sample configuration.

CategoryVariableRequired?Description
ModelGITHUB_TOKENNoGitHub token for testing models for free with rate limits.
KnowledgeAZURE_AI_SEARCH_ENDPOINTAlwaysThe endpoint URL for your Azure AI Search service. It should look like this: https://<your-search-service-name>.search.windows.net/.
AZURE_AI_SEARCH_API_VERSIONNoAPI Version to use. Defaults to 2025-03-01-preview.
SEARCH_AUTHENTICATION_METHODAlwaysservice-principal or api-search-key.
AZURE_TENANT_IDYes when using service-principalThe ID of your Azure Active Directory tenant.
AZURE_CLIENT_IDYes when using service-principalThe ID of your Service Principal (app registration)
AZURE_CLIENT_SECRETYes when using service-principalThe secret credential for the Service Principal.
AZURE_AI_SEARCH_API_KEYYes when using api-search-keyThe API key for your Azure AI Search service.
EvaluationEVAL_DATA_DIRAlwaysPath to the JSONL evaluation dataset
AZURE_OPENAI_ENDPOINTText quality evaluatorsEndpoint for Azure OpenAI
AZURE_OPENAI_API_KEYText quality evaluatorsAPI key for Azure OpenAI
AZURE_OPENAI_DEPLOYMENTText quality evaluatorsDeployment name (e.g., gpt-4o)
AZURE_OPENAI_API_VERSIONText quality evaluatorsVersion of the OpenAI API
AZURE_AI_PROJECT_ENDPOINTAgent servicesUsed for Azure AI Agent querying and evaluation

[!NOTE] Model

  • GITHUB_TOKEN is used to authenticate with GitHub API for testing models. It is not required if you are exploring models from Foundry catalog.

Knowledge

  • See Create a search service to learn more about provisioning a search service.
  • Azure AI Search supports multiple authentication methods. You can use either a Microsoft Entra authentication or an Key-based authentication to authenticate your requests. The choice of authentication method depends on your security requirements and the Azure environment you are working in.
  • See Authenication to learn more about authentication methods for a search service.

Evaluation

  • If you're using agent tools or safety evaluators, make sure the Azure project credentials are valid.
  • If you're only doing text quality evaluation, the OpenAI endpoint and key are sufficient.

License

MIT License. See LICENSE for details.

Dùng MCP MCP Foundry với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối MCP Foundry, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm MCP Foundry làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của MCP Foundry.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "mcp-foundry": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của MCP Foundry, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của MCP Foundry.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng MCP Foundry giúp tôi làm việc này không?
MCP Foundry
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng MCP Foundry.

Câu hỏi thường gặp

Máy chủ MCP MCP Foundry dùng để làm gì?

MCP Foundry là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP MCP Foundry với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng MCP Foundry với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP MCP Foundry với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối MCP Foundry, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP MCP Foundry với TypingMind?

MCP Foundry hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP MCP Foundry cung cấp những công cụ nào trong TypingMind?

MCP Foundry cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP MCP Foundry không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu MCP Foundry yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇