Skip to content

MCP Servers

MCP (Model Context Protocol) servers extend Kiro with additional tools. Configure them in .kiro/settings/mcp.json in your workspace:

Kiro CLI: MCP can also be configured globally (~/.kiro/settings/mcp.json) or per-agent in ~/.kiro/agents/{name}.json. See MCP Overview and AWS MCP Integration for the terminal workflow.

Terminal window
mkdir -p .kiro/settings
cat > .kiro/settings/mcp.json << 'EOF'
{
"mcpServers": {
"aws": {
"command": "uvx",
"args": ["awslabs.aws-documentation-mcp-server@latest"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
}
}
}
}
EOF

This example configures the AWS Documentation MCP server, which gives Kiro access to AWS documentation for more accurate infrastructure guidance.

MCP servers can be configured at two levels:

LevelPathScope
Workspace.kiro/settings/mcp.jsonApplies only to the current project
User~/.kiro/settings/mcp.jsonApplies globally across all workspaces

If both files exist, workspace settings take precedence. Use workspace-level for project-specific servers and user-level for servers you use everywhere.

Each server entry supports these properties:

PropertyDescription
commandCommand to run the server (e.g., uvx, npx, node)
argsArguments to pass to the command
envEnvironment variables for the server process (supports ${VAR} expansion)
disabledSet to true to temporarily disable without removing config
autoApproveTool names to auto-approve without prompting (use "*" for all)
disabledToolsTool names to omit from the agent
ServerUse caseCommand
AWS DocumentationAWS service docs and best practicesuvx awslabs.aws-documentation-mcp-server@latest
AWS CDKCDK construct guidanceuvx awslabs.cdk-mcp-server@latest
TerraformTerraform provider docsCommunity MCP servers available

Prerequisite for uvx: The uvx command comes from the uv Python package manager. If you did not install it during the WSL2 packages step, install it now:

Terminal window
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc
uvx --version

uv is not included in the essential packages installed earlier because it’s only needed if you use MCP servers that rely on uvx.

After saving .kiro/settings/mcp.json:

  • Changes apply automatically when you save the file — servers reconnect without restarting Kiro
  • Open the Kiro panel to check server status (running, connected, or error)
  • If a server fails to start, check:
    • The command is available in your WSL PATH
    • Required environment variables are set
    • Network access is available (some servers fetch remote resources)
    • JSON syntax is valid (no missing commas or brackets)