This guide explains how to effectively use Model Context Protocol (MCP) tools with Kiro to enhance your productivity and access specialized capabilities.
Once you've configured MCP servers, you can interact with their tools in several ways:
The simplest way to use MCP tools is to ask questions related to the server's domain:
Tell me about Amazon Bedrock
How do I configure S3 bucket policies?
Kiro automatically selects the appropriate MCP tool based on your question.
You can request specific MCP tools by describing what you want to do:
Search AWS documentation for information about ECS task definitions
Get recommendations for AWS CloudFormation best practices
For more control, provide explicit context to the tool picker:
#[aws-docs] search_documentation Tell me about AWS Lambda
This format specifies both the server (aws-docs
) and the tool (search_documentation
).
The Kiro panel includes an MCP servers tab that provides:
To use this feature:
When Kiro wants to use an MCP tool, it requests your approval first:
To avoid repeated approval prompts for tools you trust:
autoApprove
array:{ "mcpServers": { "aws-docs": { "autoApprove": [ "mcp_aws_docs_search_documentation", "mcp_aws_docs_read_documentation" ] } } }
Search AWS documentation for S3 bucket versioning
This uses the mcp_aws_docs_search_documentation
tool to find relevant AWS documentation.
Read the AWS Lambda function URLs documentation
This uses the mcp_aws_docs_read_documentation
tool to retrieve and display documentation content.
Find related content to AWS ECS task definitions
This uses the mcp_aws_docs_recommend
tool to suggest related documentation.
Show me information about the tensorflow/tensorflow repository
This retrieves details about the specified GitHub repository.
Find examples of React hooks in facebook/react
This searches for code matching your query in the specified repository.
Create an issue in my repository about the login bug
This helps you create a new GitHub issue with appropriate details.
You can use multiple MCP tools in sequence for complex tasks:
First search AWS documentation for ECS task definitions, then find related content about service discovery
MCP tools work best when combined with your local context:
Based on my Terraform code, help me optimize my AWS Lambda configuration using best practices from AWS documentation
You can use MCP tools within Kiro Specs to enhance your development workflow:
In the implementation phase, use AWS documentation to ensure our S3 bucket configuration follows best practices
If you encounter issues when using MCP tools:
For information on available MCP servers and their tools, see the MCP Servers page.
Tools