The Model Context Protocol (MCP) is an open standard that lets AI agents connect to external tools and data sources. Canaries can be configured with MCP servers that advertise tools that are enticing to attackers to help detect attackers probing for AI tools.
Step 1: Enable MCP server
Open your Canary's configuration settings, scroll down to MCP Server and click the switch to enabled the MCP server. You can manually configure the server name, port and tools, or continue to the next steps to automatically generate tools by selecting a relevant use case.
Step 2: Generate a config
Click on the Pick a use case component and select your chosen use case. Click on Generate config. The server instructions and a set of tools will be generated for you.
Step 3: Customise the generated config
The generated config can optionally be customised by editing the content in any of the fields. Tools will respond with a standard Access denied error message by default, but you can add a custom response by clicking on the response type select and changing it to Custom response. You can also add more tools by clicking on the Add MCP Tool button, or remove existing tools by clicking on the X button.
Step 4: Insert an AWS API Key Canarytoken into a tool response
You can easily insert a AWS API Key Canarytoken into a tool's response by clicking Insert AWS Canarytoken. A new AWS Canarytoken will be generated for you and set as the tool's response.
Interacting with the Canary MCP server
Since AI agents already understand how to interact with MCP servers (even without the MCP server being explicitly configured through the harness), you can point your favourite agent to the Canary MCP server URI and ask it to explore the MCP server. Once the agent starts listing and calling tools on the MCP server, you'll see alerts on your Console like the one shown below.