Cover image
Try Now
2025-03-30

MCP(模型上下文协议)服务器连接MCP客户端,例如Claude Desktop。

3 years

Works with Finder

1

Github Watches

0

Github Forks

2

Github Stars

AWS Instances MCP (Model Context Protocol) Server

Overview

This is a Model Context Protocol (MCP) server that retrieves and lists running AWS EC2 instances for a specified region using the AWS SDK.

Prerequisites

  • Node.js (version 18 or later)
  • AWS Account
  • AWS Access Key and Secret Access Key

Setup Instructions

1. Clone the Repository

git clone https://github.com/codewithdpk/aws-mcp-server.git
cd aws-mcp-server

2. Install Dependencies

npm install

3. Configure AWS Credentials

Create a .env file in the project root with your AWS credentials:

AWS_ACCESS_KEY_ID=your_access_key_id
AWS_ACCESS_SECRET_KEY=your_secret_access_key

4. Build the server

To build the server locally:

npm run build

5. Testing your server with Claude for Desktop

Claude for Desktop is not yet available on Linux. Linux users can proceed to the Building a client tutorial to build an MCP client that connects to the server we just built.

First, make sure you have Claude for Desktop installed. You can install the latest version here. If you already have Claude for Desktop, make sure it’s updated to the latest version.

We’ll need to configure Claude for Desktop for whichever MCP servers you want to use. To do this, open your Claude for Desktop App configuration at ~/Library/Application Support/Claude/claude_desktop_config.json in a text editor. Make sure to create the file if it doesn’t exist.

You’ll then add your servers in the mcpServers key. The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured.

In this case, we’ll add our single weather server like so:

{
    "mcpServers": {
        "aws-mcp-server": {
            "command": "node",
            "args": [
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/aws-mcp-server/build/index.js"
            ]
        }
    }
}

Troubleshooting

  • Verify AWS credentials have appropriate EC2 read permissions
  • Ensure you have the latest version of Claude Desktop App
  • Check that all dependencies are correctly installed

Features

  • Retrieve running EC2 instances for a specified AWS region
  • Support for multiple availability zones
  • Detailed instance information including:
    • Instance ID
    • Instance Type
    • Public IP
    • Private IP
    • Instance State

Tools

  • get-aws-instances: Retrieves list of running AWS instances for a given region

Example Usage

server.tool("get-aws-instances", {
  region: "ap-south-1"
})

Technologies

  • MCP
  • TypeScript
  • AWS SDK
  • Model Context Protocol (MCP)
  • Zod for type validation

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • rahulc0dy
  • 测试您的MCP服务器。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

    Reviews

    1 (1)
    Avatar
    user_CKG1Krl5
    2025-04-17

    Aws-mcp-server developed by codewithdpk is an incredible solution for managing multiple control planes. Its seamless integration and smooth functionality make it a must-have tool for any enterprise looking to optimize their cloud environment. Highly recommend checking it out!