Guide
Use Conxt memory in agents on Amazon Bedrock
Agents you build on Amazon Bedrock start every task from zero, like any AI tool. Connect them to Conxt and they can read the decisions, rules and project facts your team already settled in ChatGPT, Claude, Gemini or Grok, and save what they find for the next tool to use.
How it connects
Conxt is an MCP server at https://mcp.conxt.dev/mcp/. A Bedrock agent reaches it the way any MCP client does: over HTTPS, with a Conxt API key sent as a Bearer token. Your model calls still go to Bedrock in your AWS account; only the memory lookups go to Conxt.
Before you start
- A Conxt account, which is free. Create one, and save or import a few memories so the agent has something to read.
- A Conxt API key for this agent. Create one on Connect your IDE and give it the agent’s name, so you can see what it reads and revoke it on its own.
- AWS credentials that can call Bedrock, with a model enabled in your account.
With Strands Agents
Strands Agents is AWS’s open-source SDK for building agents on Bedrock, and it speaks MCP. Install it:
pip install strands-agentsSet your key as an environment variable, never in code:
export CONXT_API_KEY="<your Conxt API key>"Then give the agent Conxt’s tools:
import os
from strands import Agent
from strands.models import BedrockModel
from strands.tools.mcp import MCPClient
conxt = MCPClient(
url="https://mcp.conxt.dev/mcp/",
headers={"Authorization": f"Bearer {os.environ['CONXT_API_KEY']}"},
)
with conxt:
agent = Agent(
model=BedrockModel(region_name="us-west-2"),
tools=conxt.list_tools_sync(),
system_prompt=(
"Before answering, check Conxt "
"for what has already been decided."
),
)
agent("What have we decided about billing?")Without a model_id, Strands uses its default Bedrock model; pass one to use any model enabled in your account. The agent now has every Conxt tool: it can look up context, search decisions, read your team’s approved memory, and save new memories.
Read-only agents
For an agent that should only read, such as one answering customers, allow just the reading tools:
conxt = MCPClient(
url="https://mcp.conxt.dev/mcp/",
headers={"Authorization": f"Bearer {os.environ['CONXT_API_KEY']}"},
tool_filters={"allowed": [
"get_context", "search_memory",
"search_decisions", "get_team_memories",
]},
)With AgentCore Gateway
If your agents reach their tools through Amazon Bedrock AgentCore Gateway, AWS documents adding a remote MCP server as a gateway target, with an API key credential provider in AgentCore Identity for outbound authentication. Use https://mcp.conxt.dev/mcp/ as the server and your Conxt key as the credential, sent as a Bearer token. Follow AWS’s AgentCore Gateway guide for the current steps.
What the agent can do
- It acts for you, not as you. It can propose a team memory, but only a person signed in to Conxt can approve one.
- It sees only your memory and the approved memory of teams you belong to.
- It cannot read your Conxt account settings, billing or API keys.
Your data
- Conxt records every memory the agent reads, with the key that read it and when.
- What the agent saves goes into your Conxt memory, attributed to it, and you can edit or delete it from your dashboard.
- Conxt’s privacy policy and privacy architecture explain how memory is stored.
Disconnect
Open your Conxt dashboard, find the agent’s key under Connected tools, and click Revoke. From then on, every Conxt tool call it makes is refused; nothing else changes.
Troubleshooting
- 401 from Conxt: no key was sent. Check CONXT_API_KEY is set where the agent runs.
- Every tool call is refused: the key is wrong or was revoked. The refusal says why; create a new key and set it again.
- The agent never uses Conxt: say so in its system prompt, as in the example above.
- It finds no memories: save or import some first, then ask again.
Help
Email hello@conxt.dev and a person will reply.