Skip to content
MCP-Bridge
Cloud Infrastructure

AWS EC2 Instance Connect MCP Config

Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH public keys to EC2, providing users a simple and secure way to connect to their instances.

Config URL

Use this URL in any MCP-compatible client to fetch the config automatically.

https://mcp-bridge.pages.dev/config/amazonaws-com-ec2-instance-connect.json

Configuration JSON

Use curl https://mcp-bridge.pages.dev/config/amazonaws-com-ec2-instance-connect.json to fetch programmatically.

{
  "mcpServers": {
    "amazonaws-com-ec2-instance-connect": {
      "command": "npx",
      "args": ["-y","@mcp/amazonaws-com-ec2-instance-connect"],
      "env": {
      "AWS_EC2_INSTANCE_CONNECT_API_KEY": "your_aws_ec2_instance_connect_api_key"
}
    }
  }
}

How to Use

Claude Desktop

Paste the config JSON into your claude_desktop_config.json.

Full instructions →

Cursor

Go to Cursor Settings → MCP Servers → Add with the JSON above.

CLI / curl

Fetch the config programmatically:

curl https://mcp-bridge.pages.dev/config/amazonaws-com-ec2-instance-connect.json

Environment Variables

AWS_EC2_INSTANCE_CONNECT_API_KEY

Replace your_aws_ec2_instance_connect_api_key with your actual aws ec2 instance connect api key

Endpoints

POST/#X-Amz-Target=AWSEC2InstanceConnectService.SendSSHPublicKey

SendSSHPublicKey

POST/#X-Amz-Target=AWSEC2InstanceConnectService.SendSerialConsoleSSHPublicKey

SendSerialConsoleSSHPublicKey