Skip to content
GitHub (opens in a new tab)

Cloud & infrastructure · MCP Firewall integration

Give AI AWS visibility without exposing infrastructure changes.

Put AWS investigation tools behind GateRook’s MCP Firewall. Expose resource state, CloudWatch metrics and alarms for the account and regions you configure. GateRook resolves credentials locally and returns permitted results through read-only tools; this connector cannot provision, restart or delete resources.

AWS, in your AI workflow

Illustrative example

Connection in GateRook

stage-aws

AWS

stage / QA
Regions
eu-central-1
Credentials source
profile
Profile
stage-reader
Role ARN
arn:aws:iam::412398765012:role/gw-readonly

The security boundary

Your AI requests a tool. GateRook checks its mode and policy, requires approval when configured, and resolves credentials locally before an allowed call runs.

Understand the request flow

Ask your AI

List the RDS databases in our stage AWS account in eu-central-1.

aws_describe · arguments
{
  "connection": "stage-aws",
  "region": "eu-central-1",
  "type": "AWS::RDS::DBInstance",
  "limit": 10
}
Example result
{
  "provider": "aws",
  "account": "412398765012",
  "region": "eu-central-1",
  "type": "AWS::RDS::DBInstance",
  "mode": "list",
  "resources": [
    {
      "identifier": "stage-orders",
      "properties": {
        "DBInstanceIdentifier": "stage-orders",
        "Engine": "postgres"
      }
    }
  ],
  "count": 1,
  "truncated": false,
  "nextCursor": null
}

Sample configuration and output, not a live connection. Replace example values with your environment. Tool names here are connector names; the endpoint may expose a connection-specific name.

Useful access. Explicit control.

What you can do with AWS and AI

Investigate database pressure

Find the RDS instance, then ask for CPU, connection count or storage metrics over the incident window. Combine the infrastructure evidence with a PostgreSQL or MySQL query through the same endpoint.

Understand a service dependency

Inspect supported instances, load balancers, ECS services and queues. Ask AI to explain the resource relationships using the state returned by AWS.

Triage an alarm

Read current alarm states and the associated metric series before deciding which service to investigate. Every MCP call is available in the activity log.

From service to MCP Firewall

How to connect AWS

GateRook must be running on a computer that can reach your service. Open Connections, choose Add connection, and select AWS. Give the connection a name and environment.

New to GateRook? Start with the full setup guide.
  1. Choose the AWS identity

    Prepare a local AWS profile or access key with permission to read the resources and metrics you need. If you use AssumeRole, configure its trust relationship and ExternalId before adding the connection.

  2. Add an AWS connection

    Open Connections, add AWS, name it stage-aws and choose the stage environment. Enter the regions, credential source and optional role. Keep the generated session policy enabled.

  3. Test the account and scope

    Run Test connection and inspect the resolved account. Check the Cloud policy for permitted services, regions and resource filters, then save the connection. A successful identity check does not grant permissions missing from AWS IAM.

  4. Choose the endpoint and tool modes

    Add the tested connection to an endpoint. In Tools & policies, enable only the tools needed for the task. Start with Read only where supported; use Approval for any selected mutation and leave other tools Off. A connection alone does not grant an AI client access.

  5. Connect your AI and verify the first call

    In Clients, choose your AI app and endpoint, review the connection details, and connect. Try this guide’s example in Playground before asking your AI. Open Activity to inspect the tool, target, decision and returned result. The getting started guide covers this shared flow.

Connection settings

Configure AWS in GateRook

These are example values for the connection form. Enter credentials into GateRook’s secret fields, not into an AI prompt. Requirements and alternatives are noted per field.

AWS connection configuration
SettingExampleHow to use it
Regionseu-central-1Add one or more AWS regions. The first region is the default for tool calls.
Credentials sourceprofileUse an existing AWS profile on this computer, or choose accessKey and enter its secret in the protected field.
Profilestage-readerThe named profile must exist in your local AWS configuration.
Role ARNarn:aws:iam::412398765012:role/gw-readonlyOptional AssumeRole target. Configure the role trust and ExternalId to match the connection.
Session policygeneratedWhen assuming a role, GateRook adds a generated read-only session policy. Without a role, that session policy cannot be enforced by AWS.
Account ID412398765012Enter the expected account or inspect the account found by Test connection. Later calls reject an account mismatch.

Know what you expose

AWS tools and access boundaries

The connector defines available operations. GateRook’s MCP Firewall enforces endpoint modes and connection policies before an AI client can use them.

Available tools and access behavior
ToolPurposeAccess behavior
aws_describeList resources by CloudFormation type, or inspect one identifier returned by a list. Supports allowed regions, parent identifiers, property selection and post-list filters.Read only
aws_metricsQuery CloudWatch metrics and metric math, list recently active metrics, or inspect alarms. Query up to ten metrics in one request.Read only

Before you enable access

  • This connector reads resources and metrics. It does not provision, restart, deploy or delete AWS resources.
  • Resource discovery uses AWS Cloud Control and depends on type support and IAM permissions. Some resource types require a parent identifier.
  • Connection regions and the environment Cloud policy restrict what can be returned. GateRook cannot grant permissions that the AWS identity does not have.
  • The generated AWS session policy applies to AssumeRole sessions; the local read-only tools remain the only exposed operations when a role is not configured.

GateRook stores local connection secrets encrypted and resolves them for connectors. Allowed tool results are returned to your AI client and may be processed by its provider. Scope the data you expose as well as the actions you allow.

Practical answers

AWS connection questions

Use Test connection to isolate service access problems. Use Playground and Activity to inspect endpoint permissions and tool calls.

Can I connect Claude or Cursor to AWS without putting an AWS key in its config?

Yes. Configure AWS credentials or a local profile in GateRook, then connect the AI client to the GateRook endpoint. The client uses GateRook endpoint authentication; it does not need the AWS secret access key.

Can this AWS MCP connector change infrastructure?

No. Its tools are aws_describe and aws_metrics. Both are read-only. Use the results to investigate and plan a change through your existing deployment process.

Why is a resource missing?

Check the connection region, Cloud policy filters and AWS permissions. Also check whether the CloudFormation type supports the Cloud Control operation and whether its list operation needs a parent.

Keep exploring

Google Cloud

Control Google Cloud access through GateRook. Keep service account keys local, scope read-only inventory and monitoring, and enable log access deliberately.

Kubernetes

Protect Kubernetes access with GateRook’s MCP Firewall. Restrict namespaces, enable log access deliberately and approve enabled rollout or manifest changes.

PostgreSQL

Put PostgreSQL behind GateRook’s MCP Firewall. Follow the illustrated setup, scope AI queries, approve an UPDATE and inspect its Activity audit trail.

Browse all integration guides

Your MCP Firewall. Your access rules.

Control AI access to AWS.

Start with read-only access. Approve changes. Inspect the audit trail.

Read the getting started guide

Get GateRook

Download GateRook 0.9.2 for your Mac, or get the Windows app from Microsoft Store.

macOS

Version 0.9.2 for Apple Silicon (arm64). This download does not support Intel Macs.

Open the DMG and drag GateRook to Applications.

Windows

Available for free from Microsoft Store. Install GateRook and receive updates through the Store.

macOS release notes and checksums (opens in a new tab)