Back to MCP directory
publicPublicdnsLocal runtime

aws-service-authorization-reference

AWS服务授权参考信息MCP服务器,提供IAM操作、资源和条件键的查询功能,帮助LLM获取AWS服务授权数据。

article

README

🚀 AWS 服务参考信息 MCP 服务器

这是一个模型上下文协议 (MCP) 服务器,可提供对 AWS 服务参考信息的访问。借助该服务器,大语言模型 (LLM) 能够检索 IAM 动作、资源和条件键。

🚀 快速开始

此服务器可助力大语言模型访问 AWS 服务参考信息,下面为你介绍相关的使用指引。

📚 详细文档

博客文章!

以下是一系列介绍该工具的博客文章:

AWS 服务授权参考是什么?

AWS 服务授权参考是一份文档 此处可用,其中 AWS 提供了关于所有 IAM 动作、资源和条件键的详尽参考数据,将以前分散在多个服务文档中的信息汇总在一起。

2024 年,AWS 添加了对访问此数据的程序支持。

自 2025 年 3 月 13 日起,服务参考信息包括 资源和条件键。

可用工具

| 属性 | 详情 | |------|------| | service_codes | 列出所有具有可用文档的服务代码 | | service_stats | 告诉我们某个服务有多少动作、资源和条件键被记录。需传入参数 service (字符串,必需):服务的代码 | | service_actions | 某个服务的所有动作的逗号分隔列表。需传入参数 service (字符串,必需):服务的代码 | | service_resources | 某个服务的所有资源的逗号分隔列表。需传入参数 service (字符串,必需):服务的代码 | | service_condition_keys | 某个服务的所有条件键的逗号分隔列表。需传入参数 service (字符串,必需):服务的代码 | | service_action_information | 获取单个 AWS 服务动作的授权参考数据(资源和条件键)。需传入参数 service (字符串,必需):服务的代码;action (字符串,必需):动作的代码 | | service_resource_information | 获取单个 AWS 服务资源的授权参考数据(资源和条件键)。需传入参数 service (字符串,必需):服务的代码;resource (字符串,必需):资源的代码 | | service_condition_key_information | 获取单个 AWS 服务条件键的授权参考数据。需传入参数 service (字符串,必需):服务的代码;condition_key (字符串,必需):条件键的名称 |

📦 安装指南

要安装 MCP 服务器,请按照以下步骤操作:

# 克隆存储库
git clone https://github.com/your-repository/mcp-server.git
cd mcp-server

# 安装依赖项
pip install -r requirements.txt

# 启动服务器
python server.py

🔧 技术细节

配置

要在 AWS 上配置 MCP 服务器,请按照以下步骤操作:

  1. 创建 IAM 角色并附加适当的策略。
  2. 在 Amazon ECS 或 Amazon EKS 中部署服务器容器。

调试

要使用 MCP 检查器进行调试:

mcp-inspector inspect --endpoint http://localhost:5000

📄 许可证

本项目受 MIT 许可证的保护。有关详细信息,请参阅 LICENSE 文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client