MCP工具 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/Sidd27/infrawise
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp--": {
"command": "npx",
"args": ["-y", "infrawise"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP工具 执行以下任务... Claude: [自动调用 MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp__": {
"command": "npx",
"args": ["-y", "infrawise"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
sidd27.github.io/infrawise — Understand your infrastructure, not just your code.
Infrawise gives AI coding assistants deterministic infrastructure awareness.
It statically analyzes your codebase, cloud infrastructure, and database schemas, then exposes that context through MCP so tools like Claude Code can understand your actual tables, indexes, query patterns, and service relationships instead of guessing from source files alone.
---
Infrawise has two analysis layers:
npm install -g infrawise
or use without installing:
npx infrawise start --claude
---
Infrawise is read-only. Minimum IAM policy required:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["dynamodb:ListTables", "dynamodb:DescribeTable"],
"Resource": "*"
}
]
}
For SSO profiles, log in before running infrawise:
aws sso login --profile myprofile
Create a read-only user for infrawise:
CREATE USER infrawise_ro WITH PASSWORD 'yourpassword';
GRANT CONNECT ON DATABASE yourdb TO infrawise_ro;
GRANT USAGE ON SCHEMA public TO infrawise_ro;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO infrawise_ro;
For Amazon RDS: allow inbound on port 5432 from your machine's IP in the security group.
---
cd your-project
infrawise start --claude
That's it. Infrawise will:
infrawise.yaml (first time only).mcp.json so your editor auto-connects on every future launchEvery time after:
claude # no infrawise command needed — editor manages the connection
Analysis is cached for 24 hours. When the cache is stale, infrawise stdio (spawned automatically by your editor) refreshes it at session start. File changes are detected within the session and the code graph is updated automatically.
Findings (3 total)
1. [HIGH] Full table scan detected on DynamoDB table "Orders"
listAllOrders() scans without any filter — reads every item in the table.
Recommendation: Replace Scan with Query using a partition key or add a GSI.
2. [MEDIUM] PostgreSQL table "users" has no index on column "email"
Filtering on "email" causes sequential scans.
Recommendation: CREATE INDEX CONCURRENTLY idx_users_email ON users(email);
3. [MEDIUM] DynamoDB table "Sessions" accessed by 6 distinct code paths
High access concentration may create hot partition issues at scale.
---
The demo/localstack/ directory runs infrawise against real AWS APIs emulated locally via LocalStack — an open-source tool that spins up a full AWS environment in Docker so you can test AWS integrations at zero cost, with no real AWS account needed. See demo/localstack/README.md for setup instructions.
---
| Flag | Description | |||
|---|---|---|---|---|
-c, --config <path> | Path to infrawise.yaml (default: infrawise.yaml) | |||
-r, --repo <path> | Repository to scan (default: current directory) | |||
--no-cache | Skip reading/writing the cache | |||
-o, --output <path> | Save findings as a markdown report, e.g. report.md | |||
--severity <level> | Only show findings at or above this level: high \ | medium \ | low \ | verify |
```bash
infrawise.yaml is generated by infrawise start (or infrawise init to create the file only) and lives in your repo root. Every service must be explicitly enabled: true — infrawise never connects to anything not listed in config.
Connection strings support ${ENV_VAR} substitution so passwords never need to be committed:
postgres:
enabled: true
connectionString: postgresql://infrawise_ro:${DB_PASSWORD}@host:5432/mydb
Full example:
project: payments-service
aws:
profile: default # AWS profile from ~/.aws/credentials
region: ap-south-1
dynamodb:
enabled: true
includeTables: # omit to include all tables
- Orders
- Users
postgres:
enabled: true
connectionString: postgresql://infrawise_ro:${DB_PASSWORD}@host:5432/mydb
mysql:
enabled: false
connectionString: ''
mongodb:
enabled: false
connectionString: ''
sqs:
enabled: true
sns:
enabled: true
ssm:
enabled: true
paths: [] # filter by prefix e.g. ["/myapp/prod"]
secretsManager:
enabled: true
lambda:
enabled: true
includeFunctions: # omit to include all functions
- myFunction
- anotherFunction
eventbridge:
enabled: true
rds:
enabled: false
s3:
enabled: false
kafka:
enabled: false
cloudwatchLogs:
enabled: false
logGroupPrefixes: []
windowHours: 24
analysis:
sampleSize: 100
| Command | What it does |
|---|---|
infrawise start | **Primary command** — init + analyze + write editor MCP config, then exit |
infrawise start --claude | Same as above, then opens Claude Code |
infrawise start --cursor | Same as above, then opens Cursor |
infrawise init | Generate infrawise.yaml only (no analysis, no editor config) |
infrawise auth | Select or switch AWS profile |
infrawise analyze | Force a full re-scan — useful after major infrastructure changes |
infrawise dev | HTTP transport alternative — starts server at localhost:3000/mcp |
infrawise stdio | Stdio transport — auto-managed by editors via .mcp.json (rarely run directly) |
infrawise doctor | Validate AWS access, DB connectivity, and config |
If your editor or workflow requires an HTTP MCP endpoint instead of stdio:
infrawise dev # starts server at http://localhost:3000/mcp
Add to your editor's MCP config:
{
"mcpServers": {
"infrawise": {
"url": "http://localhost:3000/mcp"
}
}
}
Infrawise 是一个基础设施分析工具,可以扫描和理解你的 AWS 服务、数据库和代码库。它通过 MCP(Model Context Protocol)与 Claude Code 编辑器集成,提供 15 个专用工具帮助开发者快速分析基础设施配置。项目采用 npm 发布,支持全局安装或通过 npx 直接运行,无需本地安装即可使用。
Infrawise 提供两层分析能力:首先扫描 AWS 服务配置(如 DynamoDB、RDS 等),其次分析 PostgreSQL 数据库结构和代码库内容。所有操作均为只读模式,确保安全性。通过生成 `.mcp.json` 配置文件,自动与 Claude Code 编辑器集成,开发者可在编辑器中直接访问所有分析工具,无需额外配置。
安装 Infrawise 有两种方式:全局安装使用 `npm install -g infrawise`,或通过 `npx infrawise start --claude` 直接运行无需安装。AWS 环境需配置最小 IAM 权限(仅允许 DynamoDB 列表和描述操作)。PostgreSQL 可选,需创建只读用户并授予 SELECT 权限。若使用 AWS SSO,需先执行 `aws sso login --profile` 登录。
进入项目目录执行 `infrawise start --claude` 启动。首次运行会提示配置问题并生成 `infrawise.yaml` 配置文件,随后扫描 AWS 服务、数据库和代码库。工具自动生成 `.mcp.json` 供编辑器使用,并打开 Claude Code 加载全部 15 个 MCP 工具。后续只需在编辑器中运行 `claude` 命令,无需重复执行 infrawise 命令。
`infrawise.yaml` 由 `infrawise start` 自动生成,位于项目根目录。所有服务必须显式设置 `enabled: true` 才会被连接,确保安全性。连接字符串支持 `${ENV_VAR}` 环境变量替换,密码等敏感信息无需提交到代码库。主要配置选项包括:`-c` 指定配置文件路径、`-r` 指定扫描仓库、`--no-cache` 跳过缓存、`-o` 指定输出路径。
CLI 主要命令:`infrawise start` 为核心命令,执行初始化、分析和编辑器配置写入;`infrawise start --claude` 在上述基础上自动打开 Claude Code;`infrawise init` 仅生成配置文件;`infrawise analyze` 执行分析操作。所有命令均支持通过标志位自定义行为,如指定配置文件路径、仓库位置、缓存策略和输出格式。
高质量的MCP工具,支持AWS基础设施分析
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,MCP工具 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | infrawise |
| 原始描述 | 开源MCP工具:MCP server for AWS infrastructure analysis — Lambda, DynamoDB, SQS, PostgreSQL, 。⭐13 · TypeScript |
| Topics | awstypescriptmcp |
| GitHub | https://github.com/Sidd27/infrawise |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-11 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端