akeyless-agentcore-rta
OfficialIntegrates with AWS Bedrock AgentCore, exposing MCP tools (list-secrets, query-db, service-execute, list-sub-tools) that agents can call while credentials remain on the customer's Akeyless Gateway. Supports AWS IAM cloud identity authentication for the AgentCore role and allows querying databases and executing services by referencing secrets without ever exposing secret values.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@akeyless-agentcore-rtaquery /prod/db/readonly with SELECT count(*) from orders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
akeyless-agentcore-rta
Akeyless Agentic Runtime Authority (ARA / RTA) for AWS Bedrock AgentCore.
Agents call list-secrets, query-db, service-execute, and list-sub-tools. Credentials stay on your Akeyless Gateway — tool responses contain paths, metadata, and query/action results only.
Not the secrets-fetch library. For get_secret() / pulling secret values into the agent, use akeyless-agentcore-runtime. You can use both in one architecture (bootstrap via secrets runtime; DB/cloud via this package).
Concern | This package (RTA) | Secrets runtime |
Goal | Do work with secrets | Fetch secret values |
Tools | list-secrets, query-db, service-execute, list-sub-tools | list / get secret |
Credentials in agent | Never | Yes (values returned) |
Gateway | Required customer GW with ARA | SaaS API or GW OK |
Requirements
Python 3.10+
Akeyless Gateway with ARA enabled (not
api.akeyless.io)Auth method your AgentCore role can use (production: AWS IAM cloud identity)
Related MCP server: openserverless-mcp
Install (local)
cd bedrock-agentcore-akeyless-rta
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[mcp,dev]"Quick start — client
from akeyless_agentcore_rta import AkeylessRtaClient
client = AkeylessRtaClient() # reads AKEYLESS_* env
for s in client.list_secrets():
print(s.name, s.target_type) # never prints credentials
rows = client.query_db("SELECT 1", secret_name="/prod/db/readonly")
print(rows.results)Quick start — MCP on AgentCore
# env (required)
export AKEYLESS_GATEWAY_URL=https://gw.example.com:8000
export AKEYLESS_ACCESS_ID=p-xxxxx
export AKEYLESS_ACCESS_TYPE=aws_iam # or access_key locally
python examples/mcp-server/server.py
# AgentCore: protocol MCP → examples/mcp-server/server.pyEnvironment
Variable | Required | Notes |
| Yes | Customer GW ( |
| Yes* | Auth method access id |
| No | Default |
| For access_key | Local/dev only |
(OIDC/SAML) | — | Browser login to Gateway; needs Access ID only |
| No | Default |
| No | Default |
| No | Optional default path for execute tools |
* Or AKEYLESS_TOKEN for a pre-issued session token.
Docs
Guide | Description |
Auth method, ARA RBAC, chicken-and-egg IAM bind | |
MCP protocol, envVars, invoke | |
Checklist | |
Branch protection, approvals, PyPI environment | |
Trusted publishing setup | |
Development setup |
Repository: github.com/akeyless-community/bedrock-agentcore-akeyless-rta
Development
pip install -e ".[mcp,dev]"
pytestRun pytest inside this package directory so the workspace root does not collect unrelated tests.
Related
Secrets at runtime (values in agent):
akeyless-agentcore-runtimeProduct docs: Agentic Runtime Authority
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
- gatewayOAuthai.sealgate
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely discover, invoke, and manage tools through a hardened MCP endpoint with protections like injection detection, circuit breakers, retry backoff, response caching, context-window limiting, and state snapshots.15 npmMIT
- AlicenseAqualityBmaintenanceEnables MCP-capable agents to create and invoke OpenServerless endpoints, manage secrets, and configure integrations such as S3, PostgreSQL, Redis, Milvus, and MongoDB.13Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables agent clients to safely connect to tools and execution resources through MCP with authorization, approvals, audit, chat-context isolation, SSH/Docker access, and long-running command session tracking.MIT
- FlicenseNot gradedqualityAmaintenanceEnables organizations to govern agent tool access by onboarding remote MCP servers, defining function-level allow lists and credential modes, and exposing permitted tools through a single unified MCP endpoint with search and execute functions.-