Skip to main content

AWS Bedrock AgentCore MCP Server

Model Context Protocol (MCP) server for Amazon Bedrock AgentCore — providing operational API tools that let AI coding agents manage AgentCore resources directly.

Overview

This MCP server gives AI agents (Claude Code, Kiro, Cursor, VS Code, Codex CLI) direct access to AgentCore platform APIs. Agents can create and manage runtimes, store and retrieve memories, configure identity providers, deploy gateways, and manage policies — all through standard MCP tool calls backed by real boto3 API calls.

122 tools across 7 operational primitives + documentation search.

Primitive Tools What it does
Runtime 14 Deploy, manage, and invoke agent runtimes and endpoints
Memory 21 Create memory resources, store events, semantic search, batch operations, extraction jobs
Identity 21 Manage workload identities, API key providers, OAuth2 providers, token vault, resource policies
Gateway 15 Create and manage API gateways, gateway targets, resource policies
Policy 15 Create policy engines, manage policies, generate and review policy assets
Browser 25 Cloud-based browser automation — navigate, click, type, screenshot, extract data
Code Interpreter 10 Sandboxed code execution, file upload/download/listing, package installation
Documentation 2 Search and fetch AgentCore docs

Prerequisites

  1. Install uv from Astral
  2. Install Python 3.10+ using uv python install 3.10
  3. AWS credentials configured (AWS_PROFILE, AWS_ACCESS_KEY_ID, or IAM role)

Installation

Kiro Cursor VS Code
Add to Kiro Install MCP Server Install on VS Code

Configuration

Add to your MCP client configuration (e.g., ~/.kiro/settings/mcp.json):

{
  "mcpServers": {
    "bedrock-agentcore-mcp-server": {
      "command": "uvx",
      "args": ["awslabs.amazon-bedrock-agentcore-mcp-server@latest"],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR"
      }
    }
  }
}

Windows

{
  "mcpServers": {
    "bedrock-agentcore-mcp-server": {
      "command": "uv",
      "args": [
        "tool", "run", "--from",
        "awslabs.amazon-bedrock-agentcore-mcp-server@latest",
        "awslabs.amazon-bedrock-agentcore-mcp-server.exe"
      ],
      "env": { "FASTMCP_LOG_LEVEL": "ERROR" }
    }
  }
}

Tool Configuration

All primitive tools are enabled by default. Use environment variables to control which tools are registered:

# Disable specific primitives
AGENTCORE_DISABLE_TOOLS=browser,code_interpreter

# Or enable only specific primitives
AGENTCORE_ENABLE_TOOLS=memory,runtime,identity

When AGENTCORE_ENABLE_TOOLS is set, only the listed primitives are registered. Documentation tools (search_agentcore_docs, fetch_agentcore_doc) are always available.

Primitives

Runtime (14 tools)

Manage agent runtimes and endpoints on AgentCore. Create runtimes, deploy endpoint versions, invoke agents, and manage sessions.

Key tools: create_agent_runtime, create_agent_runtime_endpoint, invoke_agent_runtime, stop_runtime_session, get_runtime_guide

Memory (21 tools)

Create memory resources, store conversation events, retrieve semantically relevant memories, and manage extraction jobs. Supports both short-term (session events) and long-term (extracted insights) memory.

Key tools: memory_create, memory_create_event, memory_retrieve_records, memory_batch_create_records, get_memory_guide

Note: The MCP tools call AgentCore Memory APIs directly via boto3. The agentcore CLI is not required to use these tools.

Identity (21 tools)

Manage workload identities, API key credential providers, OAuth2 credential providers, token vault configuration, and resource policies. Data plane operations (token retrieval) are intentionally excluded — they return live credentials that should not flow through LLM context.

Key tools: identity_create_workload_identity, identity_create_api_key_provider, identity_create_oauth2_provider, identity_get_token_vault, get_identity_guide

Gateway (15 tools)

Create and manage API gateways that transform existing APIs into agent-callable MCP tools. Manage gateway targets (Lambda, OpenAPI, Smithy, MCP servers) and resource policies. The InvokeGateway data plane operation is excluded — it requires agent-runtime JWTs and can return sensitive content.

Key tools: gateway_create, gateway_target_create, gateway_target_synchronize, gateway_resource_policy_put, get_gateway_guide

Policy (15 tools)

Create policy engines, manage authorization policies, and generate policy assets. Policy engines enforce fine-grained access control for agent actions.

Key tools: policy_engine_create, policy_create, policy_generation_start, policy_generation_get, get_policy_guide

Browser (25 tools)

Cloud-based browser automation powered by AgentCore. Each session runs in an isolated Firecracker microVM — no local browser installation needed.

start_browser_session → browser_navigate → browser_snapshot → browser_click → stop_browser_session

Tips:

  • Use DuckDuckGo or Bing instead of Google (CAPTCHAs block cloud IPs)
  • Use browser_evaluate with querySelectorAll for data extraction
  • timeout_seconds is an idle timeout, not absolute duration

Code Interpreter (10 tools)

Sandboxed code execution in isolated environments. Start a session, execute code or shell commands, install packages, and transfer files.

Key tools: start_code_interpreter_session, execute_code, execute_command, install_packages, upload_file, download_file, list_files

Cost note: Sessions incur AWS charges. Stop sessions when done.

Documentation (2 tools)

Search and fetch AgentCore documentation. These tools are always available regardless of AGENTCORE_DISABLE_TOOLS settings.

  • search_agentcore_docs — search with ranked results and snippets
  • fetch_agentcore_doc — retrieve full document content by URL

Cost Awareness

Tools that create AWS resources or invoke compute incur charges. Each primitive’s guide tool (get_memory_guide, get_runtime_guide, etc.) documents cost tiers:

  • Read-only (no cost): get, list, guide operations
  • Billable (AWS charges): create, update, invoke, search operations
  • Destructive (irreversible): delete operations

Billable and destructive tools include COST WARNING: or WARNING: in their descriptions so agents understand the implications before calling them.

Security

  • All API calls use boto3 with credentials resolved from your environment (AWS_PROFILE, env vars, or IAM role)
  • Operations that return credential material (tokens, API keys, secrets) are excluded from MCP tools — credentials should not flow through LLM context
  • Retrieved content (memory records, gateway responses) should be treated as untrusted input
  • User-agent tracking (agentcore-mcp-server/{version} {primitive}) is included in API calls for usage analytics — no telemetry is sent elsewhere

Architecture

Each primitive is implemented as an independent sub-package under tools/:

tools/
├── runtime/       # 14 tools — agent runtime management
├── memory/        # 21 tools — memory resources and records
├── identity/      # 21 tools — workload identity and credentials
├── gateway/       # 15 tools — API gateway management
├── policy/        # 15 tools — policy engine management
├── browser/       # 25 tools — cloud browser automation
├── code_interpreter/  # 10 tools — sandboxed code execution
└── docs.py        # 2 tools — documentation search

Each sub-package contains: cached boto3 client wrapper, Pydantic response models, structured error handler, domain tool files, and a comprehensive guide tool.

Release files for awslabs.amazon-bedrock-agentcore-mcp-server 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awslabs.amazon-bedrock-agentcore-mcp-server 0.2.1
File Size Uploaded
awslabs_amazon_bedrock_agentcore_mcp_server-0.2.1.tar.gz 308.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awslabs.amazon-bedrock-agentcore-mcp-server 0.2.1
File Interpreter ABI Platform
awslabs_amazon_bedrock_agentcore_mcp_server-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 491.8 kB

Release files / awslabs_amazon_bedrock_agentcore_mcp_server-0.2.1.tar.gz

Download URL awslabs_amazon_bedrock_agentcore_mcp_server-0.2.1.tar.gz
Size 308.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8a59065970b65454c84d0cd0638f7406a8b676f3a8bfeedf3688fdf1fed8628d
BLAKE2b-256 checksum
How to use checksums
799ad00093fd35b5b22376e3c183aaca9ee698c5ba5a43a5f09f0c00ee79e436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / awslabs_amazon_bedrock_agentcore_mcp_server-0.2.1-py3-none-any.whl

Download URL awslabs_amazon_bedrock_agentcore_mcp_server-0.2.1-py3-none-any.whl
Size 183.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e00648986e3f6ba25680d0c820e0aa9df1936016d55a6f3eb8cbfb5c152ceba
BLAKE2b-256 checksum
How to use checksums
e38b5e6bbddafeb79987d24648e055c1852d732cbcf50af62f4c7fc28d3b8f5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page