Model Context Protocol Samples
by aws-samples
This repository provides a collection of examples demonstrating how to use the Model Context Protocol (MCP) with AWS services. It includes various modules showcasing different implementations and use cases of MCP with Amazon Bedrock and Spring AI.
Last updated: N/A
Model Context Protocol samples
Collection of examples of how to use Model Context Protocol with AWS.
List of modules:
| Module | Lang | Description | |---------------------------------------------------------------------------------------------------------------|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Server Client MCP/SSE Demo | TypeScript | This full demo creates an Amazon Bedrock MCP client using the converse API and MCP server. The sample is deployed in containers that connect over MCP/SSE. | | Server Client MCP/stdio Demo | Python | This is a demo Amazon Bedrock MCP client using the converse API and a simple MCP stdio server. The sample runs locally connected with Amazon Bedrock. | | Server Client MCP/SSE on ECS | Spring AI & Kotlin | Provides a sample Spring AI MCP Server that runs on ECS; which is used by a Spring AI Agent using Bedrock; which also runs on ECS and is exposed publicly via a Load Balancer. | | Server Client MCP/SSE in Bedrock Converse Client w/ pgVector RAG | Spring AI & Java | A Spring AI dog adoption agent built on Bedrock using PostgreSQL with pgvector for RAG, and an MCP Server for managing adoption appointments. | | Server MCP/SSE on ECS | Spring AI & Kotlin | Very basic Spring AI MCP Server over SSE running on ECS. |
Security
See CONTRIBUTING for more information.
License
This library is licensed under the MIT-0 License. See the LICENSE file.