Back to MCP directory
publicPublicdnsLocal runtime

aws-monthly-cost-report-mcp-server

这是一个关于使用Node.js开发MCP服务器以获取AWS月度成本报告的项目,需要配置AWS环境和Claude Desktop集成。

article

README

🚀 MCP服务器开发指南(针对Node.js)

本指南聚焦于Node.js环境下的MCP服务器开发,为你提供详细步骤,助你快速搭建并配置服务器,以满足Claude Desktop的使用需求。

🚀 快速开始

你可通过阅读以下链接中的内容,着手准备MCP服务器,以便供Claude Desktop使用。 https://modelcontextprotocol.io/quickstart/server#node

✨ 系统要求

  • Node.js版本需为16或更高
  • 需安装并验证AWS CLI 2.23.3

📦 安装指南

npm安装与构建

在项目目录下,执行以下命令进行依赖安装和项目构建:

npm install
npm run build

📚 详细文档

claude_desktop_config.json配置文件

你需要在 env 中指定环境变量,修改配置后,请重启Claude Desktop。以下是配置文件示例:

{
    "mcpServers": {
        "aws-monthly-cost-report": {
            "command": "node",
            "args": [
                "/path/to/aws-monthly-cost-report-mcp-server/build/index.js"
            ],
            "env": {
                "AWS_REGION": "ap-northeast-3",
                "AWS_PROFILE": "default",
                "AWS_S3_ENDPOINT": "https://s3.ap-northeast-3.amazonaws.com",
                "AWS_COST_REPORT_BUCKET": "your-backet-name"
            },
            "disabled": false,
            "autoApprove": [
                "get_env"
            ]
        }
    }
}

提示语示例

你可以使用以下提示语与服务器进行交互:

告诉我这个月的AWS成本
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