Skip to content

How to add MCP servers to Kiro

Kiro reads MCP servers from ~/.kiro/settings/mcp.json (for you) or .kiro/settings/mcp.json (for one project), under the "mcpServers" key. A local server’s entry is a command with args; a remote server’s entry is its URL in "url".
Last checked against Amazon Web Services’s docs

Quick facts

Local servers
Yes (stdio)
Remote servers
Streamable HTTP: YesURL field: url
Sign-in
OAuth: Yes · Headers: YesOAuth settings go in an oauth object (clientId, redirectUri, clientMetadataUrl, scopes). A client secret is supported in the CLI only.
Tool approval
Yes
Platforms
macOS, Windows and Linux

Step by step

Add a remote server

Example: a hosted server whose latest check on AI-Powered answered, Context7.

Add to ~/.kiro/settings/mcp.json

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Use .kiro/settings/mcp.json to add it to one workspace only.

Add a local server

Example: a popular npm package that needs no keys, Chrome DevTools MCP.

Add to ~/.kiro/settings/mcp.json

{
  "mcpServers": {
    "chrome-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    }
  }
}

Use .kiro/settings/mcp.json to add it to one workspace only.

Add a server that needs an API key or header

Local servers read keys from environment variables. Replace each <NAME> placeholder with your own value in the file on your computer; never paste real keys into a website.

Example: Context7.

Add to ~/.kiro/settings/mcp.json

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ],
      "env": {
        "CONTEXT7_API_KEY": "<CONTEXT7_API_KEY>"
      }
    }
  }
}

Use .kiro/settings/mcp.json to add it to one workspace only.

Request headers for remote servers: yes. OAuth settings go in an oauth object (clientId, redirectUri, clientMetadataUrl, scopes). A client secret is supported in the CLI only.

Add a server that signs in with OAuth

OAuth sign-in: yes. Add the server by its URL as a remote server, then sign in when asked. OAuth settings go in an oauth object (clientId, redirectUri, clientMetadataUrl, scopes). A client secret is supported in the CLI only.

Config file locations

ForSystemPath
You (every project)All systems~/.kiro/settings/mcp.json
One projectAll systems.kiro/settings/mcp.json

Get the config for any server

Search the MCP servers on AI-Powered and copy the Kiro snippet for one.

Adding several servers? Build one config with the MCP config generator.

Servers that work in Kiro

Popular servers with an install config for Kiro and no failing latest check.
  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 476K GitHub stars
    • Developer tools
  2. Browser Use

    MCP server

    Browser agents and cloud browsers for AI, with an MCP server for web tasks

    • 7 tools
    • Remote
    • Freemium
    • 122K GitHub stars
    • Browser automation
  3. MCP server for AI clients to scrape sites with HTTP and stealth browser sessions

    Runs locally
    • 17 tools
    • Open source
    • 105K GitHub stars
    • Web search and scraping
  4. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 89K GitHub stars
    • Design and media
  5. Context7

    MCP server

    Version-specific library docs and code examples piped into coding agents via MCP

    • 2 tools
    • Remote
    • Freemium
    • 65.4K GitHub stars
    • Developer tools
  6. MCP server and CLI that let coding agents drive and inspect a live Chrome browser

    Runs locally
    • Open source
    • 59.1K GitHub stars
    • Browser automation
  7. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 49.1K GitHub stars
    • Knowledge and memory
  8. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    • Remote
    • Open source
    • 34.7K GitHub stars
    • Developer tools
  9. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.7K GitHub stars
    • Developer tools
  10. ffmpeg-skill

    MCP server

    Local FFmpeg video and audio editing tools for coding agents over MCP

    Runs locally
    • Open source
    • 10.3K GitHub stars
    • Design and media
  11. Ha MCP

    MCP server

    MCP server for managing and automating Home Assistant from AI assistants

    Runs locally
    • 8 tools
    • Open source
    • 8.1K GitHub stars
    • Productivity
  12. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.8K GitHub stars
    • Analytics and data

Troubleshooting

${VAR} isn’t replaced
Kiro only expands environment variables you approve. Add the name to the “Mcp Approved Env Vars” setting.
A remote URL is rejected
Remote servers must use https. Plain http is only allowed for localhost.
A server from your user file behaves differently in one project
Workspace settings win over user settings when both define the same server, and an agent’s own mcpServers win over both.
Sign-in fails with an issuer mismatch
Check the server’s OAuth settings and run /mcp auth in Kiro CLI to sign in again.
A local server fails with “npx” (or uvx, docker) not found
Apps started from a dock or menu may not see your terminal’s PATH. Use the full path of the command (run which npx in a terminal to find it), then restart Kiro.
You can’t tell whether the server or Kiro is at fault
Test the server on its own with the MCP Inspector (npx @modelcontextprotocol/inspector). If it lists tools there, check the Kiro setup.

Safety notes

  • Kiro asks before running tools unless they are in autoApprove. Avoid "*", which approves every tool.
  • A workspace .kiro/settings/mcp.json can start programs. Read it before opening an unknown repository.
  • Hide tools you don’t need with disabledTools.
  • A local server runs on your computer with your access to files and the network. Add only servers whose source you trust.

Questions about MCP in Kiro

Where is Kiro’s mcp.json?

In ~/.kiro/settings/mcp.json for every workspace and .kiro/settings/mcp.json in a project. Kiro merges both, and the workspace file wins.

Does Kiro support remote MCP servers?

Yes. Give the server a url over https, with headers for a token or an oauth object for sign-in.

How do I keep an API key out of mcp.json?

Write ${MY_KEY} in env or headers and add MY_KEY to the “Mcp Approved Env Vars” setting.

Can I turn off a server without deleting it?

Yes. Set "disabled": true on it.

Can I use local MCP servers in Kiro?

Yes. Kiro starts a local server as a command on your computer (stdio).

Can Kiro sign in to MCP servers with OAuth?

Yes. OAuth settings go in an oauth object (clientId, redirectUri, clientMetadataUrl, scopes). A client secret is supported in the CLI only.

Other MCP clients