sample-agentic-ai-demos
Collection of examples of how to use Model Context Protocol with AWS.
claude mcp add --transport stdio aws-samples-sample-agentic-ai-demos docker run -i aws-samples/sample-agentic-ai-demos \ --env AWS_REGION="us-east-1" \ --env AWS_ACCESS_KEY_ID="Your AWS access key" \ --env AWS_SECRET_ACCESS_KEY="Your AWS secret key"
How to use
This MCP server bundle provides a collection of Agentic AI demos for AWS using the Model Context Protocol (MCP). It includes examples of how to connect an Agentic AI workflow to Bedrock via MCP SSE and demonstrate interactions across multiple language implementations (TypeScript, Python, Java, Kotlin) and deployment environments (local, ECS). The server acts as a central MCP endpoint that other clients can connect to over MCP SSE or MCP stdio, enabling you to experiment with Bedrock-based agents, RAG workflows, and service orchestration. To use it, run the provided Docker image to start the MCP server, then deploy the demo clients or agents that target the MCP endpoint. Explore the modules to see concrete samples such as a FastAPI/MCP SSE server, a Spring AI MCP server on ECS, and Python-based MCP demos that integrate with Anthropic Bedrock or Bedrock via the Converse client.
How to install
Prerequisites:
- Docker installed and running on your host
- Access to AWS credentials configured (for Bedrock and AWS services used by the demos)
Installation steps:
- Ensure Docker is up and running:
- On Windows/macOS: use Docker Desktop
- On Linux: start docker service (e.g., sudo systemctl start docker)
- Pull and run the MCP server image: docker pull aws-samples/sample-agentic-ai-demos docker run -i aws-samples/sample-agentic-ai-demos
- Verify the server is reachable (check logs for MCP handshake messages or access the exposed endpoint if enabled in the container).
- If you need to customize AWS credentials, set environment variables as described in the mcp_config section before running the container, or mount a credentials file into the container as appropriate.
Additional notes
Notes and tips:
- The included demos cover multiple language implementations and deployment options; pick the module that matches your environment (local Python, TypeScript, Spring/Kotlin on ECS, etc.).
- If you expose the MCP endpoint publicly (e.g., via ECS or Load Balancer), ensure proper security controls are in place for MCP connections and AWS credentials.
- Environment variables for AWS access should be kept secure; prefer IAM roles or secret managers where possible in production.
- Logs from the Docker container can help diagnose MCP connection issues or client handshakes; monitor container logs for MCP protocol events.
- If you modify or extend demos, maintain compatibility with the MCP SSE protocol and ensure clients point to the correct server endpoint.
Related MCP Servers
npcpy
The python library for research and development in NLP, multimodal LLMs, Agents, ML, Knowledge Graphs, and more.
pfsense
pfSense MCP Server enables security administrators to manage their pfSense firewalls using natural language through AI assistants like Claude Desktop. Simply ask "Show me blocked IPs" or "Run a PCI compliance check" instead of navigating complex interfaces. Supports REST/XML-RPC/SSH connections, and includes built-in complian
MCPSecBench
MCPSecBench: A Systematic Security Benchmark and Playground for Testing Model Context Protocols
mcpx-py
Python client library for https://mcp.run - call portable & secure tools for your AI Agents and Apps
muxi
An extensible AI agents framework
the -company
TheMCPCompany: Creating General-purpose Agents with Task-specific Tools