Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created August 24, 2025 12:53
Show Gist options
  • Select an option

  • Save KyMidd/3902874d7524c30e5be9d173a70ff13c to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/3902874d7524c30e5be9d173a70ff13c to your computer and use it in GitHub Desktop.
from strands import Agent
from strands.tools.mcp import MCPClient
from mcp import stdio_client, StdioServerParameters
aws_docs_client = MCPClient(
lambda: stdio_client(StdioServerParameters(command="uvx", args=["awslabs.aws-documentation-mcp-server@latest"]))
)
with aws_docs_client:
agent = Agent(tools=aws_docs_client.list_tools_sync())
response = agent("Tell me about Amazon Bedrock and how to use it with Python")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment