Dynamic MCP Search and Install Architecture

A reference architecture for an AI agent that can search for and install Model Context Protocol (MCP) servers dynamically.

ai
skillset
mcp
2628

This blueprint demonstrates a dynamic architecture for an MCP server that allows the AI agent to search for and install Model Context Protocol (MCP) servers from a known registry.

The architecture features a MCP server integration that connected to the main skillset that is composed of two abilities: one for searching available MCP servers and another for installing a selected MCP server by its URL.

By combining search and installation capabilities, this blueprint enables agents to discover and integrate new MCP servers on-demand, creating a self-extending system that grows its functionality as needed. This approach is particularly valuable when building agents that need to adapt to evolving requirements without manual reconfiguration.

Skillset

This example uses a dedicated Skillset. Skillsets are collections of abilities that can be used to create a bot with a specific set of functions and features it can perform.

  • Search MCP Servers

    Search for Model Context Protocol (MCP) servers by name or description
  • Install MCP

    Bring MCP (model context protocol) functions into context

Terraform Code

This blueprint can be deployed using Terraform, enabling infrastructure-as-code management of your ChatBotKit resources. Use the code below to recreate this example in your own environment.

Copy this Terraform configuration to deploy the blueprint resources:

Next steps:

  1. Save the code above to a file named main.tf
  2. Set your API key: export CHATBOTKIT_API_KEY=your-api-key
  3. Run terraform init to initialize
  4. Run terraform plan to preview changes
  5. Run terraform apply to deploy

Learn more about the Terraform provider

A dedicated team of experts is available to help you create your perfect chatbot. Reach out via or chat for more information.