

# Step 2: Add the MCP server to your client

Add the server to Claude Code with one command. For other MCP clients, paste the configuration from [Step 1](gs-mcp-details.md) into the client’s MCP configuration file.

 **To add the server to Claude Code** 

1. In a terminal, run the following command. Replace {{my-profile}} with your AWS profile and {{us-east-1}} with the Region of your Agent Context.

   ```bash
   claude mcp add agent-context \
     --env AWS_PROFILE={{my-profile}} --env AWS_REGION={{us-east-1}} \
     -- uvx mcp-proxy-for-aws https://context-mcp.{{us-east-1}}.api.aws/mcp \
     --service context-mcp --region {{us-east-1}}
   ```

1. Confirm that Claude Code can reach the server.

   ```bash
   claude mcp get agent-context
   ```

   The output shows `Status: ✔ Connected`.

1. Start a new Claude Code session so that it loads the server’s tools.