Kiro MCP β Connecting External Tools
What is MCP?
Section titled βWhat is MCP?βModel Context Protocol (MCP) is an open standard developed by Anthropic that allows AI systems to connect to external data sources, APIs, and tools. In Kiro, MCP gives the AI agent access to live information beyond whatβs in your codebase β database schemas, project management tickets, version control history, cloud resources, and more.
Think of MCP servers as plugins that extend what Kiro can see and do:
Kiro AI Agent β βββ [Your Codebase] β always available βββ [MCP: GitHub] β reads issues, PRs, repos βββ [MCP: Jira] β reads tickets, sprints, epics βββ [MCP: SQL Server] β reads live schema, runs queries βββ [MCP: GitLab] β reads pipelines, merge requestsWithout MCP, Kiro only knows whatβs in your open files and project. With MCP, it can look up a Jira ticket by ID, check your actual database schema before generating migrations, or read a GitHub issue before writing code to fix it.
MCP vs Built-in Context
Section titled βMCP vs Built-in Contextβ| Without MCP | With MCP | |
|---|---|---|
| Database schema | Must paste it manually | Kiro queries it live |
| Jira ticket details | You describe the ticket | Kiro reads the ticket directly |
| GitHub issue | You summarize it | Kiro fetches full thread |
| AWS resources | You explain the setup | Kiro reads from AWS |
How MCP Works in Kiro
Section titled βHow MCP Works in KiroβKiro uses MCP servers as background processes that it can call during a conversation. When you say βImplement the feature described in PROJ-1234β, Kiro:
- Recognises the ticket reference
- Calls the Atlassian MCP server to fetch PROJ-1234
- Reads the ticket description, acceptance criteria, and comments
- Uses that context when writing the spec and code
Configuring MCP in Kiro
Section titled βConfiguring MCP in KiroβMCP servers are configured in Kiroβs settings UI or via a .kiro/mcp.json file in your project root.
Via Kiro Settings UI
Section titled βVia Kiro Settings UIβ- Open Kiro β Settings (gear icon)
- Navigate to MCP Servers
- Click Add MCP Server
- Choose the server type or enter custom config
Via .kiro/mcp.json
Section titled βVia .kiro/mcp.jsonβCreate a file at .kiro/mcp.json in your project root:
{ "mcpServers": { "github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" } }, "atlassian": { "command": "npx", "args": ["-y", "@atlassian/mcp-atlassian"], "env": { "JIRA_URL": "https://your-org.atlassian.net", "JIRA_EMAIL": "${JIRA_EMAIL}", "JIRA_API_TOKEN": "${JIRA_API_TOKEN}" } } }}Environment variables prefixed with ${...} are resolved from your shell environment β keep secrets out of the file and in your environment instead.
MCP Server Lifecycle
Section titled βMCP Server LifecycleβEach MCP server runs as a separate process that Kiro starts and stops automatically:
Kiro starts β MCP servers launch in backgroundUser makes request β Kiro calls relevant MCP server(s)Kiro session ends β MCP servers shut downServers are only contacted when Kiro determines theyβre relevant to the current task. They donβt run continuously or consume resources when idle.
Checking MCP Status
Section titled βChecking MCP StatusβIn Kiro, you can see which MCP servers are connected and healthy:
- Kiro panel β look for the MCP indicator (plug icon)
- Green = connected and responding
- Red = failed to start (check credentials and server package)
- Grey = not yet needed (will start on first relevant request)
Security Considerations
Section titled βSecurity Considerationsβ- Never commit API tokens or credentials to
.kiro/mcp.jsonβ use environment variable references - Add
.kiro/mcp.jsonto.gitignoreif it contains any org-specific URLs you donβt want shared - MCP servers run locally β credentials are not sent to Kiroβs cloud servers, only to the target service (Jira, GitHub, etc.)
- Review what permissions each MCP server requests β some can write as well as read
Available MCP Integrations
Section titled βAvailable MCP IntegrationsβThe following pages cover the most common MCP servers used with Kiro:
- Atlassian MCP β Jira and Confluence
- GitHub MCP β Issues, PRs, and repositories
- GitLab MCP β Merge requests and pipelines
- SQL Server MCP β Database schema and queries