Loading image...Kiro
  • CLI
  • Powers
  • Autonomous agent
  • Enterprise
  • Pricing
  • Docs
SIGN INDOWNLOADS
Loading image...Kiro
Loading image...Kiro
Product
  • About Kiro
  • CLI
  • Powers
  • Autonomous agent
  • Pricing
  • Downloads
For
  • Enterprise
  • Startups
Resources
  • Documentation
  • Blog
  • Changelog
  • FAQs
  • Report a bug
  • Suggest an idea
  • Billing support
Social
Site TermsLicenseResponsible AI PolicyLegalPrivacy PolicyCookie Preferences
  1. Docs
  2. CLI
  3. MCP

Model Context Protocol (MCP)

On this page
  • What is MCP?
  • Setting up MCP
  • Command line
  • mcp.json file
  • Agent configuration
  • Troubleshooting
  • Common issues and solutions
  • Additional resources
  • Next steps

Model Context Protocol (MCP) extends Kiro's capabilities by connecting to specialized servers that provide additional tools and context. This guide helps you set up, configure, and use MCP servers with Kiro CLI.

Tip

Within an interactive chat session, you can use the /mcp slash command to see which MCP servers are currently loaded. See Slash Commands for more details.

What is MCP?

MCP is a protocol that allows Kiro to communicate with external servers to access specialized tools and information. For example, the AWS Documentation MCP server provides tools to search, read, and get recommendations from AWS documentation directly within Kiro.

With MCP, you can:

  • Access specialized knowledge bases and documentation
  • Integrate with external services and APIs
  • Extend Kiro's capabilities with domain-specific tools
  • Create custom tools for your specific workflows

Setting up MCP

Before using MCP, make sure you have any specific prerequisites for the MCP servers you want to use (listed in each server's documentation)

There are two ways of configuring MCP servers in Kiro CLI:

Command line

bash
# Add new MCP server kiro-cli mcp add \ --name "awslabs.aws-documentation-mcp-server" \ --scope global \ --command "uvx" \ --args "awslabs.aws-documentation-mcp-server@latest" \ --env "FASTMCP_LOG_LEVEL=ERROR" \ --env "AWS_DOCUMENTATION_PARTITION=aws"

mcp.json file

MCP servers can be loaded from the MCP configuration file in your workspace (<project-root>/.kiro/settings/mcp.json) or from user level settings (~/.kiro/settings/mcp.json)

json
{ "mcpServers": { "local-server-name": { "command": "command-to-run-server", "args": ["arg1", "arg2"], "env": { "ENV_VAR1": "value1", "ENV_VAR2": "value2" }, "disabled": false } } }

Agent configuration

The mcpServers field specifies which MCP servers the agent has access to. Each server is defined with a command and optional arguments.

json
{ "name": "myagent", "description": "My special agent", "mcpServers": { "fetch": { "command": "fetch3.1", "args": [] } }, "includeMcpJson": false }

The includeMcpJson field determines whether to include MCP servers defined in the workspace and user level MCP configuration files. When set to true, the agent will have access to all MCP servers defined in the user and workspace level configurations in addition to those defined in the agent's mcpServers field.

Troubleshooting

Common issues and solutions

IssueSolution
Connection failuresVerify prerequisites are installed correctly
Permission errorsCheck that tokens and API keys are valid
Tool not respondingReview MCP logs for specific error messages
Configuration not loadingValidate JSON syntax and save the config file

Additional resources

  • Official MCP Documentation

Next steps

Now that you understand MCP basics, explore these resources:

  • Examples - Practical examples of using MCP servers with Kiro CLI
  • Security Best Practices - Best practices for secure MCP usage
Page updated: December 9, 2025
Troubleshooting
Configuration