Use an MCP Server tool to connect agents to external systems
Create an AI agent that consumes external knowledge from an MCP Server and converts it into reliable, structured documentation outputs.
Tools allow agents to interact with repositories and data sources, expanding what they can do beyond generic knowledge. By the end of this quickstart, you will have an AI agent capable of retrieving external data through the Deepwiki MCP Server tool and returning responses in a structured output format.

What is an MCP Server tool?
An MCP (Model Context Protocol) tool enables an Agent to connect to external systems and data sources. Rather than depending only on its pre-trained context, the Agent can retrieve curated information and use it to generate accurate and up-to-date outputs.
Prerequisites
Before you begin, make sure you have the following:
An API key from an LLM provider (for example, OpenAI, Anthropic, or Google).
The API key registered in Digibee as a Secret Key account. For details, see how to create a Secret Key account.
Next, add the Agent Component to the pipeline right after the trigger and configure it as follows:
Model: Select your preferred model (for example, OpenAI – GPT-4o Mini).
Account: Click the gear icon next to the Model parameter, go to Account, and select the Secret Key account you created in Digibee.
Now that the basic configuration is complete, you can configure your MCP Tool and prompts.
Configuring an MCP Server tool
Use case
In this example, the agent connects to the DeepWiki MCP Server, a free, remote service that provides access to public repositories. The goal is to retrieve technical knowledge about Event-Driven Architecture and transform it into structured documentation.
The agent will use an MCP Server tool combined with System Message, User Message, and a JSON Schema.
Step 1: Add the MCP Server tool
In the Agent Component configuration, click + (plus button) in Tools and select MCP Server.
Configure the MCP Server with the following values:
Name:
DeepWikiServer URL:
https://mcp.deepwiki.com/mcp
Click Confirm.
Once configured, the agent can retrieve external data from the DeepWiki MCP server and use it as context.
Step 2: Define the prompts
System Message: Establishes the Agent’s role and writing standards.
User Message: Describes the specific task the Agent must perform using the MCP Tool.
Step 3: Define the JSON Schema
Once the agent is properly configured, open the Model configuration and enable the Use JSON Schema option. The JSON Schema guarantees that the output is structured, validated, and ready for downstream consumption.
Step 4: Execute the Agent and analyze the output
In the Test Panel, click Play. After execution, the agent returns a validated JSON object that follows the defined schema.
Example output:
The body wrapper is part of the Digibee Integration Platform execution response.
Result
You now have a working agent that connects to an MCP Server, retrieves external data, and transforms it into consistent, machine-readable documentation. Congratulations!
You can extend this agent by changing the MCP Server, prompts, or JSON Schema to support additional use cases.
Related topics
AI expense report validation system: Explore a real-world implementation in this How-to guide.
Insurance claim analysis with AI: Build a multi-agent system to help review insurance claims.
Agent Component — Complete configuration guide: Explore all the configuration options for this component.
Last updated
Was this helpful?