A simple and clear example for implementation and understanding Anthropic MCP (on AWS Bedrock)
Project description
MCP on AWS Bedrock
A simple and clear example for implementation and understanding Anthropic MCP (on AWS Bedrock).
For multiple MCP servers management, this tiny project Q-2001 could be referred~
Overview
This project demonstrates how to implement and use Anthropic's Model Context Protocol (MCP) with AWS Bedrock. It provides a client implementation that can interact with MCP-enabled tools through AWS Bedrock's runtime service.
Updates 2025-05-10: Streamable HTTP
- Add support for Streamable HTTP
- Rewrite the URL fetching MCP server
fetch_url_mcp_server.pythat demonstrates different transport types
Usage Instructions
Run the server with default stdio settings (no transport parameter):
uv run fetch_url_mcp_server.py
# client
uv run client_stdio.py
Run with streamable-http transport on default port (8000):
python fetch_url_mcp_server.py --transport streamable-http
# client
uv run client_streamablehttp.py
Run with streamable-http transport on custom port:
python fetch_url_mcp_server.py --transport streamable-http --port 8080
Prerequisites
- Python 3.10 or higher
- AWS account with Bedrock access
- Configured AWS credentials
- UV package manager
Features
- Seamless integration with AWS Bedrock runtime using Converse API
- Tool format conversion for Bedrock compatibility
- Asynchronous communication handling
- Structured logging for debugging
Contributing
Feel free to submit issues and pull requests to improve the implementation.
License
MIT License
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_davidshtian_mcp_on_aws_bedrock-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_davidshtian_mcp_on_aws_bedrock-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d279dad60e977fd8e9ed2705880f6040785e2aa2270d07d1db2c8885ff4054f
|
|
| MD5 |
8fc62d094b77b3b490c0554ae0ea3468
|
|
| BLAKE2b-256 |
9e700b7ba01bddb407bf342a13b02c2a88a388af261799a1ef1d506566eed53b
|
File details
Details for the file iflow_mcp_davidshtian_mcp_on_aws_bedrock-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_davidshtian_mcp_on_aws_bedrock-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a679521204ce4b8ad5e1e903b9668e12acd7d87b835af0b19724c2737e3143b
|
|
| MD5 |
e9d444f278bf1391c385250dd8306f58
|
|
| BLAKE2b-256 |
feaeb94c49c0b6716ec85551a8a121057c8ab9e786670a197b8eb4ee4350f665
|