【Kiro】MCP Servers使用
Servers
本指南介绍了可用的 Model Context Protocol(MCP)服务器,它们的功能,以及如何在 Kiro 中进行设置。
AWS Documentation Server
AWS Documentation Server 提供了对 AWS 文档的访问、搜索能力以及内容推荐。
功能特性
搜索 AWS 文档,涵盖所有服务
阅读文档页面,以 markdown 格式呈现
获取相关内容推荐,根据当前文档页面提供补充信息
设置说明
前置条件
安装 uv(由 Astral 提供):
# On macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows PowerShell
irm https://astral.sh/uv/install.ps1 | iex
安装 Python 3.10 或更新版本:
uv python install 3.10
配置方式
macOS/Linux 示例配置:
{
"mcpServers": {
"aws-docs": {
"command": "uvx",
"args": ["awslabs.aws-documentation-mcp-server@latest"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false,
"autoApprove": []
}
}
}
Windows 示例配置:
{
"mcpServers": {
"aws-docs": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"awslabs.aws-documentation-mcp-server@latest",
"awslabs.aws-documentation-mcp-server.exe"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
}
}
}
}
可用工具
使用示例
# 搜索关于 S3 bucket 策略的资料
Search AWS documentation for S3 bucket policies
# 阅读指定文档
Read the AWS Lambda function URLs documentation
# 获取推荐内容
Find related content to AWS ECS task definitions
GitHub MCP Server
GitHub MCP Server 让 Kiro 可以与 GitHub 仓库、Issue 和 Pull Request 进行交互。
功能特性
访问仓库信息,包括文件、提交记录、分支等
创建与管理 issue 和 pull request
在仓库中搜索内容
设置说明
前置条件
创建 GitHub Personal Access Token:
访问 GitHub Settings > Developer settings > Personal access tokens
生成一个包含
repo
和user
权限的 Token
配置方式
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-token"
}
}
}
}
可用工具
使用示例
# 获取仓库信息
Show me information about the tensorflow/tensorflow repository
# 搜索代码
Find examples of React hooks in facebook/react
# 创建
issueCreate an issue in my repository about the login bug
Web Search Server
Web Search MCP Server 使用 Brave Search API 提供网页搜索功能。
功能特性
进行网页搜索,获取外部信息
获取实时信息,包括 Kiro 训练数据中没有的数据
设置说明
前置条件
获取 Brave Search API key:
注册并申请 API key:https://brave.com/search/api/
配置方式
{
"mcpServers": {
"web-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bravesearch"
],
"env": {
"BRAVE_API_KEY": "your-api-key"
}
}
}
}
可用工具
使用示例
# 查找 TypeScript 5.0 新特性
Find the latest information about TypeScript 5.0 features
# 查找新闻
What are the latest developments in quantum computing?
Remote MCP Servers(远程 MCP 服务器)
目前 Kiro 支持本地 stdio MCP 服务器,但你也可以使用 mcp-remote
npm 包,将请求转发到远程 MCP 接口。
设置说明
前置条件
如果尚未安装,请先安装 Node.js 和 NPM
配置方式
{
"mcpServers": {
"my-remote-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://<remote-mcp-endpoint>",
"--transport",
"sse"
],
"disabled": false
}
}
}
自定义 MCP 服务器
你可以根据自己的需求创建自定义 MCP 服务器,以扩展 Kiro 的功能。
创建自定义服务器的步骤
选择一门编程语言(如 Python、Node.js 等)
实现 MCP 协议(可以使用已有的库)
定义工具及其功能
打包并发布你的服务器
自定义开发资源
其他 MCP 服务器
数据库类服务器
PostgreSQL MCP Server:用于查询和管理 PostgreSQL 数据库
MongoDB MCP Server:与 MongoDB 数据库交互
开发工具类
Docker MCP Server:管理 Docker 容器与镜像
Kubernetes MCP Server:与 Kubernetes 集群交互
云服务商相关
Azure MCP Server:连接并操作 Azure 服务与资源
GCP MCP Server:管理 Google Cloud Platform 的资源
如何查找更多 MCP 服务器
你可以通过以下方式发现更多 MCP 服务器:
访问 MCP Registry
在 npm 或 PyPI 上搜索关键词
"mcp-server"