服务器

本指南介绍了可用的 Model Context Protocol(MCP)服务器,它们的功能,以及如何在 Kiro 中进行设置。

⚠️ 警告 请仅添加来自可信来源的 MCP 服务器,并仔细阅读所有相关的授权协议和文档。Kiro 不对任何第三方 MCP 服务器或其他软件包负责。


AWS Documentation Server

AWS Documentation Server 提供了对 AWS 文档的访问、搜索能力以及内容推荐。

功能特性

  • 搜索 AWS 文档,涵盖所有服务
  • 阅读文档页面,以 markdown 格式呈现
  • 获取相关内容推荐,根据当前文档页面提供补充信息

设置说明

前置条件

  1. 安装 uv(由 Astral 提供)
  1. # macOS / Linux
  2. curl -LsSf https://astral.sh/uv/install.sh | sh
  3. # Windows PowerShell
  4. irm https://astral.sh/uv/install.ps1 | iex
  1. 安装 Python 3.10 或更新版本
  1. uv python install 3.10

配置方式

macOS/Linux 示例配置:

  1. {
  2. "mcpServers": {
  3. "aws-docs": {
  4. "command": "uvx",
  5. "args": ["awslabs.aws-documentation-mcp-server@latest"],
  6. "env": {
  7. "FASTMCP_LOG_LEVEL": "ERROR"
  8. },
  9. "disabled": false,
  10. "autoApprove": []
  11. }
  12. }
  13. }

Windows 示例配置:

  1. {
  2. "mcpServers": {
  3. "aws-docs": {
  4. "command": "uv",
  5. "args": [
  6. "tool",
  7. "run",
  8. "--from",
  9. "awslabs.aws-documentation-mcp-server@latest",
  10. "awslabs.aws-documentation-mcp-server.exe"
  11. ],
  12. "env": {
  13. "FASTMCP_LOG_LEVEL": "ERROR"
  14. }
  15. }
  16. }
  17. }

可用工具

工具名称 描述
mcp_aws_docs_search_documentation 在 AWS 文档中搜索特定主题
mcp_aws_docs_read_documentation 以 markdown 格式读取 AWS 文档
mcp_aws_docs_recommend 获取与当前文档相关的内容推荐

使用示例

  1. # 搜索关于 S3 bucket 策略的资料
  2. Search AWS documentation for S3 bucket policies
  3. # 阅读指定文档
  4. Read the AWS Lambda function URLs documentation
  5. # 获取推荐内容
  6. Find related content to AWS ECS task definitions

GitHub MCP Server

GitHub MCP Server 让 Kiro 可以与 GitHub 仓库、Issue 和 Pull Request 进行交互。

功能特性

  • 访问仓库信息,包括文件、提交记录、分支等
  • 创建与管理 issue 和 pull request
  • 在仓库中搜索内容

设置说明

前置条件

  1. 创建 GitHub Personal Access Token

    • 访问 GitHub Settings > Developer settings > Personal access tokens
    • 生成一个包含 repouser 权限的 Token

配置方式

  1. {
  2. "mcpServers": {
  3. "github": {
  4. "command": "npx",
  5. "args": ["-y", "@modelcontextprotocol/server-github"],
  6. "env": {
  7. "GITHUB_PERSONAL_ACCESS_TOKEN": "your-token"
  8. }
  9. }
  10. }
  11. }

可用工具

工具名称 描述
github_get_repository 获取仓库信息
github_get_file 从仓库中获取文件内容
github_search_code 在仓库中搜索代码
github_create_issue 创建新的 issue
github_create_pull_request 创建新的 pull request

使用示例

  1. # 获取仓库信息
  2. Show me information about the tensorflow/tensorflow repository
  3. # 搜索代码
  4. Find examples of React hooks in facebook/react
  5. # 创建 issue
  6. Create an issue in my repository about the login bug

Web Search Server

Web Search MCP Server 使用 Brave Search API 提供网页搜索功能。

功能特性

  • 进行网页搜索,获取外部信息
  • 获取实时信息,包括 Kiro 训练数据中没有的数据

设置说明

前置条件

  1. 获取 Brave Search API key

配置方式

  1. {
  2. "mcpServers": {
  3. "web-search": {
  4. "command": "npx",
  5. "args": ["-y", "@modelcontextprotocol/server-bravesearch"],
  6. "env": {
  7. "BRAVE_API_KEY": "your-api-key"
  8. }
  9. }
  10. }
  11. }

可用工具

工具名称 描述
brave_search 使用 Brave Search 进行网页搜索
brave_search_news 搜索新闻文章

使用示例

  1. # 查找 TypeScript 5.0 新特性
  2. Find the latest information about TypeScript 5.0 features
  3. # 查找新闻
  4. What are the latest developments in quantum computing?

Remote MCP Servers(远程 MCP 服务器)

目前 Kiro 支持本地 stdio MCP 服务器,但你也可以使用 mcp-remote npm 包,将请求转发到远程 MCP 接口。

设置说明

前置条件

  1. 如果尚未安装,请先安装 Node.js 和 NPM

配置方式

  1. {
  2. "mcpServers": {
  3. "my-remote-mcp": {
  4. "command": "npx",
  5. "args": ["mcp-remote", "https://<remote-mcp-endpoint>", "--transport", "sse"],
  6. "disabled": false
  7. }
  8. }
  9. }

自定义 MCP 服务器

你可以根据自己的需求创建自定义 MCP 服务器,以扩展 Kiro 的功能。

创建自定义服务器的步骤

  1. 选择一门编程语言(如 Python、Node.js 等)
  2. 实现 MCP 协议(可以使用已有的库)
  3. 定义工具及其功能
  4. 打包并发布你的服务器

自定义开发资源


其他 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 服务器:

  1. 访问 MCP Registry
  2. 查看 GitHub MCP 组织
  3. 在 npm 或 PyPI 上搜索关键词 "mcp-server"